Skip to content

Releases: ayoayco/web-component-base

v2.1.2

09 Oct 17:52
Compare
Choose a tag to compare
  • various improvements

v2.1.0

27 Jul 20:13
Compare
Choose a tag to compare
  • style attribute now accepts a style object of type Partial<CSSStyleDeclaration>. Read more on MDN.
  • opt in to using the Shadow DOM for the component with a static property shadowRootInit with object value of type ShadowRootInit (see options on MDN)

v2.0.6

19 Dec 08:28
Compare
Choose a tag to compare
  • various improvements
  • fix static props makes state shared across instances 🫣
  • docs (readme) updates
  • lit-html usage example

v2.0.1

12 Dec 21:10
5720901
Compare
Choose a tag to compare
  • Update JSDocs
  • Update license information

v2.0.0

10 Dec 19:33
Compare
Choose a tag to compare

New Features

  • Easily define and initialize props that get translated into observed HTML attributes
  • A new minimal html function for tagged templates powered by preact's tiny (450 Bytes) htm/mini
  • Attach "side effects" that gets triggered on property value changes with attachEffect (example)
  • All internals exposed as utils in web-component-base/utils

Improvements

  • Bundles now prebuilt with esbuild with all dependencies resolved in each file

Fixes

  • Various bug fixes

Credits

  • We now use Preact's htm/mini for our simple templating
  • Massive thanks to everyone who provided various feedbacks that lead to these features! -Ayo