[babel 8] Require Node.js ^18.20.0 || ^20.10.0 || >=21.0.0
#16457
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this PR we drop Node.js 16 support for Babel 8. Node.js 16 has reached end-of-life on Sept. 11th 2023. The Node.js 18 requirement is also bumped to 18.20.0, which supports
fs.readdir(... { recursive: true })
, the--import
node flag, the esm equivalent of--require
and the import attributes. The first feature will be used in babel-cli and the second one may potentially benefit babel-node.The Node.js 20 requirement is also bumped to 20.10.0 for import attributes support.
For references here are node requirements of other popular tools, we are not the first one to drop Node.js 16 so it should probably be fine.
eslint:
^18.18.0 || ^20.9.0 || >=21.1.0
jest
^16.10.0 || ^18.12.0 || >=20.0.0
prettier
>= 18
typescript-eslint
^18.18.0 || >=20.0.0