Skip to content

Commit fdc0fb5

Browse files
authored
[Babel 8] Bump nodejs requirements to ^20.19.0 || >= 22.12.0 (#17204)
* bump node.js requirements to ^20.19.0 || >= 22.12.0 * update package.json * update babel.config.js * update CI config
1 parent 0d098d7 commit fdc0fb5

164 files changed

Lines changed: 165 additions & 165 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ jobs:
321321
steps:
322322
- name: Checkout code
323323
uses: actions/checkout@v4
324-
- name: Use Node.js 18.20.0
324+
- name: Use Node.js 20.19.0
325325
uses: actions/setup-node@v4
326326
with:
327-
node-version: "18.20.0" # Node.js 18.20.0 is the first LTS supported by Babel 8
327+
node-version: "20.19.0" # Node.js 20.19.0 is the first LTS supported by Babel 8
328328
cache: "yarn"
329329
- name: Install
330330
run: yarn install

‎babel.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = function (api) {
8585
let ignoreLib = true;
8686
let needsPolyfillsForOldNode = false;
8787

88-
const nodeVersion = bool(process.env.BABEL_8_BREAKING) ? "16.20" : "6.9";
88+
const nodeVersion = bool(process.env.BABEL_8_BREAKING) ? "20.19" : "6.9";
8989
// The vast majority of our src files are modules, but we use
9090
// unambiguous to keep things simple until we get around to renaming
9191
// the modules to be more easily distinguished from CommonJS

‎codemods/babel-plugin-codemod-object-assign-to-object-spread/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"BABEL_8_BREAKING": [
3232
{
3333
"engines": {
34-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
34+
"node": "^20.19.0 || >=22.12.0"
3535
}
3636
},
3737
{

‎codemods/babel-plugin-codemod-optional-catch-binding/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"BABEL_8_BREAKING": [
3232
{
3333
"engines": {
34-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
34+
"node": "^20.19.0 || >=22.12.0"
3535
}
3636
},
3737
{

‎eslint/babel-eslint-parser/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"BABEL_8_BREAKING": [
5656
{
5757
"engines": {
58-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
58+
"node": "^20.19.0 || >=22.12.0"
5959
},
6060
"peerDependencies": {
6161
"@babel/core": ">=7.11.0",

‎eslint/babel-eslint-plugin-development/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"BABEL_8_BREAKING": [
3838
{
3939
"engines": {
40-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
40+
"node": "^20.19.0 || >=22.12.0"
4141
}
4242
},
4343
{}

‎eslint/babel-eslint-plugin/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"BABEL_8_BREAKING": [
5252
{
5353
"engines": {
54-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
54+
"node": "^20.19.0 || >=22.12.0"
5555
},
5656
"peerDependencies": {
5757
"@babel/eslint-parser": "^7.11.0",

‎packages/babel-cli/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"BABEL_8_BREAKING": [
5858
{
5959
"engines": {
60-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
60+
"node": "^20.19.0 || >=22.12.0"
6161
}
6262
},
6363
{

‎packages/babel-code-frame/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"BABEL_8_BREAKING": [
3232
{
3333
"engines": {
34-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
34+
"node": "^20.19.0 || >=22.12.0"
3535
}
3636
},
3737
{

‎packages/babel-compat-data/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"./plugin-bugfixes": "./plugin-bugfixes.js"
2323
},
2424
"engines": {
25-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
25+
"node": "^20.19.0 || >=22.12.0"
2626
}
2727
},
2828
null

0 commit comments

Comments
 (0)