-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): upgrade typescript to 5.1.6 (#4718)
This release includes various refinements and improvements. One thing if fixes is an issue where previously an exported class declaration that included a static property would be not have the export keyword put directly on the class declaration, but instead the symbol would be exported. So with the following typescript: ```ts export class MyClass { static foobar: string = "baz"; } ``` the compiler would emit code like this: ```js class MyClass { static foobar = "baz"; } export { MyClass } ``` instead of ```js export class MyClass { static foobar = "baz; } ``` The former output causes an issue with Rollup, so that issue being fixed is part of the impetus for this upgrade. Try this out [here on the TS playground](https://www.typescriptlang.org/play?useDefineForClassFields=true&target=9&ts=5.1.6&ssl=1&ssc=1&pln=3&pc=1#code/KYDwDg9gTgLgBAYwDYEMDOa4GFUbgbwFgAoOMuNGFGASwTgDNoBbAQQwgRuuABM4AvHBhQArsADcJAL5A) to confirm (toggle between version 5.1 and 5.2 and look at the change in output). See <https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-1.html> for a full list of changes and improvements. Co-authored-by: Ryan Waskiewicz <ryanwaskiewicz@gmail.com>
- Loading branch information
1 parent
4fd1b28
commit 49df0e7
Showing
14 changed files
with
33 additions
and
320 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
src/compiler/transformers/decorators-to-static/convert-static-members.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
217 changes: 0 additions & 217 deletions
217
src/compiler/transformers/test/convert-static-members.spec.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.