v0.2.0
Pre-releaseThis release provides some improvements of the polyfill usage.
First of all, it is no necessary to create minimal implementation of customElements
registry by hands. Now the polyfill provides it as a separate module, so you can just import it. Or you still can use another implementation of the customElements
registry like @webcomponents/webcomponentsjs
polyfill.
The separate module shape was chosen to reduce the amount of code that should be shipped to users who already have built-in customElements
or use any of web components polyfill.
You can import minimal implementation in different ways. Just note that it should be executed before the main polyfill because the polyfill overrides the already existing methods. It is true for any of web components polyfills: they should go before this polyfill.
Examples of importing minimal implementation can be found in the README.
Improvements
WeakSet
polyfill is no longer necessary- The common size of the polyfill is slightly reduced due to some optimizations.