Skip to content

Commit ede3cf4

Browse files
committed
Fixes the year
1 parent 8a1d3c9 commit ede3cf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/documentation/copy/en/release-notes/TypeScript 4.3.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -774,11 +774,11 @@ This is discussed [in some detail here](https://github.com/microsoft/TypeScript-
774774
775775
https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/991
776776
777-
### `useDefineForClassFields` now defaults to true on `es2020` and above
777+
### `useDefineForClassFields` now defaults to true on `esnext` and eventually on `es2022`
778778
779-
In ES2020 the class fields feature was added into JavaScript with behavior which differed from how TypeScript had implemented it. In preparation for this, in TypeScript 3.7, a flag was added ([`useDefineForClassFields`](https://www.typescriptlang.org/tsconfig#useDefineForClassFields)) to migrate to emitted JavaScript to match the JavaScript standard behavior.
779+
In 2021 the class fields feature was added into the JavaScript specification with behavior which differed from how TypeScript had implemented it. In preparation for this, in TypeScript 3.7, a flag was added ([`useDefineForClassFields`](https://www.typescriptlang.org/tsconfig#useDefineForClassFields)) to migrate to emitted JavaScript to match the JavaScript standard behavior.
780780
781-
Now that the feature is in JavaScript, we are switching to the JavaScript behavior for any projects targeting `es2020` and above.
781+
Now that the feature is in JavaScript we are changing the default to `true` for ES2022 and above, including ESNext.
782782
783783
### Errors on Always-Truthy Promise Checks
784784

0 commit comments

Comments
 (0)