Skip to content

Releases: ayo-run/wcb

v4.0.0

22 Mar 10:50

Choose a tag to compare

remove support for static properties in favor of newer static props (Proxy props used in every example)

v3.1.0

21 Mar 23:11

Choose a tag to compare

remove support for side-effects in handler for prop modification

v3.0.0

09 Mar 00:11

Choose a tag to compare

Removed attachEffect

We removed this capability to favor using the native JS CustomEvent API

v2.1.2

09 Oct 17:52

Choose a tag to compare

  • various improvements

v2.1.0

27 Jul 20:13

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

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

Choose a tag to compare

  • Update JSDocs
  • Update license information

v2.0.0

10 Dec 19:33

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