Skip to content

v0.12.3

Compare
Choose a tag to compare
@trusktr trusktr released this 15 Sep 08:06
· 19 commits to main since this release

What's Changed

  • feat: Deprecate the ability to define static observedAttributes as a map of attribute names to attribute handlers for non-decorator users, and instead create a new static observedAttributeHandlers for that purpose. by @trusktr in #27
    • This keeps the type of static observedAttributes clean and aligned with the DOM spec, while the new static observedAttributeHandlers has the type definition for the library-specific feature. Plus this prevents type issues downstream because the @element decorator (callable as a function when not using decorators) coerces the object format into the standard array format, yet the object type will still sppear in subclasses despite that it is never an object in subclasses.
      • deprecation: static observedAttributes = {} is deprecated, and only the standard static observedAttribu tes = [] should be used. The object format will be removed in a breaking version bump.
    • infra: Unrestrict the typescript version so we can keep it updated with other packages in the lume repo.

Full Changelog: v0.12.1...v0.12.3