diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ae0135..5d328a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # @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 ### Patch Changes diff --git a/README.md b/README.md index e1f782a..1c628ed 100644 --- a/README.md +++ b/README.md @@ -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 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 Install dependencies: diff --git a/package.json b/package.json index 9c41fdf..f4cb4cb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@lit/lit-starter-ts", "private": true, - "version": "1.0.6", + "version": "2.0.0-pre.1", "description": "A simple web component", "main": "my-element.js", "module": "my-element.js", @@ -41,7 +41,7 @@ "author": "Google LLC", "license": "BSD-3-Clause", "dependencies": { - "lit": "^2.2.4" + "lit": "^3.0.0-pre.1" }, "devDependencies": { "@11ty/eleventy": "^1.0.1", @@ -56,7 +56,7 @@ "@web/dev-server-legacy": "^1.0.0", "@web/test-runner": "^0.15.0", "@web/test-runner-playwright": "^0.9.0", - "@webcomponents/webcomponentsjs": "^2.6.0", + "@webcomponents/webcomponentsjs": "^2.8.0", "eslint": "^8.15.0", "lit-analyzer": "^1.2.1", "prettier": "^2.6.2", @@ -64,7 +64,7 @@ "rollup": "^2.73.0", "rollup-plugin-summary": "^1.4.3", "rollup-plugin-terser": "^7.0.2", - "typescript": "~4.7.4" + "typescript": "~5.2.0" }, "customElements": "custom-elements.json" } diff --git a/rollup.config.js b/rollup.config.js index 1128995..92a2b51 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -28,7 +28,7 @@ export default { * For bundling and minification, check the README.md file. */ terser({ - ecma: 2017, + ecma: 2021, module: true, warnings: true, mangle: { diff --git a/tsconfig.json b/tsconfig.json index 41093d5..9a47b63 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "target": "es2019", + "target": "es2021", "module": "es2020", - "lib": ["es2020", "DOM", "DOM.Iterable"], + "lib": ["es2021", "DOM", "DOM.Iterable"], "declaration": true, "declarationMap": true, "sourceMap": true, diff --git a/web-test-runner.config.js b/web-test-runner.config.js index 09d6791..b38352e 100644 --- a/web-test-runner.config.js +++ b/web-test-runner.config.js @@ -61,16 +61,12 @@ const browsers = { // =========== // chromium: sauceLabsLauncher({browserName: 'chrome', 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'}), // Uncomment example launchers for running on Sauce Labs // =========== // chromium: browserstackLauncher({browserName: 'Chrome', 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'}), };