diff --git a/.changeset/curly-cars-peel.md b/.changeset/curly-cars-peel.md deleted file mode 100644 index c0aa3fbe16..0000000000 --- a/.changeset/curly-cars-peel.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'lit-html': patch -'lit': patch ---- - -Lit's `async-directive` now re-exports everything from the `directive` module. diff --git a/.changeset/forty-bats-draw.md b/.changeset/forty-bats-draw.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/forty-bats-draw.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/forty-bobcats-sneeze.md b/.changeset/forty-bobcats-sneeze.md deleted file mode 100644 index f1b63d0f27..0000000000 --- a/.changeset/forty-bobcats-sneeze.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'lit-html': patch ---- - -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. diff --git a/.changeset/four-rocks-pretend.md b/.changeset/four-rocks-pretend.md deleted file mode 100644 index 06e8f18605..0000000000 --- a/.changeset/four-rocks-pretend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lit-labs/testing': patch ---- - -Make resolved paths sent to worker be file urls. Fixes incompatibility with Windows filepaths. diff --git a/.changeset/hip-eels-ring.md b/.changeset/hip-eels-ring.md deleted file mode 100644 index 46294d62b7..0000000000 --- a/.changeset/hip-eels-ring.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'lit-html': patch ---- - -`StaticValue` interface type is now exported. diff --git a/.changeset/mean-toes-cry.md b/.changeset/mean-toes-cry.md deleted file mode 100644 index cc8fcb7bef..0000000000 --- a/.changeset/mean-toes-cry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lit-labs/ssr': patch ---- - -When using `renderModule`, `URL` and `URLSearchParams` are now available in global of the VM module context diff --git a/.changeset/nine-socks-rhyme.md b/.changeset/nine-socks-rhyme.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/nine-socks-rhyme.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/old-tables-own.md b/.changeset/old-tables-own.md deleted file mode 100644 index 6905c92bdf..0000000000 --- a/.changeset/old-tables-own.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@lit/reactive-element': patch -'lit': patch ---- - -Bind `this` to custom attribute converter methods diff --git a/.changeset/perfect-nails-smoke.md b/.changeset/perfect-nails-smoke.md deleted file mode 100644 index 823e9ac32c..0000000000 --- a/.changeset/perfect-nails-smoke.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@lit-labs/testing': patch -'@lit/localize': patch ---- - -TS sources are now inlined in the JS source maps diff --git a/.changeset/shy-wasps-exercise.md b/.changeset/shy-wasps-exercise.md deleted file mode 100644 index cfc04baef0..0000000000 --- a/.changeset/shy-wasps-exercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lit-labs/eleventy-plugin-lit': patch ---- - -Use file urls for resolved module paths for Windows compatibility diff --git a/.changeset/spotty-ducks-compete.md b/.changeset/spotty-ducks-compete.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/spotty-ducks-compete.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/tall-mirrors-notice.md b/.changeset/tall-mirrors-notice.md deleted file mode 100644 index 974d0cd818..0000000000 --- a/.changeset/tall-mirrors-notice.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'lit': minor -'lit-html': minor -'@lit/reactive-element': minor ---- - -Lit and its underlying libraries can now be imported directly from Node without crashing, without the need to load the @lit-labs/ssr dom-shim library. Note that actually rendering from a Node context still requires the @lit-labs/ssr dom-shim, and the appropriate integration between @lit-labs/ssr and your framework/tool. diff --git a/.changeset/twelve-lobsters-join.md b/.changeset/twelve-lobsters-join.md deleted file mode 100644 index 366f755b05..0000000000 --- a/.changeset/twelve-lobsters-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lit-labs/react': patch ---- - -Support setting custom accessors by using an 'in' check instead of a for/in loop to check for properties. diff --git a/.changeset/warm-mayflies-know.md b/.changeset/warm-mayflies-know.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/warm-mayflies-know.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/wild-ladybugs-flash.md b/.changeset/wild-ladybugs-flash.md deleted file mode 100644 index e683b78d9b..0000000000 --- a/.changeset/wild-ladybugs-flash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lit-labs/ssr': patch ---- - -Use `url` module to parse file URL to path for Windows compatibility diff --git a/packages/labs/eleventy-plugin-lit/CHANGELOG.md b/packages/labs/eleventy-plugin-lit/CHANGELOG.md index 0a9c48aad0..b5062aa1cd 100644 --- a/packages/labs/eleventy-plugin-lit/CHANGELOG.md +++ b/packages/labs/eleventy-plugin-lit/CHANGELOG.md @@ -1,5 +1,14 @@ # @lit-labs/eleventy-plugin-lit +## 0.2.3 + +### Patch Changes + +- [#3203](https://github.com/lit/lit/pull/3203) [`23462312`](https://github.com/lit/lit/commit/234623129990c19c535eb36d2bcab38f3842ff82) - Use file urls for resolved module paths for Windows compatibility + +- Updated dependencies [[`daddeb34`](https://github.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd), [`6361a4b4`](https://github.com/lit/lit/commit/6361a4b4a589465cf6836c8454ed8ca4521d7b4d), [`ae6f6808`](https://github.com/lit/lit/commit/ae6f6808f539254b72ec7efcff34b812173abe64)]: + - lit@2.3.0 + ## 0.2.2 ### Patch Changes diff --git a/packages/labs/eleventy-plugin-lit/package.json b/packages/labs/eleventy-plugin-lit/package.json index 11274b00dc..f348e00036 100644 --- a/packages/labs/eleventy-plugin-lit/package.json +++ b/packages/labs/eleventy-plugin-lit/package.json @@ -1,6 +1,6 @@ { "name": "@lit-labs/eleventy-plugin-lit", - "version": "0.2.2", + "version": "0.2.3", "description": "Eleventy plugin for rendering Lit components.", "author": "Google LLC", "license": "BSD-3-Clause", @@ -91,7 +91,7 @@ }, "dependencies": { "@lit-labs/ssr": "^2.0.1", - "lit": "^2.0.2" + "lit": "^2.3.0" }, "devDependencies": { "@11ty/eleventy": "^1.0.0", diff --git a/packages/labs/react/CHANGELOG.md b/packages/labs/react/CHANGELOG.md index 56ed98145e..6a15874ea8 100644 --- a/packages/labs/react/CHANGELOG.md +++ b/packages/labs/react/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 1.0.8 + +### Patch Changes + +- [#2800](https://github.com/lit/lit/pull/2800) [`043d9c80`](https://github.com/lit/lit/commit/043d9c80de59177335fa6543d5654e0295f5a743) - Support setting custom accessors by using an 'in' check instead of a for/in loop to check for properties. + ## 1.0.7 ### Patch Changes diff --git a/packages/labs/react/package.json b/packages/labs/react/package.json index 2ec3bec71e..018e8e44a3 100644 --- a/packages/labs/react/package.json +++ b/packages/labs/react/package.json @@ -1,6 +1,6 @@ { "name": "@lit-labs/react", - "version": "1.0.7", + "version": "1.0.8", "description": "A React component wrapper for web components.", "license": "BSD-3-Clause", "homepage": "https://lit.dev/", @@ -137,7 +137,7 @@ }, "author": "Google LLC", "devDependencies": { - "@lit/reactive-element": "^1.0.0", + "@lit/reactive-element": "^1.4.0", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "@types/trusted-types": "^2.0.2", diff --git a/packages/labs/ssr/CHANGELOG.md b/packages/labs/ssr/CHANGELOG.md index a670ba253c..d0a8696cc7 100644 --- a/packages/labs/ssr/CHANGELOG.md +++ b/packages/labs/ssr/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 2.2.3 + +### Patch Changes + +- [#3187](https://github.com/lit/lit/pull/3187) [`84437af6`](https://github.com/lit/lit/commit/84437af6826a5cdb61c383c3034a0e4150e8e50f) - When using `renderModule`, `URL` and `URLSearchParams` are now available in global of the VM module context + +- [#3204](https://github.com/lit/lit/pull/3204) [`19d7bd25`](https://github.com/lit/lit/commit/19d7bd255987cfeac2d8dfa9f9d04d2378568535) - Use `url` module to parse file URL to path for Windows compatibility + +- Updated dependencies [[`daddeb34`](https://github.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd), [`0725fdb4`](https://github.com/lit/lit/commit/0725fdb4dd7d36e3a7154830c41b9af4cf866e52), [`3766ae4c`](https://github.com/lit/lit/commit/3766ae4c35edf794aa30ee2d738c6f63fdda44e5), [`6361a4b4`](https://github.com/lit/lit/commit/6361a4b4a589465cf6836c8454ed8ca4521d7b4d), [`ae6f6808`](https://github.com/lit/lit/commit/ae6f6808f539254b72ec7efcff34b812173abe64)]: + - lit-html@2.3.0 + - lit@2.3.0 + - @lit/reactive-element@1.4.0 + ## 2.2.2 ### Patch Changes diff --git a/packages/labs/ssr/package.json b/packages/labs/ssr/package.json index 58c1ebbae2..1793699975 100644 --- a/packages/labs/ssr/package.json +++ b/packages/labs/ssr/package.json @@ -1,7 +1,7 @@ { "name": "@lit-labs/ssr", "type": "module", - "version": "2.2.2", + "version": "2.2.3", "publishConfig": { "access": "public" }, @@ -149,11 +149,11 @@ }, "dependencies": { "@lit-labs/ssr-client": "^1.0.0", - "@lit/reactive-element": "^1.1.0", + "@lit/reactive-element": "^1.4.0", "@types/node": "^16.0.0", - "lit": "^2.1.0", + "lit": "^2.3.0", "lit-element": "^3.1.0", - "lit-html": "^2.1.0", + "lit-html": "^2.3.0", "node-fetch": "^3.2.8", "parse5": "^6.0.1", "resolve": "^1.10.1" diff --git a/packages/labs/testing/CHANGELOG.md b/packages/labs/testing/CHANGELOG.md index 1644a43bb8..1064d34b54 100644 --- a/packages/labs/testing/CHANGELOG.md +++ b/packages/labs/testing/CHANGELOG.md @@ -1,5 +1,16 @@ # @lit-labs/testing +## 0.1.1 + +### Patch Changes + +- [#3175](https://github.com/lit/lit/pull/3175) [`27e08e5d`](https://github.com/lit/lit/commit/27e08e5d71af85fb5e38bbd968d7a7cb14c12193) - Make resolved paths sent to worker be file urls. Fixes incompatibility with Windows filepaths. + +- [#3198](https://github.com/lit/lit/pull/3198) [`0162fbad`](https://github.com/lit/lit/commit/0162fbad61826ba0ff4188135ca4ab778762c4d7) - TS sources are now inlined in the JS source maps + +- Updated dependencies [[`daddeb34`](https://github.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd), [`6361a4b4`](https://github.com/lit/lit/commit/6361a4b4a589465cf6836c8454ed8ca4521d7b4d), [`ae6f6808`](https://github.com/lit/lit/commit/ae6f6808f539254b72ec7efcff34b812173abe64)]: + - lit@2.3.0 + ## 0.1.0 ### Minor Changes diff --git a/packages/labs/testing/package.json b/packages/labs/testing/package.json index d92bf4d1bc..2e60acc424 100644 --- a/packages/labs/testing/package.json +++ b/packages/labs/testing/package.json @@ -1,6 +1,6 @@ { "name": "@lit-labs/testing", - "version": "0.1.0", + "version": "0.1.1", "publishConfig": { "access": "public" }, @@ -83,7 +83,7 @@ "@lit-labs/ssr": "^2.2.0", "@web/test-runner-commands": "^0.6.1", "@webcomponents/template-shadowroot": "^0.1.0", - "lit": "^2.2.5" + "lit": "^2.3.0" }, "devDependencies": { "@open-wc/testing": "^3.1.5" diff --git a/packages/lit-html/CHANGELOG.md b/packages/lit-html/CHANGELOG.md index fa4637d9e7..6ea570a901 100644 --- a/packages/lit-html/CHANGELOG.md +++ b/packages/lit-html/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## 2.3.0 + +### Minor Changes + +- [#3156](https://github.com/lit/lit/pull/3156) [`ae6f6808`](https://github.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 dom-shim library. Note that actually rendering from a Node context still requires the @lit-labs/ssr dom-shim, and the appropriate integration between @lit-labs/ssr and your framework/tool. + +### Patch Changes + +- [#3003](https://github.com/lit/lit/pull/3003) [`daddeb34`](https://github.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd) - Lit's `async-directive` now re-exports everything from the `directive` module. + +- [#3199](https://github.com/lit/lit/pull/3199) [`0725fdb4`](https://github.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://github.com/lit/lit/pull/3186) [`3766ae4c`](https://github.com/lit/lit/commit/3766ae4c35edf794aa30ee2d738c6f63fdda44e5) - `StaticValue` interface type is now exported. + ## 2.2.7 ### Patch Changes diff --git a/packages/lit-html/package.json b/packages/lit-html/package.json index e7e6a02f1a..aa2e3ece24 100644 --- a/packages/lit-html/package.json +++ b/packages/lit-html/package.json @@ -1,6 +1,6 @@ { "name": "lit-html", - "version": "2.2.7", + "version": "2.3.0", "description": "HTML templates literals in JavaScript", "license": "BSD-3-Clause", "repository": { diff --git a/packages/lit-html/src/lit-html.ts b/packages/lit-html/src/lit-html.ts index 1b91526090..489910b855 100644 --- a/packages/lit-html/src/lit-html.ts +++ b/packages/lit-html/src/lit-html.ts @@ -2177,7 +2177,7 @@ polyfillSupport?.(Template, ChildPart); // IMPORTANT: do not change the property name or the assignment expression. // This line will be used in regexes to search for lit-html usage. -(global.litHtmlVersions ??= []).push('2.2.7'); +(global.litHtmlVersions ??= []).push('2.3.0'); if (DEV_MODE && global.litHtmlVersions.length > 1) { issueWarning!( 'multiple-versions', diff --git a/packages/lit/CHANGELOG.md b/packages/lit/CHANGELOG.md index 4c63b09752..043c831603 100644 --- a/packages/lit/CHANGELOG.md +++ b/packages/lit/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## 2.3.0 + +### Minor Changes + +- [#3156](https://github.com/lit/lit/pull/3156) [`ae6f6808`](https://github.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 dom-shim library. Note that actually rendering from a Node context still requires the @lit-labs/ssr dom-shim, and the appropriate integration between @lit-labs/ssr and your framework/tool. + +### Patch Changes + +- [#3003](https://github.com/lit/lit/pull/3003) [`daddeb34`](https://github.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd) - Lit's `async-directive` now re-exports everything from the `directive` module. + +- [#3120](https://github.com/lit/lit/pull/3120) [`6361a4b4`](https://github.com/lit/lit/commit/6361a4b4a589465cf6836c8454ed8ca4521d7b4d) - Bind `this` to custom attribute converter methods + +- Updated dependencies [[`daddeb34`](https://github.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd), [`0725fdb4`](https://github.com/lit/lit/commit/0725fdb4dd7d36e3a7154830c41b9af4cf866e52), [`3766ae4c`](https://github.com/lit/lit/commit/3766ae4c35edf794aa30ee2d738c6f63fdda44e5), [`6361a4b4`](https://github.com/lit/lit/commit/6361a4b4a589465cf6836c8454ed8ca4521d7b4d), [`ae6f6808`](https://github.com/lit/lit/commit/ae6f6808f539254b72ec7efcff34b812173abe64)]: + - lit-html@2.3.0 + - @lit/reactive-element@1.4.0 + ## 2.2.8 ### Patch Changes diff --git a/packages/lit/package.json b/packages/lit/package.json index 99e79b763a..9da96baa04 100644 --- a/packages/lit/package.json +++ b/packages/lit/package.json @@ -1,6 +1,6 @@ { "name": "lit", - "version": "2.2.8", + "version": "2.3.0", "publishConfig": { "access": "public" }, @@ -287,9 +287,9 @@ "/logo.svg" ], "dependencies": { - "@lit/reactive-element": "^1.3.0", + "@lit/reactive-element": "^1.4.0", "lit-element": "^3.2.0", - "lit-html": "^2.2.0" + "lit-html": "^2.3.0" }, "devDependencies": { "@webcomponents/shadycss": "^1.8.0", diff --git a/packages/localize/CHANGELOG.md b/packages/localize/CHANGELOG.md index 6da4b59568..28b42a923f 100644 --- a/packages/localize/CHANGELOG.md +++ b/packages/localize/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.11.4 + +### Patch Changes + +- [#3198](https://github.com/lit/lit/pull/3198) [`0162fbad`](https://github.com/lit/lit/commit/0162fbad61826ba0ff4188135ca4ab778762c4d7) - TS sources are now inlined in the JS source maps + +- Updated dependencies [[`daddeb34`](https://github.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd), [`6361a4b4`](https://github.com/lit/lit/commit/6361a4b4a589465cf6836c8454ed8ca4521d7b4d), [`ae6f6808`](https://github.com/lit/lit/commit/ae6f6808f539254b72ec7efcff34b812173abe64)]: + - lit@2.3.0 + - @lit/reactive-element@1.4.0 + ## 0.11.3 ### Patch Changes diff --git a/packages/localize/package.json b/packages/localize/package.json index ef1f7a50c2..8e598e882a 100644 --- a/packages/localize/package.json +++ b/packages/localize/package.json @@ -1,6 +1,6 @@ { "name": "@lit/localize", - "version": "0.11.3", + "version": "0.11.4", "publishConfig": { "access": "public" }, @@ -68,7 +68,7 @@ "/init/" ], "dependencies": { - "@lit/reactive-element": "^1.0.0", - "lit": "^2.0.0" + "@lit/reactive-element": "^1.4.0", + "lit": "^2.3.0" } } diff --git a/packages/reactive-element/CHANGELOG.md b/packages/reactive-element/CHANGELOG.md index c622bebba9..950a313388 100644 --- a/packages/reactive-element/CHANGELOG.md +++ b/packages/reactive-element/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 1.4.0 + +### Minor Changes + +- [#3156](https://github.com/lit/lit/pull/3156) [`ae6f6808`](https://github.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 dom-shim library. Note that actually rendering from a Node context still requires the @lit-labs/ssr dom-shim, and the appropriate integration between @lit-labs/ssr and your framework/tool. + +### Patch Changes + +- [#3120](https://github.com/lit/lit/pull/3120) [`6361a4b4`](https://github.com/lit/lit/commit/6361a4b4a589465cf6836c8454ed8ca4521d7b4d) - Bind `this` to custom attribute converter methods + ## 1.3.4 ### Patch Changes diff --git a/packages/reactive-element/package.json b/packages/reactive-element/package.json index 155f12d18d..0e6fb3e5ac 100644 --- a/packages/reactive-element/package.json +++ b/packages/reactive-element/package.json @@ -1,6 +1,6 @@ { "name": "@lit/reactive-element", - "version": "1.3.4", + "version": "1.4.0", "publishConfig": { "access": "public" }, diff --git a/packages/reactive-element/src/reactive-element.ts b/packages/reactive-element/src/reactive-element.ts index 3cdb991c6b..028486c808 100644 --- a/packages/reactive-element/src/reactive-element.ts +++ b/packages/reactive-element/src/reactive-element.ts @@ -1543,7 +1543,7 @@ if (DEV_MODE) { // IMPORTANT: do not change the property name or the assignment expression. // This line will be used in regexes to search for ReactiveElement usage. -(global.reactiveElementVersions ??= []).push('1.3.4'); +(global.reactiveElementVersions ??= []).push('1.4.0'); if (DEV_MODE && global.reactiveElementVersions.length > 1) { issueWarning!( 'multiple-versions',