Skip to content

v2.0.0

Latest

Choose a tag to compare

@Atmos4 Atmos4 released this 17 Jul 16:45
· 12 commits to main since this release

Van Element 2.0 is out ☀️

Breaking changes

  • removal of children property

Although it was nice to have a polyfill for the Web Component slot, it was not working properly when new elements were added after the custom element was defined.

For this reason and in order to not cause confusion and drift away from the Web Component specification, the children polyfill is being removed. You can replace it by van.slot() when the Shadow DOM is enabled, and by VanJS code when it isn't.

This is the only breaking change.

Improvements

The mount function can now be called many times, which allows the introduction of custom hooks 🎉

Bundle size

Bundle size has decreased to 295 bytes 🤏