Skip to content

Commit 42d1ed5

Browse files
authored
Mention that updating to TypeScript 5.2 is necessary in the upgrade guide. (#1380)
1 parent 41736ac commit 42d1ed5

File tree

1 file changed

+2
-1
lines changed
  • packages/lit-dev-content/site/docs/v3/releases

1 file changed

+2
-1
lines changed

packages/lit-dev-content/site/docs/v3/releases/upgrade.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ Lit 3.0 has very few breaking changes from Lit 2.x:
2323
- APIs marked deprecated in Lit 2.x releases have been removed.
2424
- SSR hydration support modules have moved to the `@lit-labs/ssr-client` package.
2525
- Type only: Type of `ReactiveElement`'s `renderRoot` and `createRenderRoot()` have been updated.
26-
- Decorator behavior has been unified between TypeScript experimental decorators and standard decorators.
2726
- Support was removed for Babel decorators version "2018-09".
27+
- Decorator behavior has been unified between TypeScript experimental decorators and standard decorators.
28+
- As a consequence, if you use TypeScript you'll need to upgrade to at least TypeScript v5.2, to get the updated types for both kinds of decorators.
2829

2930
For the vast majority of users there should be no required code changes to upgrade from Lit 2 to Lit 3. Most apps and libraries should be able to extend their npm version ranges to include both 2.x and 3.x, like `"^2.7.0 || ^3.0.0"`.
3031

0 commit comments

Comments
 (0)