-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js v18 & v19 don't support some es2023 features #217
Comments
At this repo no, but those will probably come (or be fixed in) a new TypeScript release I expect |
Filed microsoft/TypeScript#56796. |
Maybe https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#supporting-lib-from-node_modules can work to override |
as they sadly does not err on the side of caution, cf. tsconfig/bases#217.
I sent microsoft/TypeScript-wiki#343 to fix the wiki; my memory is bad so I can't remember why I changed Node18 to ES2023 but I don't think it's correct in retrospect. (Maybe at that date, ES2023 hadn't been finalized? And so node.green did not include them?) |
ES2023 introduced
toSorted
,toReversed
,toSpliced
,with
, andfindLast
andfindLastIndex
methods on Array.prototype,Node.js 18 and 19 only support findLast and findLastIndex, and don't support toSorted and others
node18 and node19 bases both specify es2023 lib
https://github.com/tsconfig/bases/blob/5ee68ffc8325546335649525a3553067d2d27830/bases/node18.json
https://github.com/tsconfig/bases/blob/5ee68ffc8325546335649525a3553067d2d27830/bases/node19.json
I suspect nothing can be really done about this?
The text was updated successfully, but these errors were encountered: