github open-wc/open-wc @open-wc/scoped-elements@2.0.0-next.0

latest releases: @open-wc/eslint-config@9.1.0, @open-wc/scoped-elements@2.1.4, @open-wc/building-utils@2.21.0...
pre-release3 years ago

Major Changes

  • edca5a8: Adds compatibility for lit with lit-html v2 and lit-element v3.

    • This version does NOT work with lit-element v2 - please use Scoped Elements v1 for it

    • Uses a CustomElementsRegistry instance for each component class instead of for each component instance. In case you need to have a registry for each component instance, you must override the registry get and set methods to bind the registry to the component instance

      /** @override */
      get registry() {
        return this.__registry;
      }
      
      /** @override */
      set registry(registry) {
        this.__registry = registry;
      }
    • getScopedTagName became deprecated - use the native el.tagName instead

Don't miss a new open-wc release

NewReleases is sending notifications on new releases.