Van Element 2.0 is out ☀️
Breaking changes
- removal of
childrenproperty
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 🤏