v0.12.3
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 newstatic observedAttributeHandlers
for that purpose. by @trusktr in #27- This keeps the type of
static observedAttributes
clean and aligned with the DOM spec, while the newstatic 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 standardstatic observedAttribu tes = []
should be used. The object format will be removed in a breaking version bump.
- deprecation:
- infra: Unrestrict the
typescript
version so we can keep it updated with other packages in the lume repo.
- This keeps the type of
Full Changelog: v0.12.1...v0.12.3