Skip to content

Commit

Permalink
Merge branch 'main' into update-ssr-async
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJakubowicz committed Nov 16, 2023
2 parents b291a95 + f5f68b8 commit 8acf35e
Show file tree
Hide file tree
Showing 46 changed files with 135 additions and 105 deletions.
5 changes: 0 additions & 5 deletions .changeset/brave-moles-check.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/heavy-panthers-carry.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/loud-zoos-invent.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mighty-geese-beg.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/pink-maps-exercise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-taxis-wash.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/proud-bulldogs-sin.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/quick-moons-hear.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smart-apes-rhyme.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smooth-countries-work.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/strong-ants-think.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/stupid-cups-work.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/sweet-turtles-share.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tasty-sloths-pump.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/tough-insects-jump.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-lemons-kick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/young-elephants-care.md

This file was deleted.

10 changes: 10 additions & 0 deletions packages/context/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @lit-labs/context

## 1.1.0

### Minor Changes

- [#4371](https://github.com/lit/lit/pull/4371) [`62df19da`](https://github.com/lit/lit/commit/62df19da63b94b89e688277967b84b381dcf1660) Thanks [@autopulated](https://github.com/autopulated)! - `ContextProvider` can now be added to any HTML elements, not just custom elements implementing a `ReactiveControllerHost`.

### Patch Changes

- [#4373](https://github.com/lit/lit/pull/4373) [`22919f6d`](https://github.com/lit/lit/commit/22919f6d0051f075bdb5f6033a5e4263b76a0c3e) - Make property decorated with `@provide()` with TypeScript experimental decorators configurable. This allows chaining additional decorators that modify the property like `@property()` from `lit`.

## 1.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/context/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit/context",
"version": "1.0.1",
"version": "1.1.0",
"description": "Helpers and controllers for using Context protocol",
"license": "BSD-3-Clause",
"homepage": "https://lit.dev/",
Expand Down Expand Up @@ -216,7 +216,7 @@
"@lit-internal/scripts": "^1.0.1",
"@lit-labs/testing": "^0.2.2",
"@types/trusted-types": "^2.0.2",
"lit": "^3.0.0"
"lit": "^3.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/cli/src/lib/lit-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const litVersion = '3.0.2';
export const litVersion = '3.1.0';
2 changes: 1 addition & 1 deletion packages/labs/cli/test-goldens/init/js-named/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lit"
],
"dependencies": {
"lit": "^3.0.2"
"lit": "^3.1.0"
},
"devDependencies": {
"@web/dev-server": "^0.1.32"
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/cli/test-goldens/init/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lit"
],
"dependencies": {
"lit": "^3.0.2"
"lit": "^3.1.0"
},
"devDependencies": {
"@web/dev-server": "^0.1.32"
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/cli/test-goldens/init/ts-named/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lit"
],
"dependencies": {
"lit": "^3.0.2"
"lit": "^3.1.0"
},
"devDependencies": {
"@web/dev-server": "^0.1.32",
Expand Down
6 changes: 6 additions & 0 deletions packages/labs/nextjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @lit-labs/nextjs

## 0.1.4

### Patch Changes

- [#4354](https://github.com/lit/lit/pull/4354) [`c8e1509c`](https://github.com/lit/lit/commit/c8e1509c1a86b082061853f56f980c6d1babbefb) - Add plugin option `addDeclarativeShadowDomPolyfill` which, if true, will add a script to the client bundle which will apply the `@webcomponents/template-shadowroot` ponyfill on the document. Note: If you were manually adding the polyfill, you can either remove your own implementation or set this option to `false`.

## 0.1.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-labs/nextjs",
"version": "0.1.3",
"version": "0.1.4",
"publishConfig": {
"access": "public"
},
Expand Down
9 changes: 9 additions & 0 deletions packages/labs/ssr-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @lit-labs/ssr-react

## 0.2.3

### Patch Changes

- [#4364](https://github.com/lit/lit/pull/4364) [`1ea4720f`](https://github.com/lit/lit/commit/1ea4720fd65d518cea34d8f8d880a31b8d9c4c1b) - Fix rendering of nested custom elements so that child custom elements will properly have the `defer-hydration` attribute from SSR, ensuring correct hydration order from parent to child.

- Updated dependencies [[`ef2976b9`](https://github.com/lit/lit/commit/ef2976b9e6b737f54f61e3ebf7af42ff921f00cb), [`011b762d`](https://github.com/lit/lit/commit/011b762d68c1f90eff2028cc345cb8cb818a64cb)]:
- @lit-labs/ssr@3.2.0

## 0.2.2

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/labs/ssr-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-labs/ssr-react",
"version": "0.2.2",
"version": "0.2.3",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -47,7 +47,7 @@
"/jsx-runtime.{d.ts,d.ts.map,js,js.map}"
],
"dependencies": {
"@lit-labs/ssr": "^3.1.8",
"@lit-labs/ssr": "^3.2.0",
"@lit-labs/ssr-client": "^1.1.4"
},
"peerDependencies": {
Expand Down Expand Up @@ -99,10 +99,10 @@
}
},
"devDependencies": {
"@lit/react": "1.0.1",
"@lit/react": "1.0.2",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"lit": "^3.0.0",
"lit": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"uvu": "^0.5.6"
Expand Down
14 changes: 14 additions & 0 deletions packages/labs/ssr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Change Log

## 3.2.0

### Minor Changes

- [#4382](https://github.com/lit/lit/pull/4382) [`011b762d`](https://github.com/lit/lit/commit/011b762d68c1f90eff2028cc345cb8cb818a64cb) - Add a server-only html function, to define templates that will only be rendered on the server.

### Patch Changes

- [#4389](https://github.com/lit/lit/pull/4389) [`ef2976b9`](https://github.com/lit/lit/commit/ef2976b9e6b737f54f61e3ebf7af42ff921f00cb) - Fix a race condition in `RenderResultReadable` which could skip async work.

- Updated dependencies [[`bf551b5b`](https://github.com/lit/lit/commit/bf551b5bdc816c1b0117ab436c50390ae3f5686d), [`949a5467`](https://github.com/lit/lit/commit/949a54677748a1f83ec4d166bd40e244de3afda7), [`c7922a0c`](https://github.com/lit/lit/commit/c7922a0cb90075a9e4c72f93078e411a303c54d1), [`839ca0f8`](https://github.com/lit/lit/commit/839ca0f81a451fbaae97d958aafcaf4c52df9b65)]:
- lit@3.1.0
- lit-html@3.1.0

## 3.1.9

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/labs/ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lit-labs/ssr",
"type": "module",
"version": "3.1.9",
"version": "3.2.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -232,9 +232,9 @@
"@parse5/tools": "^0.3.0",
"@types/node": "^16.0.0",
"enhanced-resolve": "^5.10.0",
"lit": "^2.8.0 || ^3.0.0",
"lit": "^3.1.0",
"lit-element": "^3.3.0 || ^4.0.0",
"lit-html": "^2.8.0 || ^3.0.0",
"lit-html": "^3.1.0",
"node-fetch": "^3.2.8",
"parse5": "^7.1.1"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/labs/test-projects/test-elements-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @lit-internal/test-elements-react

## 1.0.3

### Patch Changes

- Updated dependencies [[`001a1b78`](https://github.com/lit/lit/commit/001a1b78074aa799946c0db798bacc1ba1422cbf)]:
- @lit/react@1.0.2

## 1.0.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/test-projects/test-elements-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-internal/test-elements-react",
"version": "1.0.2",
"version": "1.0.3",
"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.1"
"@lit/react": "1.0.2"
},
"peerDependencies": {
"react": "^17 || ^18",
Expand Down
9 changes: 9 additions & 0 deletions packages/labs/virtualizer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @lit-labs/virtualizer

## 2.0.11

### Patch Changes

- [#4375](https://github.com/lit/lit/pull/4375) [`449bc281`](https://github.com/lit/lit/commit/449bc2815593e8150b0737ed0190ba2c9843ba66) Thanks [@graynorton](https://github.com/graynorton)! - Fix issue where virtualizer didn't render children when slotted into a position:fixed ancestor (#4346)

- Updated dependencies [[`bf551b5b`](https://github.com/lit/lit/commit/bf551b5bdc816c1b0117ab436c50390ae3f5686d), [`949a5467`](https://github.com/lit/lit/commit/949a54677748a1f83ec4d166bd40e244de3afda7), [`c7922a0c`](https://github.com/lit/lit/commit/c7922a0cb90075a9e4c72f93078e411a303c54d1), [`839ca0f8`](https://github.com/lit/lit/commit/839ca0f81a451fbaae97d958aafcaf4c52df9b65)]:
- lit@3.1.0

## 2.0.10

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/virtualizer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-labs/virtualizer",
"version": "2.0.10",
"version": "2.0.11",
"description": "Viewport-based virtualization (virtual scrolling) for Lit",
"author": "Google LLC",
"license": "BSD-3-Clause",
Expand Down Expand Up @@ -159,7 +159,7 @@
"tachometer": "^0.7.0"
},
"dependencies": {
"lit": "^2 || ^3",
"lit": "^3.1.0",
"tslib": "^2.0.3"
}
}
13 changes: 13 additions & 0 deletions packages/lit-element/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log

## 4.0.2

### Patch Changes

- [#4387](https://github.com/lit/lit/pull/4387) [`bf551b5b`](https://github.com/lit/lit/commit/bf551b5bdc816c1b0117ab436c50390ae3f5686d) - Ensure `renderRoot` exists before first update (#4268)

- [#4282](https://github.com/lit/lit/pull/4282) [`c7922a0c`](https://github.com/lit/lit/commit/c7922a0cb90075a9e4c72f93078e411a303c54d1) Thanks [@MaxArt2501](https://github.com/MaxArt2501)! - Fix a bug where accessing a `@query` decorated field with the `cache` flag set before the first update would result in `null` being cached permanently. `null` will no longer be cached before the first update and in `DEV_MODE` now raises a warning.

- [#4388](https://github.com/lit/lit/pull/4388) [`839ca0f8`](https://github.com/lit/lit/commit/839ca0f81a451fbaae97d958aafcaf4c52df9b65) - Fixes bug where adding or removing controllers during a reactive controller lifecycle would affect the execution of other controllers (#4266). Controllers can now be added/removed during lifecycle without affecting others.

- Updated dependencies [[`949a5467`](https://github.com/lit/lit/commit/949a54677748a1f83ec4d166bd40e244de3afda7)]:
- lit-html@3.1.0

## 4.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/lit-element/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lit-element",
"version": "4.0.1",
"version": "4.0.2",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -250,7 +250,7 @@
"dependencies": {
"@lit-labs/ssr-dom-shim": "^1.1.2",
"@lit/reactive-element": "^2.0.0",
"lit-html": "^3.0.0"
"lit-html": "^3.1.0"
},
"devDependencies": {
"@lit-internal/scripts": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-element/src/lit-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export const _$LE = {

// IMPORTANT: do not change the property name or the assignment expression.
// This line will be used in regexes to search for LitElement usage.
(globalThis.litElementVersions ??= []).push('4.0.1');
(globalThis.litElementVersions ??= []).push('4.0.2');
if (DEV_MODE && globalThis.litElementVersions.length > 1) {
issueWarning!(
'multiple-versions',
Expand Down
6 changes: 6 additions & 0 deletions packages/lit-html/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 3.1.0

### Minor Changes

- [#4309](https://github.com/lit/lit/pull/4309) [`949a5467`](https://github.com/lit/lit/commit/949a54677748a1f83ec4d166bd40e244de3afda7) - Adds two new types: UncompiledTemplateResult and MaybeCompiledTemplateResult. Currently UncompiledTemplateResult is the same as TemplateResult, and MaybeCompiledTemplateResult is the union of the compiled and uncompiled types.

## 3.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-html/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lit-html",
"version": "3.0.2",
"version": "3.1.0",
"description": "HTML templates literals in JavaScript",
"license": "BSD-3-Clause",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-html/src/lit-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,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('3.0.2');
(global.litHtmlVersions ??= []).push('3.1.0');
if (DEV_MODE && global.litHtmlVersions.length > 1) {
issueWarning!(
'multiple-versions',
Expand Down

0 comments on commit 8acf35e

Please sign in to comment.