npm / @lit/reactive-element
@lit/reactive-element
What changed in @lit/reactive-element 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
3 breaking1 deprecations4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@lit/reactive-element 28 changes
Breaking changes 3
Internet Explorer 11 is no longer supported.
The deprecated behavior and arguments were deleted; migrate selector usage to @queryAssignedElements.
Generated accessors now wrap user accessors and automatically call this.requestUpdate() in the setter; with noAccessor: true, users must call this.requestUpdate() themselves to trigger an update.
Deprecations 1
Async overrides of performUpdate() now produce a warning.
Fixes and other changes 4
Decorators now work with the accessor keyword when experimentalDecorators is true.
The return type now includes undefined.
The return type is now HTMLElement | DocumentFragment, matching renderRoot and lit-html's render() method.
The type is now HTMLElement | DocumentFragment, matching createRenderRoot() and lit-html's render() method.