lit/lit
### [`v2.3.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#230)
[Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.7...lit-html@2.3.0)
##### Minor Changes
- [#3156](https://togithub.com/lit/lit/pull/3156) [`ae6f6808`](https://togithub.com/lit/lit/commit/ae6f6808f539254b72ec7efcff34b812173abe64) - Lit and its underlying libraries can now be imported directly from Node without crashing, without the need to load the [@lit-labs/ssr](https://togithub.com/lit-labs/ssr) dom-shim library. Note that actually rendering from a Node context still requires the [@lit-labs/ssr](https://togithub.com/lit-labs/ssr) dom-shim, and the appropriate integration between [@lit-labs/ssr](https://togithub.com/lit-labs/ssr) and your framework/tool.
##### Patch Changes
- [#3003](https://togithub.com/lit/lit/pull/3003) [`daddeb34`](https://togithub.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd) - Lit's `async-directive` now re-exports everything from the `directive` module.
- [#3199](https://togithub.com/lit/lit/pull/3199) [`0725fdb4`](https://togithub.com/lit/lit/commit/0725fdb4dd7d36e3a7154830c41b9af4cf866e52) - In DEV_MODE, render a warning instead of rendering a template's host in the template.
Most commonly this would happen when rendering `${this}` in a LitElement's template, which has the counterintuitive behavior of removing the element from the DOM, because when rendering the element's template we attach it into its own shadow root, which removes it from the DOM, causing it simply disappear. This is especially problematic with a fast HMR system.
- [#3186](https://togithub.com/lit/lit/pull/3186) [`3766ae4c`](https://togithub.com/lit/lit/commit/3766ae4c35edf794aa30ee2d738c6f63fdda44e5) - `StaticValue` interface type is now exported.
### [`v2.2.7`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#227)
[Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.6...lit-html@2.2.7)
##### Patch Changes
- [#3130](https://togithub.com/lit/lit/pull/3130) [`1f0567f1`](https://togithub.com/lit/lit/commit/1f0567f10c56531e555329eeb006349ba022070f) - Export the underlying type of the `keyed` directive.
- [#3132](https://togithub.com/lit/lit/pull/3132) [`2fe2053f`](https://togithub.com/lit/lit/commit/2fe2053fe04e7226e5fa4e8b730e91a62a547b27) - Added "types" entry to package exports. This tells newer versions of TypeScript where to look for typings for each module.
### [`v2.2.6`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#226)
[Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.5...lit-html@2.2.6)
##### Patch Changes
- [#2849](https://togithub.com/lit/lit/pull/2849) [`b12e8d93`](https://togithub.com/lit/lit/commit/b12e8d93fb4a45b1a16e37716ac6e0a684d5e220) - Expand documentation for `render` and `TemplateResult`.
### [`v2.2.5`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#225)
[Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.4...lit-html@2.2.5)
##### Patch Changes
- [#2952](https://togithub.com/lit/lit/pull/2952) [`a78cc3b7`](https://togithub.com/lit/lit/commit/a78cc3b7f221a97e04dfda77d790fbea8f48d12c) - Fix SSR hydration bug relating to and other void elements having attribute bindings.
### [`v2.2.4`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#224)
[Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.3...lit-html@2.2.4)
##### Patch Changes
- [#2847](https://togithub.com/lit/lit/pull/2847) [`79d82385`](https://togithub.com/lit/lit/commit/79d823851fcf938a8b6a0ca5f164b6b6fb1b4155) - Fix typo in API docs for live() directive.
- [#2828](https://togithub.com/lit/lit/pull/2828) [`b3b6bc33`](https://togithub.com/lit/lit/commit/b3b6bc336910d73b5abad1c7da81731c110e74be) - Remove private Lit 2 migration helpers: `INTERNAL` and `clearContainerForLit2MigrationOnly`. This logic is no longer depended on.
### [`v2.2.3`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#223)
[Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.2...lit-html@2.2.3)
##### Patch Changes
- [#2732](https://togithub.com/lit/lit/pull/2732) [`3e181bcb`](https://togithub.com/lit/lit/commit/3e181bcb3d969775eda799fd6fcae1ead843225b) - Enforce use of file extensions in imports. Fixes an issue with older TypeScript compilers.
### [`v2.2.2`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#222)
[Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.1...lit-html@2.2.2)
##### Patch Changes
- [#2657](https://togithub.com/lit/lit/pull/2657) [`a6069c40`](https://togithub.com/lit/lit/commit/a6069c40e78dff3adeffa7d2abe11c9c05503d22) - Remove readonly restriction from `StyleInfo` interface as addition, deletion, and updating of styles is valid. Expanded `styleMap` documentation with links to lit.dev.
- [#2642](https://togithub.com/lit/lit/pull/2642) [`badc532c`](https://togithub.com/lit/lit/commit/badc532c719f7ce42b7cf4fb9ff2d97f4615b021) - Add an additional security brand check to StaticValues; Similar to [#2307](https://togithub.com/lit/lit/pull/2307)
- [#2691](https://togithub.com/lit/lit/pull/2691) [`171143bd`](https://togithub.com/lit/lit/commit/171143bd52720ee4a65844e5ca14667dd0187f8e) - Fixes `ref` bug when auto-bound class method used as a callback could incorrectly receive `undefined`.
- [#2661](https://togithub.com/lit/lit/pull/2661) [`9a3a38cd`](https://togithub.com/lit/lit/commit/9a3a38cd7f7b9122c79cd0e220f7ce62130e53f6) - Give a clearer error message when rendering into null/undefined
- [#2646](https://togithub.com/lit/lit/pull/2646) [`365cd09a`](https://togithub.com/lit/lit/commit/365cd09a88a1c390045452aac82510c143ffe257) - Clarify that hacking around the template strings array brand error can create security vulnerabilities.
### [`v2.2.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#221)
[Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.0...lit-html@2.2.1)
##### Patch Changes
- [#2635](https://togithub.com/lit/lit/pull/2635) [`ae358703`](https://togithub.com/lit/lit/commit/ae3587038873ffcc4934fd008a0b45db4711561e) - Make the event debug logger lazier, doing even less work (with no side effects) even in dev mode unless the page has opted in.
### [`v2.2.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#220)
[Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.1.3...lit-html@2.2.0)
##### Minor Changes
- [#2401](https://togithub.com/lit/lit/pull/2401) [`2c9d0008`](https://togithub.com/lit/lit/commit/2c9d00082a416457ee02107013dd4925bf589628) - Added a devlog events system that may be used for debugging and visualizing Lit's internals.
### [`v2.1.3`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#213)
[Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.1.2...lit-html@2.1.3)
##### Patch Changes
- [#2498](https://togithub.com/lit/lit/pull/2498) [`2a1dc7a1`](https://togithub.com/lit/lit/commit/2a1dc7a1fd8faf501af3c4c401d822de3fbf2f9e) - Replace 'rare' with 'invalid' in svg tag function JSDocs.
- [#2459](https://togithub.com/lit/lit/pull/2459) [`23df9d45`](https://togithub.com/lit/lit/commit/23df9d4557d8c70820d76aec5c0fd3bce9106e3f) - Fix bindings inside of elements
- [#2479](https://togithub.com/lit/lit/pull/2479) [`89560520`](https://togithub.com/lit/lit/commit/89560520f08079dc1b0e91f1096934d9ccabed59) - Expand JSDocs for the `svg` tagged template literal (TTL). The new documentation makes it more clear that the `svg` tag function should only be used for SVG fragments, and not for the `
This PR contains the following updates:
^1.4.1
->^2.0.0
Release Notes
lit/lit
### [`v2.3.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#230) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.7...lit-html@2.3.0) ##### Minor Changes - [#3156](https://togithub.com/lit/lit/pull/3156) [`ae6f6808`](https://togithub.com/lit/lit/commit/ae6f6808f539254b72ec7efcff34b812173abe64) - Lit and its underlying libraries can now be imported directly from Node without crashing, without the need to load the [@lit-labs/ssr](https://togithub.com/lit-labs/ssr) dom-shim library. Note that actually rendering from a Node context still requires the [@lit-labs/ssr](https://togithub.com/lit-labs/ssr) dom-shim, and the appropriate integration between [@lit-labs/ssr](https://togithub.com/lit-labs/ssr) and your framework/tool. ##### Patch Changes - [#3003](https://togithub.com/lit/lit/pull/3003) [`daddeb34`](https://togithub.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd) - Lit's `async-directive` now re-exports everything from the `directive` module. - [#3199](https://togithub.com/lit/lit/pull/3199) [`0725fdb4`](https://togithub.com/lit/lit/commit/0725fdb4dd7d36e3a7154830c41b9af4cf866e52) - In DEV_MODE, render a warning instead of rendering a template's host in the template. Most commonly this would happen when rendering `${this}` in a LitElement's template, which has the counterintuitive behavior of removing the element from the DOM, because when rendering the element's template we attach it into its own shadow root, which removes it from the DOM, causing it simply disappear. This is especially problematic with a fast HMR system. - [#3186](https://togithub.com/lit/lit/pull/3186) [`3766ae4c`](https://togithub.com/lit/lit/commit/3766ae4c35edf794aa30ee2d738c6f63fdda44e5) - `StaticValue` interface type is now exported. ### [`v2.2.7`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#227) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.6...lit-html@2.2.7) ##### Patch Changes - [#3130](https://togithub.com/lit/lit/pull/3130) [`1f0567f1`](https://togithub.com/lit/lit/commit/1f0567f10c56531e555329eeb006349ba022070f) - Export the underlying type of the `keyed` directive. - [#3132](https://togithub.com/lit/lit/pull/3132) [`2fe2053f`](https://togithub.com/lit/lit/commit/2fe2053fe04e7226e5fa4e8b730e91a62a547b27) - Added "types" entry to package exports. This tells newer versions of TypeScript where to look for typings for each module. ### [`v2.2.6`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#226) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.5...lit-html@2.2.6) ##### Patch Changes - [#2849](https://togithub.com/lit/lit/pull/2849) [`b12e8d93`](https://togithub.com/lit/lit/commit/b12e8d93fb4a45b1a16e37716ac6e0a684d5e220) - Expand documentation for `render` and `TemplateResult`. ### [`v2.2.5`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#225) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.4...lit-html@2.2.5) ##### Patch Changes - [#2952](https://togithub.com/lit/lit/pull/2952) [`a78cc3b7`](https://togithub.com/lit/lit/commit/a78cc3b7f221a97e04dfda77d790fbea8f48d12c) - Fix SSR hydration bug relating to and other void elements having attribute bindings. ### [`v2.2.4`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#224) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.3...lit-html@2.2.4) ##### Patch Changes - [#2847](https://togithub.com/lit/lit/pull/2847) [`79d82385`](https://togithub.com/lit/lit/commit/79d823851fcf938a8b6a0ca5f164b6b6fb1b4155) - Fix typo in API docs for live() directive. - [#2828](https://togithub.com/lit/lit/pull/2828) [`b3b6bc33`](https://togithub.com/lit/lit/commit/b3b6bc336910d73b5abad1c7da81731c110e74be) - Remove private Lit 2 migration helpers: `INTERNAL` and `clearContainerForLit2MigrationOnly`. This logic is no longer depended on. ### [`v2.2.3`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#223) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.2...lit-html@2.2.3) ##### Patch Changes - [#2732](https://togithub.com/lit/lit/pull/2732) [`3e181bcb`](https://togithub.com/lit/lit/commit/3e181bcb3d969775eda799fd6fcae1ead843225b) - Enforce use of file extensions in imports. Fixes an issue with older TypeScript compilers. ### [`v2.2.2`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#222) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.1...lit-html@2.2.2) ##### Patch Changes - [#2657](https://togithub.com/lit/lit/pull/2657) [`a6069c40`](https://togithub.com/lit/lit/commit/a6069c40e78dff3adeffa7d2abe11c9c05503d22) - Remove readonly restriction from `StyleInfo` interface as addition, deletion, and updating of styles is valid. Expanded `styleMap` documentation with links to lit.dev. - [#2642](https://togithub.com/lit/lit/pull/2642) [`badc532c`](https://togithub.com/lit/lit/commit/badc532c719f7ce42b7cf4fb9ff2d97f4615b021) - Add an additional security brand check to StaticValues; Similar to [#2307](https://togithub.com/lit/lit/pull/2307) - [#2691](https://togithub.com/lit/lit/pull/2691) [`171143bd`](https://togithub.com/lit/lit/commit/171143bd52720ee4a65844e5ca14667dd0187f8e) - Fixes `ref` bug when auto-bound class method used as a callback could incorrectly receive `undefined`. - [#2661](https://togithub.com/lit/lit/pull/2661) [`9a3a38cd`](https://togithub.com/lit/lit/commit/9a3a38cd7f7b9122c79cd0e220f7ce62130e53f6) - Give a clearer error message when rendering into null/undefined - [#2646](https://togithub.com/lit/lit/pull/2646) [`365cd09a`](https://togithub.com/lit/lit/commit/365cd09a88a1c390045452aac82510c143ffe257) - Clarify that hacking around the template strings array brand error can create security vulnerabilities. ### [`v2.2.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#221) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.2.0...lit-html@2.2.1) ##### Patch Changes - [#2635](https://togithub.com/lit/lit/pull/2635) [`ae358703`](https://togithub.com/lit/lit/commit/ae3587038873ffcc4934fd008a0b45db4711561e) - Make the event debug logger lazier, doing even less work (with no side effects) even in dev mode unless the page has opted in. ### [`v2.2.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#220) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.1.3...lit-html@2.2.0) ##### Minor Changes - [#2401](https://togithub.com/lit/lit/pull/2401) [`2c9d0008`](https://togithub.com/lit/lit/commit/2c9d00082a416457ee02107013dd4925bf589628) - Added a devlog events system that may be used for debugging and visualizing Lit's internals. ### [`v2.1.3`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-html/CHANGELOG.md#213) [Compare Source](https://togithub.com/lit/lit/compare/lit-html@2.1.2...lit-html@2.1.3) ##### Patch Changes - [#2498](https://togithub.com/lit/lit/pull/2498) [`2a1dc7a1`](https://togithub.com/lit/lit/commit/2a1dc7a1fd8faf501af3c4c401d822de3fbf2f9e) - Replace 'rare' with 'invalid' in svg tag function JSDocs. - [#2459](https://togithub.com/lit/lit/pull/2459) [`23df9d45`](https://togithub.com/lit/lit/commit/23df9d4557d8c70820d76aec5c0fd3bce9106e3f) - Fix bindings inside of