lit/lit
### [`v3.0.2`](https://togithub.com/lit/lit/blob/master/packages/lit-element/CHANGELOG.md#302)
[Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.0.1...lit-element@3.0.2)
##### Patch Changes
- [#2240](https://togithub.com/lit/lit/pull/2240) [`76ed65d7`](https://togithub.com/lit/lit/commit/76ed65d7e1e157d1f61dd62fe938a2fc1828c497) - Identify a `this` reference for jscompiler.
- [#2236](https://togithub.com/lit/lit/pull/2236) [`5fc3818a`](https://togithub.com/lit/lit/commit/5fc3818afa43365b90b921ea0fd8f41e970e767f) - Prevent `polyfillSupport.noPatchSupported` from implicitly being `any`.
Deduplicate types for `DevMode`-suffixed polyfill support functions.
### [`v3.0.1`](https://togithub.com/lit/lit/blob/master/packages/lit-element/CHANGELOG.md#301)
[Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.0.0...lit-element@3.0.1)
##### Patch Changes
- [#2152](https://togithub.com/lit/lit/pull/2152) [`ba5e1391`](https://togithub.com/lit/lit/commit/ba5e139163049014e6261123ff808700352b86a8) - Replace dynamic name lookups for polyfill support functions with static names.
### [`v3.0.0`](https://togithub.com/lit/lit/blob/master/packages/lit-element/CHANGELOG.md#300)
[Compare Source](https://togithub.com/lit/lit/compare/2b398727dacb7694fbf38816824675d20838704f...lit-element@3.0.0)
##### Major Changes
- Most users should no longer import directly from `lit-element`, and instead prefer importing `LitElement` from the `lit` packages. The default entry point for `lit-element` remains backward-compatible and includes all decorators. However, it's recommended to use `import {LitElement} from 'lit';` and import decorators from `lit/decorators` as necessary. See the [Upgrade Guide](https://lit.dev/docs/releases/upgrade/#update-packages-and-import-paths) for more details.
- `UpdatingElement` has been moved from the `lit-element` package to the `@lit/reactive-element` package and renamed to `ReactiveElement`. See the [ReactiveElement API](https://lit.dev/docs/api/ReactiveElement/) documentation for more details. In addition, the source for `css-tag`, and all `decorators` have been moved to `@lit/reactive-element`. However, all symbols are re-exported from both `lit` and `lit-element` packages.
- The `@internalProperty` decorator has been renamed to `@state`.
- Errors that occur during the update cycle were previously squelched to allow subsequent updates to proceed normally. Now errors are re-fired asynchronously so they can be detected. Errors can be observed via an `unhandledrejection` event handler on window.
- The `lib` folder has been removed.
- Rendering of `renderRoot`/`shadowRoot`) via `createRenderRoot` and support for `static styles` has moved from `LitElement` to `ReactiveElement`.
- The `createRenderRoot` method is now called just before the first update rather than in the constructor. Element code can not assume the `renderRoot` exists before the element `hasUpdated`. This change was made for compatibility with SSR.
- `ReactiveElement`'s `initialize` method has been removed. This work is now done in the element constructor.
- The static `render` has been removed.
- For consistency, renamed `_getUpdateComplete` to `getUpdateComplete`.
- When a property declaration is `reflect: true` and its `toAttribute` function returns `undefined` the attribute is now removed where previously it was left unchanged ([#872](https://togithub.com/Polymer/lit-element/issues/872)).
- The dirty check in `attributeChangedCallback` has been removed. While technically breaking, in practice it should very rarely be ([#699](https://togithub.com/Polymer/lit-element/issues/699)).
- LitElement's `adoptStyles` method has been removed. Styling is now adopted in `createRenderRoot`. This method may be overridden to customize this behavior.
- LitElement's `static getStyles` method has been renamed to `static finalizeStyles` and now takes a list of styles the user provided and returns the styles which should be used in the element. If this method is overridden to integrate into a style management system, typically the `super` implementation should be called.
- Removed build support for TypeScript 3.4.
- Decorators are no longer exported from the `lit-element` module. Instead, import any decorators you use from `lit/decorators/*`.
- `lit-html` has been updated to 2.x.
- Support for running in older browsers has been removed from the default configuration. Import the `polyfill-support` module to support Shady DOM. Note also that Lit parts inside `
This PR contains the following updates:
2.5.1
->3.0.2
Release Notes
lit/lit
### [`v3.0.2`](https://togithub.com/lit/lit/blob/master/packages/lit-element/CHANGELOG.md#302) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.0.1...lit-element@3.0.2) ##### Patch Changes - [#2240](https://togithub.com/lit/lit/pull/2240) [`76ed65d7`](https://togithub.com/lit/lit/commit/76ed65d7e1e157d1f61dd62fe938a2fc1828c497) - Identify a `this` reference for jscompiler. - [#2236](https://togithub.com/lit/lit/pull/2236) [`5fc3818a`](https://togithub.com/lit/lit/commit/5fc3818afa43365b90b921ea0fd8f41e970e767f) - Prevent `polyfillSupport.noPatchSupported` from implicitly being `any`. Deduplicate types for `DevMode`-suffixed polyfill support functions. ### [`v3.0.1`](https://togithub.com/lit/lit/blob/master/packages/lit-element/CHANGELOG.md#301) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.0.0...lit-element@3.0.1) ##### Patch Changes - [#2152](https://togithub.com/lit/lit/pull/2152) [`ba5e1391`](https://togithub.com/lit/lit/commit/ba5e139163049014e6261123ff808700352b86a8) - Replace dynamic name lookups for polyfill support functions with static names. ### [`v3.0.0`](https://togithub.com/lit/lit/blob/master/packages/lit-element/CHANGELOG.md#300) [Compare Source](https://togithub.com/lit/lit/compare/2b398727dacb7694fbf38816824675d20838704f...lit-element@3.0.0) ##### Major Changes - Most users should no longer import directly from `lit-element`, and instead prefer importing `LitElement` from the `lit` packages. The default entry point for `lit-element` remains backward-compatible and includes all decorators. However, it's recommended to use `import {LitElement} from 'lit';` and import decorators from `lit/decorators` as necessary. See the [Upgrade Guide](https://lit.dev/docs/releases/upgrade/#update-packages-and-import-paths) for more details. - `UpdatingElement` has been moved from the `lit-element` package to the `@lit/reactive-element` package and renamed to `ReactiveElement`. See the [ReactiveElement API](https://lit.dev/docs/api/ReactiveElement/) documentation for more details. In addition, the source for `css-tag`, and all `decorators` have been moved to `@lit/reactive-element`. However, all symbols are re-exported from both `lit` and `lit-element` packages. - The `@internalProperty` decorator has been renamed to `@state`. - Errors that occur during the update cycle were previously squelched to allow subsequent updates to proceed normally. Now errors are re-fired asynchronously so they can be detected. Errors can be observed via an `unhandledrejection` event handler on window. - The `lib` folder has been removed. - Rendering of `renderRoot`/`shadowRoot`) via `createRenderRoot` and support for `static styles` has moved from `LitElement` to `ReactiveElement`. - The `createRenderRoot` method is now called just before the first update rather than in the constructor. Element code can not assume the `renderRoot` exists before the element `hasUpdated`. This change was made for compatibility with SSR. - `ReactiveElement`'s `initialize` method has been removed. This work is now done in the element constructor. - The static `render` has been removed. - For consistency, renamed `_getUpdateComplete` to `getUpdateComplete`. - When a property declaration is `reflect: true` and its `toAttribute` function returns `undefined` the attribute is now removed where previously it was left unchanged ([#872](https://togithub.com/Polymer/lit-element/issues/872)). - The dirty check in `attributeChangedCallback` has been removed. While technically breaking, in practice it should very rarely be ([#699](https://togithub.com/Polymer/lit-element/issues/699)). - LitElement's `adoptStyles` method has been removed. Styling is now adopted in `createRenderRoot`. This method may be overridden to customize this behavior. - LitElement's `static getStyles` method has been renamed to `static finalizeStyles` and now takes a list of styles the user provided and returns the styles which should be used in the element. If this method is overridden to integrate into a style management system, typically the `super` implementation should be called. - Removed build support for TypeScript 3.4. - Decorators are no longer exported from the `lit-element` module. Instead, import any decorators you use from `lit/decorators/*`. - `lit-html` has been updated to 2.x. - Support for running in older browsers has been removed from the default configuration. Import the `polyfill-support` module to support Shady DOM. Note also that Lit parts inside `