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

File tree

164 files changed

+165
-165
lines changed

Some content is hidden

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

164 files changed

+165
-165
lines changed

.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

packages/babel-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
}
9191
},
9292
"engines": {
93-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
93+
"node": "^20.19.0 || >=22.12.0"
9494
}
9595
},
9696
{

packages/babel-generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"BABEL_8_BREAKING": [
4141
{
4242
"engines": {
43-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
43+
"node": "^20.19.0 || >=22.12.0"
4444
}
4545
},
4646
{

packages/babel-helper-annotate-as-pure/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"BABEL_8_BREAKING": [
2828
{
2929
"engines": {
30-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
30+
"node": "^20.19.0 || >=22.12.0"
3131
}
3232
},
3333
{

packages/babel-helper-builder-react-jsx/package.json

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

packages/babel-helper-check-duplicate-nodes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"BABEL_8_BREAKING": [
4848
{
4949
"engines": {
50-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
50+
"node": "^20.19.0 || >=22.12.0"
5151
}
5252
},
5353
{}

packages/babel-helper-compilation-targets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"BABEL_8_BREAKING": [
5151
{
5252
"engines": {
53-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
53+
"node": "^20.19.0 || >=22.12.0"
5454
}
5555
},
5656
{}

packages/babel-helper-create-class-features-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"BABEL_8_BREAKING": [
4444
{
4545
"engines": {
46-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
46+
"node": "^20.19.0 || >=22.12.0"
4747
}
4848
},
4949
{

packages/babel-helper-create-regexp-features-plugin/package.json

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

packages/babel-helper-fixtures/package.json

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

packages/babel-helper-import-to-platform-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"BABEL_8_BREAKING": [
3434
{
3535
"engines": {
36-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
36+
"node": "^20.19.0 || >=22.12.0"
3737
}
3838
},
3939
{

packages/babel-helper-member-expression-to-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"BABEL_8_BREAKING": [
2626
{
2727
"engines": {
28-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
28+
"node": "^20.19.0 || >=22.12.0"
2929
}
3030
},
3131
{

packages/babel-helper-module-imports/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"BABEL_8_BREAKING": [
2929
{
3030
"engines": {
31-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
31+
"node": "^20.19.0 || >=22.12.0"
3232
}
3333
},
3434
{

packages/babel-helper-module-transforms/package.json

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

packages/babel-helper-optimise-call-expression/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"BABEL_8_BREAKING": [
2929
{
3030
"engines": {
31-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
31+
"node": "^20.19.0 || >=22.12.0"
3232
}
3333
},
3434
{

packages/babel-helper-plugin-test-runner/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"./package.json": "./package.json"
4848
},
4949
"engines": {
50-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
50+
"node": "^20.19.0 || >=22.12.0"
5151
}
5252
},
5353
{

packages/babel-helper-plugin-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"BABEL_8_BREAKING": [
2828
{
2929
"engines": {
30-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
30+
"node": "^20.19.0 || >=22.12.0"
3131
}
3232
},
3333
{

packages/babel-helper-remap-async-to-generator/package.json

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

packages/babel-helper-replace-supers/package.json

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

packages/babel-helper-simple-access/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"BABEL_8_BREAKING": [
2929
{
3030
"engines": {
31-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
31+
"node": "^20.19.0 || >=22.12.0"
3232
}
3333
},
3434
{

packages/babel-helper-skip-transparent-expression-wrappers/package.json

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

packages/babel-helper-string-parser/package.json

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

packages/babel-helper-transform-fixture-test-runner/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"BABEL_8_BREAKING": [
3636
{
3737
"engines": {
38-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
38+
"node": "^20.19.0 || >=22.12.0"
3939
}
4040
},
4141
{

packages/babel-helper-validator-identifier/package.json

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

packages/babel-helper-validator-option/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"BABEL_8_BREAKING": [
3535
{
3636
"engines": {
37-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
37+
"node": "^20.19.0 || >=22.12.0"
3838
}
3939
},
4040
{}

packages/babel-helper-wrap-function/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"BABEL_8_BREAKING": [
2727
{
2828
"engines": {
29-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
29+
"node": "^20.19.0 || >=22.12.0"
3030
}
3131
},
3232
{

packages/babel-helpers/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-node/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
},
5757
{

packages/babel-parser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
{
5252
"types": null,
5353
"engines": {
54-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
54+
"node": "^20.19.0 || >=22.12.0"
5555
}
5656
},
5757
{

packages/babel-plugin-bugfix-firefox-class-in-computed-class-key/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"BABEL_8_BREAKING": [
5050
{
5151
"engines": {
52-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
52+
"node": "^20.19.0 || >=22.12.0"
5353
}
5454
},
5555
{}

packages/babel-plugin-bugfix-safari-class-field-initializer-scope/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"BABEL_8_BREAKING": [
5151
{
5252
"engines": {
53-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
53+
"node": "^20.19.0 || >=22.12.0"
5454
}
5555
},
5656
{}

packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"BABEL_8_BREAKING": [
5151
{
5252
"engines": {
53-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
53+
"node": "^20.19.0 || >=22.12.0"
5454
}
5555
},
5656
{}

packages/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"BABEL_8_BREAKING": [
5353
{
5454
"engines": {
55-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
55+
"node": "^20.19.0 || >=22.12.0"
5656
}
5757
},
5858
{}

packages/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"BABEL_8_BREAKING": [
5151
{
5252
"engines": {
53-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
53+
"node": "^20.19.0 || >=22.12.0"
5454
}
5555
},
5656
{}

packages/babel-plugin-external-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"BABEL_8_BREAKING": [
3535
{
3636
"engines": {
37-
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
37+
"node": "^20.19.0 || >=22.12.0"
3838
}
3939
},
4040
{

0 commit comments

Comments
 (0)