Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[infra] Lit core pre-releases to test #3156 #3173

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/big-months-deliver.md
@@ -0,0 +1,5 @@
---
'lit-element': patch
---

Fix invalid pre-releases that lacked build output.
7 changes: 7 additions & 0 deletions .changeset/fresh-deers-brake.md
@@ -0,0 +1,7 @@
---
'lit': patch
'lit-html': patch
'@lit/reactive-element': patch
AndrewJakubowicz marked this conversation as resolved.
Show resolved Hide resolved
---

Fix invalid pre-releases that lacked build output.
48 changes: 48 additions & 0 deletions .changeset/pre.json
@@ -0,0 +1,48 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"@lit-internal/benchmarks": "1.0.2",
"@lit-internal/scripts": "1.0.0",
"@lit-labs/analyzer": "0.2.2",
"@lit-labs/cli": "0.0.1",
"@lit-labs/context": "0.1.3",
"@lit-labs/eleventy-plugin-lit": "0.2.2",
"@lit-labs/gen-utils": "0.0.1",
"@lit-labs/gen-wrapper-angular": "0.0.0",
"@lit-labs/gen-wrapper-react": "0.0.1",
"@lit-labs/gen-wrapper-vue": "0.0.1",
"@lit-labs/motion": "1.0.3",
"@lit-labs/observers": "1.0.2",
"@lit-labs/react": "1.0.7",
"@lit-labs/router": "0.1.1",
"@lit-labs/scoped-registry-mixin": "1.0.1",
"@lit-labs/ssr": "2.2.2",
"@lit-labs/ssr-client": "1.0.1",
"@lit-labs/task": "1.1.3",
"@lit-internal/test-element-a": "1.0.0",
"@lit-labs/testing": "0.1.0",
"@lit-labs/virtualizer": "0.7.1",
"@lit-labs/vue-utils": "0.0.1",
"lit": "2.2.8",
"lit-element": "3.2.2",
"lit-html": "2.2.7",
"@lit/lit-starter-js": "1.0.4",
"@lit/lit-starter-ts": "1.0.4",
"@lit/localize": "0.11.3",
"@lit/localize-tools": "0.6.5",
"@lit-internal/localize-examples-runtime-js": "1.0.1",
"@lit-internal/localize-examples-runtime-ts": "1.0.1",
"@lit-internal/localize-examples-transform-js": "1.0.1",
"@lit-internal/localize-examples-transform-ts": "1.0.1",
"@lit/reactive-element": "1.3.4",
"@lit-internal/tests": "0.0.0",
"@lit/ts-transformers": "1.1.3"
},
"changesets": [
"big-months-deliver",
"curly-cars-peel",
"fresh-deers-brake",
"tall-mirrors-notice"
]
}
7 changes: 7 additions & 0 deletions .changeset/tall-mirrors-notice.md
@@ -0,0 +1,7 @@
---
'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.
2 changes: 2 additions & 0 deletions .eslintignore
Expand Up @@ -62,6 +62,7 @@ packages/lit-element/polyfill-support.*
packages/lit-element/private-ssr-support.*

packages/lit-html/development/
packages/lit-html/node/
packages/lit-html/version-stability-build/
packages/lit-html/directives/
packages/lit-html/node_modules/
Expand Down Expand Up @@ -118,6 +119,7 @@ packages/localize-tools/testdata/*/output/

packages/reactive-element/decorators/
packages/reactive-element/development/
packages/reactive-element/node/
packages/reactive-element/test/
packages/reactive-element/css-tag.*
packages/reactive-element/decorators.*
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Expand Up @@ -62,6 +62,7 @@ packages/lit-element/polyfill-support.*
packages/lit-element/private-ssr-support.*

packages/lit-html/development/
packages/lit-html/node/
packages/lit-html/version-stability-build/
packages/lit-html/directives/
packages/lit-html/node_modules/
Expand Down Expand Up @@ -104,6 +105,7 @@ packages/localize-tools/testdata/*/output/

packages/reactive-element/decorators/
packages/reactive-element/development/
packages/reactive-element/node/
packages/reactive-element/test/
packages/reactive-element/css-tag.*
packages/reactive-element/decorators.*
Expand Down
6 changes: 3 additions & 3 deletions packages/benchmarks/package.json
Expand Up @@ -62,9 +62,9 @@
}
},
"dependencies": {
"@lit/reactive-element": "^1.1.0",
"lit-element": "^3.1.0",
"lit-html": "^2.1.0",
"@lit/reactive-element": "^1.4.0-next.0",
"lit-element": "^3.2.3-next.0",
"lit-html": "^2.3.0-next.0",
"tachometer": "^0.7.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/labs/context/package.json
Expand Up @@ -132,8 +132,8 @@
},
"author": "Google LLC",
"dependencies": {
"@lit/reactive-element": "^1.0.0",
"lit": "^2.0.0"
"@lit/reactive-element": "^1.4.0-next.0",
"lit": "^2.3.0-next.0"
},
"devDependencies": {
"@types/trusted-types": "^2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/eleventy-plugin-lit/package.json
Expand Up @@ -91,7 +91,7 @@
},
"dependencies": {
"@lit-labs/ssr": "^2.0.1",
"lit": "^2.0.2"
"lit": "^2.3.0-next.0"
},
"devDependencies": {
"@11ty/eleventy": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/motion/package.json
Expand Up @@ -144,7 +144,7 @@
"@lit-internal/scripts": "^1.0.0"
},
"dependencies": {
"lit": "^2.0.0"
"lit": "^2.3.0-next.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/observers/package.json
Expand Up @@ -158,7 +158,7 @@
"@lit-internal/scripts": "^1.0.0"
},
"dependencies": {
"@lit/reactive-element": "^1.1.0"
"@lit/reactive-element": "^1.4.0-next.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/react/package.json
Expand Up @@ -137,7 +137,7 @@
},
"author": "Google LLC",
"devDependencies": {
"@lit/reactive-element": "^1.0.0",
"@lit/reactive-element": "^1.4.0-next.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/trusted-types": "^2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/router/package.json
Expand Up @@ -152,6 +152,6 @@
"urlpattern-polyfill": "^5.0.5"
},
"dependencies": {
"lit": "^2.1.0"
"lit": "^2.3.0-next.0"
}
}
4 changes: 2 additions & 2 deletions packages/labs/scoped-registry-mixin/package.json
Expand Up @@ -135,8 +135,8 @@
},
"author": "Google LLC",
"dependencies": {
"@lit/reactive-element": "^1.0.0",
"lit": "^2.0.0"
"@lit/reactive-element": "^1.4.0-next.0",
"lit": "^2.3.0-next.0"
},
"devDependencies": {
"@types/trusted-types": "^2.0.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/labs/ssr-client/package.json
Expand Up @@ -106,9 +106,9 @@
"@lit-internal/scripts": "^1.0.0"
},
"dependencies": {
"lit": "^2.0.0",
"lit-html": "^2.0.0",
"@lit/reactive-element": "^1.0.0"
"lit": "^2.3.0-next.0",
"lit-html": "^2.3.0-next.0",
"@lit/reactive-element": "^1.4.0-next.0"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/labs/ssr/package.json
Expand Up @@ -149,11 +149,11 @@
},
"dependencies": {
"@lit-labs/ssr-client": "^1.0.0",
"@lit/reactive-element": "^1.1.0",
"@lit/reactive-element": "^1.4.0-next.0",
"@types/node": "^16.0.0",
"lit": "^2.1.0",
"lit-element": "^3.1.0",
"lit-html": "^2.1.0",
"lit": "^2.3.0-next.0",
"lit-element": "^3.2.3-next.0",
"lit-html": "^2.3.0-next.0",
"node-fetch": "^3.2.8",
"parse5": "^6.0.1",
"resolve": "^1.10.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/task/package.json
Expand Up @@ -137,7 +137,7 @@
"@lit-internal/scripts": "^1.0.0"
},
"dependencies": {
"@lit/reactive-element": "^1.1.0"
"@lit/reactive-element": "^1.4.0-next.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/test-projects/test-element-a/package.json
Expand Up @@ -10,7 +10,7 @@
"/element-a.{js,js.map,d.ts,d.ts.map}"
],
"dependencies": {
"lit": "^2.0.0"
"lit": "^2.3.0-next.0"
},
"devDependencies": {
"typescript": "~4.7.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/testing/package.json
Expand Up @@ -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-next.0"
},
"devDependencies": {
"@open-wc/testing": "^3.1.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/virtualizer/package.json
Expand Up @@ -107,7 +107,7 @@
},
"dependencies": {
"event-target-shim": "^6.0.2",
"lit": "^2.0.0",
"lit": "^2.3.0-next.0",
"tslib": "^2.0.3"
}
}
14 changes: 14 additions & 0 deletions packages/lit-element/CHANGELOG.md
@@ -1,5 +1,19 @@
# Change Log

## 3.2.3-next.1

### Patch Changes

- Fix invalid pre-releases that lacked build output.

## 3.2.3-next.0

### Patch Changes

- Updated dependencies [[`daddeb34`](https://github.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd), [`6d6ec286`](https://github.com/lit/lit/commit/6d6ec28605aa58e7c35d842b13ae161d417192c3)]:
- lit-html@2.3.0-next.0
- @lit/reactive-element@1.4.0-next.0

## 3.2.2

### Patch Changes
Expand Down
19 changes: 15 additions & 4 deletions packages/lit-element/package.json
@@ -1,6 +1,6 @@
{
"name": "lit-element",
"version": "3.2.2",
"version": "3.2.3-next.1",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -104,7 +104,8 @@
"prepublishOnly": "npm run check-version",
"test": "wireit",
"test:dev": "wireit",
"test:prod": "wireit"
"test:prod": "wireit",
"test:node": "wireit"
},
"wireit": {
"build": {
Expand Down Expand Up @@ -198,6 +199,7 @@
"dependencies": [
"test:dev",
"test:prod",
"test:node",
"check-version"
]
},
Expand All @@ -219,6 +221,15 @@
],
"files": [],
"output": []
},
"test:node": {
"command": "node development/test/node-imports.js",
"dependencies": [
"build:ts",
"build:rollup"
],
"files": [],
"output": []
}
},
"files": [
Expand All @@ -233,8 +244,8 @@
"!/development/test/"
],
"dependencies": {
"@lit/reactive-element": "^1.3.0",
"lit-html": "^2.2.0"
"@lit/reactive-element": "^1.4.0-next.0",
"lit-html": "^2.3.0-next.0"
},
"devDependencies": {
"@webcomponents/shadycss": "^1.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-element/src/lit-element.ts
Expand Up @@ -298,7 +298,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('3.2.2');
(globalThis.litElementVersions ??= []).push('3.2.3-next.1');
if (DEV_MODE && globalThis.litElementVersions.length > 1) {
issueWarning!(
'multiple-versions',
Expand Down
39 changes: 39 additions & 0 deletions packages/lit-element/src/test/node-imports.ts
@@ -0,0 +1,39 @@
/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

// This file will be loaded by Node from the node:test script to verify that all
// exports of this package can be imported without crashing in Node.

import 'lit-element';
import 'lit-element/experimental-hydrate-support.js';
import 'lit-element/private-ssr-support.js';
import 'lit-element/decorators.js';
import 'lit-element/decorators/custom-element.js';
import 'lit-element/decorators/event-options.js';
import 'lit-element/decorators/state.js';
import 'lit-element/decorators/property.js';
import 'lit-element/decorators/query.js';
import 'lit-element/decorators/query-all.js';
import 'lit-element/decorators/query-assigned-elements.js';
import 'lit-element/decorators/query-assigned-nodes.js';
import 'lit-element/decorators/query-async.js';

import {LitElement, html} from 'lit-element';
import {customElement} from 'lit-element/decorators.js';

@customElement('my-element')
export class MyElement extends LitElement {
override render() {
return html`Hello World`;
}
}

export class MyOtherElement extends LitElement {
override render() {
return html`Hello World`;
}
}
customElements.define('my-other-element', MyOtherElement);
1 change: 1 addition & 0 deletions packages/lit-html/.gitignore
@@ -1,4 +1,5 @@
/development/
/node/
/version-stability-build/
/directives/
/node_modules/
Expand Down
16 changes: 16 additions & 0 deletions packages/lit-html/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log

## 2.3.0-next.1

### Patch Changes

- Fix invalid pre-releases that lacked build output.

## 2.3.0-next.0

### Minor Changes

- [#3156](https://github.com/lit/lit/pull/3156) [`6d6ec286`](https://github.com/lit/lit/commit/6d6ec28605aa58e7c35d842b13ae161d417192c3) - 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.

## 2.2.7

### Patch Changes
Expand Down