Skip to content

Commit

Permalink
Version Packages (#4632)
Browse files Browse the repository at this point in the history
  • Loading branch information
lit-robot committed Apr 25, 2024
1 parent aa4fc3e commit 56cb2ca
Show file tree
Hide file tree
Showing 19 changed files with 76 additions and 39 deletions.
6 changes: 0 additions & 6 deletions .changeset/chilled-plants-reflect.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/empty-poems-cheat.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/khaki-experts-jump.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/polite-rice-stare.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/quiet-shirts-trade.md

This file was deleted.

7 changes: 7 additions & 0 deletions examples/nextjs-v13/CHANGELOG.md
@@ -1,5 +1,12 @@
# @lit-examples/nextjs-v13

## 0.1.2

### Patch Changes

- Updated dependencies [[`aa4fc3ef`](https://github.com/lit/lit/commit/aa4fc3eff349b202861e597ef7554934b9eaa19a)]:
- @lit-labs/nextjs@0.2.0

## 0.1.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions examples/nextjs-v13/package.json
@@ -1,6 +1,6 @@
{
"name": "@lit-examples/nextjs-v13",
"version": "0.1.1",
"version": "0.1.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@lit-labs/nextjs": "^0.1.2",
"@lit-labs/nextjs": "^0.2.0",
"@lit/react": "^1.0.0",
"@types/node": "^18.11.11",
"@types/react": "^18.0.26",
Expand Down
8 changes: 8 additions & 0 deletions examples/nextjs-v14-app/CHANGELOG.md
@@ -0,0 +1,8 @@
# @lit-examples/nextjs-v14-app

## 0.0.1

### Patch Changes

- Updated dependencies [[`aa4fc3ef`](https://github.com/lit/lit/commit/aa4fc3eff349b202861e597ef7554934b9eaa19a)]:
- @lit-labs/nextjs@0.2.0
4 changes: 2 additions & 2 deletions examples/nextjs-v14-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@lit-examples/nextjs-v14-app",
"version": "0.0.0",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@lit-labs/nextjs": "^0.1.2",
"@lit-labs/nextjs": "^0.2.0",
"@lit/react": "^1.0.0",
"@types/node": "^18.11.11",
"@types/react": "^18.0.26",
Expand Down
8 changes: 8 additions & 0 deletions examples/nextjs-v14/CHANGELOG.md
@@ -0,0 +1,8 @@
# @lit-examples/nextjs-v14

## 0.0.1

### Patch Changes

- Updated dependencies [[`aa4fc3ef`](https://github.com/lit/lit/commit/aa4fc3eff349b202861e597ef7554934b9eaa19a)]:
- @lit-labs/nextjs@0.2.0
4 changes: 2 additions & 2 deletions examples/nextjs-v14/package.json
@@ -1,6 +1,6 @@
{
"name": "@lit-examples/nextjs-v14",
"version": "0.0.0",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@lit-labs/nextjs": "^0.1.2",
"@lit-labs/nextjs": "^0.2.0",
"@lit/react": "^1.0.0",
"@types/node": "^18.11.11",
"@types/react": "^18.0.26",
Expand Down
15 changes: 15 additions & 0 deletions packages/labs/nextjs/CHANGELOG.md
@@ -1,5 +1,20 @@
# @lit-labs/nextjs

## 0.2.0

### Minor Changes

- [#4575](https://github.com/lit/lit/pull/4575) [`aa4fc3ef`](https://github.com/lit/lit/commit/aa4fc3eff349b202861e597ef7554934b9eaa19a) - Add support for Next.js 14 and App Router. No longer support Next.js 12.

Note: By default, components in the App Router are React Server Components (RSCs). Deep SSR of Lit components does **not** work within server components as they result in React hydration mismatch due to the presence of the `<template>` element in the RSC payload containing the serialized server component tree, and the custom element definitions will not be included with the client bundle either when imported in server component files.

Make sure any Lit components you wish to use are beyond the `'use client';` boundary. These will still be server rendered for the initial page load just like they did for the Pages Router.

### Patch Changes

- Updated dependencies [[`aa4fc3ef`](https://github.com/lit/lit/commit/aa4fc3eff349b202861e597ef7554934b9eaa19a), [`aa4fc3ef`](https://github.com/lit/lit/commit/aa4fc3eff349b202861e597ef7554934b9eaa19a)]:
- @lit-labs/ssr-react@0.3.0

## 0.1.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/nextjs/package.json
@@ -1,6 +1,6 @@
{
"name": "@lit-labs/nextjs",
"version": "0.1.4",
"version": "0.2.0",
"publishConfig": {
"access": "public"
},
Expand All @@ -20,7 +20,7 @@
"/lib/"
],
"dependencies": {
"@lit-labs/ssr-react": "^0.2.1",
"@lit-labs/ssr-react": "^0.3.0",
"@webcomponents/template-shadowroot": "^0.2.1",
"imports-loader": "^4.0.1"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/labs/ssr-react/CHANGELOG.md
@@ -1,5 +1,17 @@
# @lit-labs/ssr-react

## 0.3.0

### Minor Changes

- [#4575](https://github.com/lit/lit/pull/4575) [`aa4fc3ef`](https://github.com/lit/lit/commit/aa4fc3eff349b202861e597ef7554934b9eaa19a) - The Node build of `@lit-labs/ssr-react/enable-lit-ssr.js` now also monkey-patches `react/jsx-runtime` to include logic for deeply server-rendering Lit components without modifying `jsxImportSource` in tsconfig.

The monkey-patching logic also adds a workaround for inconsistent es module interop behavior in tools like webpack which could lead to errors like `TypeError: Cannot set property createElement of [object Module] which has only a getter`.

### Patch Changes

- [#4575](https://github.com/lit/lit/pull/4575) [`aa4fc3ef`](https://github.com/lit/lit/commit/aa4fc3eff349b202861e597ef7554934b9eaa19a) - Use a global flag to detect whether `@lit-labs/ssr-react/enable-lit-ssr.js` was used for coordinating props when server rendering components made with `@lit/react`.

## 0.2.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/ssr-react/package.json
@@ -1,6 +1,6 @@
{
"name": "@lit-labs/ssr-react",
"version": "0.2.3",
"version": "0.3.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -99,7 +99,7 @@
}
},
"devDependencies": {
"@lit/react": "1.0.4",
"@lit/react": "1.0.5",
"@types/node": "^20.11.25",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
Expand Down
7 changes: 7 additions & 0 deletions packages/labs/test-projects/test-elements-react/CHANGELOG.md
@@ -1,5 +1,12 @@
# @lit-internal/test-elements-react

## 1.0.6

### Patch Changes

- Updated dependencies [[`aa4fc3ef`](https://github.com/lit/lit/commit/aa4fc3eff349b202861e597ef7554934b9eaa19a)]:
- @lit/react@1.0.5

## 1.0.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/test-projects/test-elements-react/package.json
@@ -1,6 +1,6 @@
{
"name": "@lit-internal/test-elements-react",
"version": "1.0.5",
"version": "1.0.6",
"private": true,
"description": "React components made by wrapping @lit-internal/test-element-a with @lit/react used for testing.",
"type": "module",
Expand All @@ -9,7 +9,7 @@
},
"dependencies": {
"@lit-internal/test-element-a": "1.0.1",
"@lit/react": "1.0.4"
"@lit/react": "1.0.5"
},
"peerDependencies": {
"react": "^17 || ^18",
Expand Down
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
@@ -1,5 +1,11 @@
# Change Log

## 1.0.5

### Patch Changes

- [#4575](https://github.com/lit/lit/pull/4575) [`aa4fc3ef`](https://github.com/lit/lit/commit/aa4fc3eff349b202861e597ef7554934b9eaa19a) - Use a global flag to detect whether `@lit-labs/ssr-react/enable-lit-ssr.js` was used for coordinating props when server rendering components made with `@lit/react`.

## 1.0.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@lit/react",
"version": "1.0.4",
"version": "1.0.5",
"description": "A React component wrapper for web components.",
"license": "BSD-3-Clause",
"homepage": "https://lit.dev/",
Expand Down

0 comments on commit 56cb2ca

Please sign in to comment.