Skip to content

Fix lib imports that are not compatible with TS6 and later - #361

Open
DavyLandman wants to merge 1 commit into
tsconfig:mainfrom
SWAT-engineering:fix/esnext-became-es2027-ts6
Open

DavyLandman wants to merge 1 commit into
tsconfig:mainfrom
SWAT-engineering:fix/esnext-became-es2027-ts6

Conversation

@DavyLandman

@DavyLandman DavyLandman commented Sep 21, 2026 •

Copy link
Copy Markdown

As TS6 was released beginning of this year, old ESNext became ES2025, and new ESNext became ES2027.

But this pulled in some new lib features into tsconfig, that the node engines didn't support yet.

So starting from node22, I reviewed all the libs and using NDM and the lib in the typescript repo I've figured out what the correct libraries are in the TS6+ state of the lib definitions.

An example is that a call to Map.getOrInsertComputed would be considered legal in node22 (as it flowed from ESNext.Collection) even though it's only supported in node 26.

I also found 2 missing lib declarations (for node-lts and node26) and fixed them.

@DavyLandman
DavyLandman force-pushed the fix/esnext-became-es2027-ts6 branch from 3d37e1a to a75e948 Compare September 21, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant