Skip to content

Releases: axa-ch-webhub-cloud/pattern-library

Support for built-in elements

20 Nov 12:33
Compare
Choose a tag to compare
Pre-release

A new version 2.0.1-beta.217 of the patterns-library has just been released 🎉 including breaking changes 💣 :

Migration

  1. Replace your existing polyfill:
    • remove old and broken polyfill import '@webcomponents/webcomponentsjs/bundles/webcomponents-ce';
    • and use shiny new working polyfill:
      // better to load this only if it's needed
      import 'document-register-element/'; // ES2015
      // load this for browsers which support customElements without builtin (webkit)
      import '@ungap/custom-elements-builtin';
  2. All constructors need to be replaced by init, like so:
    • construcor(...) { super(...); } -> init(...) {} super.init(...); }