Import upstream changes (9f9120fde11d71076174c74bc69df60d2c9182bd)

This commit is contained in:
Lit Robot
2023-10-09 16:54:53 +00:00
parent 08aa0c1170
commit ee5ac525d5
6 changed files with 47 additions and 11 deletions

View File

@@ -1,5 +1,29 @@
# @lit/lit-starter-ts # @lit/lit-starter-ts
## 2.0.0-pre.1
### Major Changes
- [#4141](https://github.com/lit/lit/pull/4141) [`6b515e43`](https://github.com/lit/lit/commit/6b515e43c3a24cc8a593247d3aa72d81bcc724d5) - Update TypeScript to ~5.2.0
### Patch Changes
- Updated dependencies [[`6b515e43`](https://github.com/lit/lit/commit/6b515e43c3a24cc8a593247d3aa72d81bcc724d5), [`0f6878dc`](https://github.com/lit/lit/commit/0f6878dc45fd95bbeb8750f277349c1392e2b3ad), [`2a01471a`](https://github.com/lit/lit/commit/2a01471a5f65fe34bad11e1099281811b8d0f79b), [`2eba6997`](https://github.com/lit/lit/commit/2eba69974c9e130e7483f44f9daca308345497d5), [`d27a77ec`](https://github.com/lit/lit/commit/d27a77ec3d3999e872df9218a2b07f90f22eb417), [`6470807f`](https://github.com/lit/lit/commit/6470807f3a0981f9d418cb26f05969912455d148), [`09949234`](https://github.com/lit/lit/commit/09949234445388d51bfb4ee24ff28a4c9f82fe17)]:
- lit@3.0.0-pre.1
## 2.0.0-pre.0
### Major Changes
- [#3756](https://github.com/lit/lit/pull/3756) [`f06f7972`](https://github.com/lit/lit/commit/f06f7972a027d2937fe2c68ab5af0274dec57cf4) - Drop IE11 support
### Patch Changes
- [#3814](https://github.com/lit/lit/pull/3814) [`23326c6b`](https://github.com/lit/lit/commit/23326c6b9a6abdf01998dadf5d0f20a643e457aa) - Update to TypeScript v5.0
- Updated dependencies [[`dfd747cf`](https://github.com/lit/lit/commit/dfd747cf4f7239e0c3bb7134f8acb967d0157654), [`23c404fd`](https://github.com/lit/lit/commit/23c404fdec0cd7be834221b6ddf9b659c24ca8a2), [`1db01376`](https://github.com/lit/lit/commit/1db0137699b35d7e7bfac9b2ab274af4100fd7cf), [`c3e473b4`](https://github.com/lit/lit/commit/c3e473b499ff029b5e1aff01ca8799daf1ca1bbe), [`92cedaa2`](https://github.com/lit/lit/commit/92cedaa2c8cd8a306be3fe25d52e0e47bb044020), [`23326c6b`](https://github.com/lit/lit/commit/23326c6b9a6abdf01998dadf5d0f20a643e457aa), [`f06f7972`](https://github.com/lit/lit/commit/f06f7972a027d2937fe2c68ab5af0274dec57cf4)]:
- lit@3.0.0-pre.0
## 1.0.6 ## 1.0.6
### Patch Changes ### Patch Changes

View File

@@ -6,6 +6,22 @@ This template is generated from the `lit-starter-ts` package in [the main Lit
repo](https://github.com/lit/lit). Issues and PRs for this template should be repo](https://github.com/lit/lit). Issues and PRs for this template should be
filed in that repo. filed in that repo.
## About this release
This is a pre-release of Lit 3.0, the next major version of Lit.
Lit 3.0 has very few breaking changes from Lit 2.0:
- Drops support for IE11
- Published as ES2021
- Removes a couple of deprecated Lit 1.x APIs
Lit 3.0 should require no changes to upgrade from Lit 2.0 for the vast majority of users. Once the full release is published, most apps and libraries will be able to extend their npm version ranges to include both 2.x and 3.x, like `"^2.7.0 || ^3.0.0"`.
Lit 2.x and 3.0 are _interoperable_: templates, base classes, directives, decorators, etc., from one version of Lit will work with those from another.
Please file any issues you find on our [issue tracker](https://github.com/lit/lit/issues).
## Setup ## Setup
Install dependencies: Install dependencies:

View File

@@ -1,7 +1,7 @@
{ {
"name": "@lit/lit-starter-ts", "name": "@lit/lit-starter-ts",
"private": true, "private": true,
"version": "1.0.6", "version": "2.0.0-pre.1",
"description": "A simple web component", "description": "A simple web component",
"main": "my-element.js", "main": "my-element.js",
"module": "my-element.js", "module": "my-element.js",
@@ -41,7 +41,7 @@
"author": "Google LLC", "author": "Google LLC",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"dependencies": { "dependencies": {
"lit": "^2.2.4" "lit": "^3.0.0-pre.1"
}, },
"devDependencies": { "devDependencies": {
"@11ty/eleventy": "^1.0.1", "@11ty/eleventy": "^1.0.1",
@@ -56,7 +56,7 @@
"@web/dev-server-legacy": "^1.0.0", "@web/dev-server-legacy": "^1.0.0",
"@web/test-runner": "^0.15.0", "@web/test-runner": "^0.15.0",
"@web/test-runner-playwright": "^0.9.0", "@web/test-runner-playwright": "^0.9.0",
"@webcomponents/webcomponentsjs": "^2.6.0", "@webcomponents/webcomponentsjs": "^2.8.0",
"eslint": "^8.15.0", "eslint": "^8.15.0",
"lit-analyzer": "^1.2.1", "lit-analyzer": "^1.2.1",
"prettier": "^2.6.2", "prettier": "^2.6.2",
@@ -64,7 +64,7 @@
"rollup": "^2.73.0", "rollup": "^2.73.0",
"rollup-plugin-summary": "^1.4.3", "rollup-plugin-summary": "^1.4.3",
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2",
"typescript": "~4.7.4" "typescript": "~5.2.0"
}, },
"customElements": "custom-elements.json" "customElements": "custom-elements.json"
} }

View File

@@ -28,7 +28,7 @@ export default {
* For bundling and minification, check the README.md file. * For bundling and minification, check the README.md file.
*/ */
terser({ terser({
ecma: 2017, ecma: 2021,
module: true, module: true,
warnings: true, warnings: true,
mangle: { mangle: {

View File

@@ -1,8 +1,8 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es2019", "target": "es2021",
"module": "es2020", "module": "es2020",
"lib": ["es2020", "DOM", "DOM.Iterable"], "lib": ["es2021", "DOM", "DOM.Iterable"],
"declaration": true, "declaration": true,
"declarationMap": true, "declarationMap": true,
"sourceMap": true, "sourceMap": true,

View File

@@ -61,16 +61,12 @@ const browsers = {
// =========== // ===========
// chromium: sauceLabsLauncher({browserName: 'chrome', browserVersion: 'latest', platformName: 'Windows 10'}), // chromium: sauceLabsLauncher({browserName: 'chrome', browserVersion: 'latest', platformName: 'Windows 10'}),
// firefox: sauceLabsLauncher({browserName: 'firefox', browserVersion: 'latest', platformName: 'Windows 10'}), // firefox: sauceLabsLauncher({browserName: 'firefox', browserVersion: 'latest', platformName: 'Windows 10'}),
// edge: sauceLabsLauncher({browserName: 'MicrosoftEdge', browserVersion: 'latest', platformName: 'Windows 10'}),
// ie11: sauceLabsLauncher({browserName: 'internet explorer', browserVersion: '11.0', platformName: 'Windows 10'}),
// safari: sauceLabsLauncher({browserName: 'safari', browserVersion: 'latest', platformName: 'macOS 10.15'}), // safari: sauceLabsLauncher({browserName: 'safari', browserVersion: 'latest', platformName: 'macOS 10.15'}),
// Uncomment example launchers for running on Sauce Labs // Uncomment example launchers for running on Sauce Labs
// =========== // ===========
// chromium: browserstackLauncher({browserName: 'Chrome', os: 'Windows', os_version: '10'}), // chromium: browserstackLauncher({browserName: 'Chrome', os: 'Windows', os_version: '10'}),
// firefox: browserstackLauncher({browserName: 'Firefox', os: 'Windows', os_version: '10'}), // firefox: browserstackLauncher({browserName: 'Firefox', os: 'Windows', os_version: '10'}),
// edge: browserstackLauncher({browserName: 'MicrosoftEdge', os: 'Windows', os_version: '10'}),
// ie11: browserstackLauncher({browserName: 'IE', browser_version: '11.0', os: 'Windows', os_version: '10'}),
// safari: browserstackLauncher({browserName: 'Safari', browser_version: '14.0', os: 'OS X', os_version: 'Big Sur'}), // safari: browserstackLauncher({browserName: 'Safari', browser_version: '14.0', os: 'OS X', os_version: 'Big Sur'}),
}; };