Skip to content

Commit 352cfc9

Browse files
committed
bump packages node version
1 parent 27924c3 commit 352cfc9

File tree

5 files changed

+12
-25
lines changed

5 files changed

+12
-25
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core-js-babel-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
"@core-js/compat": "4.0.0-alpha.0"
3333
},
3434
"engines": {
35-
"node": "^18.12.0 || >=20.0.0"
35+
"node": ">=20.19.0"
3636
}
3737
}

packages/core-js-builder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"webpack": "^5.104.1"
3535
},
3636
"engines": {
37-
"node": "^18.12.0 || >=20.0.0"
37+
"node": ">=20.19.0"
3838
}
3939
}

packages/core-js-compat/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
const SEMVER = /(?<major>\d+)(?:\.(?<minor>\d+))?(?:\.(?<patch>\d+))?/;
3-
// eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- ok
3+
// eslint-disable-next-line sonarjs/slow-regex -- ok
44
const SEMVER_WITH_REQUIRED_MINOR_COMPONENT = /(?<major>\d+)\.(?<minor>\d+)(?:\.(?<patch>\d+))?/;
55

66
class SemVer {

tests/eslint/eslint.config.js

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { yaml as pluginYaml } from 'eslint-yaml';
2727
// https://github.com/benyasin/eslint-plugin-filename/issues/1
2828
pluginFilename.rules.match.meta.schema = false;
2929

30-
const PACKAGES_NODE_VERSIONS = '^18.12';
30+
const PACKAGES_NODE_VERSIONS = '^20.19';
3131
const DEV_NODE_VERSIONS = '^20.19';
3232

3333
const ERROR = 'error';
@@ -1736,25 +1736,6 @@ const transpiledAndPolyfilled = {
17361736
const nodePackages = {
17371737
// disallow unsupported ECMAScript built-ins on the specified version
17381738
'node/no-unsupported-features/node-builtins': [ERROR, { version: PACKAGES_NODE_VERSIONS, allowExperimental: false }],
1739-
...forbidES2023BuiltIns,
1740-
'es/no-array-prototype-findlast-findlastindex': OFF,
1741-
...forbidES2024BuiltIns,
1742-
...forbidES2025BuiltIns,
1743-
...forbidES2026BuiltIns,
1744-
'es/no-intl-supportedvaluesof': ERROR,
1745-
...forbidES2023IntlBuiltIns,
1746-
...forbidES2025BuiltIns,
1747-
...forbidES2026IntlBuiltIns,
1748-
// prefer using `structuredClone` to create a deep clone
1749-
'unicorn/prefer-structured-clone': OFF,
1750-
...forbidSomeES2025Syntax,
1751-
// prefer top-level await
1752-
'unicorn/prefer-top-level-await': ERROR,
1753-
};
1754-
1755-
const nodeDev = {
1756-
// disallow unsupported ECMAScript built-ins on the specified version
1757-
'node/no-unsupported-features/node-builtins': [ERROR, { version: DEV_NODE_VERSIONS, ignores: ['fetch'], allowExperimental: false }],
17581739
...disable(forbidModernBuiltIns),
17591740
...forbidES2024BuiltIns,
17601741
'es/no-regexp-v-flag': OFF,
@@ -1771,6 +1752,12 @@ const nodeDev = {
17711752
...forbidSomeES2025Syntax,
17721753
};
17731754

1755+
const nodeDev = {
1756+
...nodePackages,
1757+
// disallow unsupported ECMAScript built-ins on the specified version
1758+
'node/no-unsupported-features/node-builtins': [ERROR, { version: DEV_NODE_VERSIONS, ignores: ['fetch'], allowExperimental: false }],
1759+
};
1760+
17741761
const tests = {
17751762
// relax for testing:
17761763
// enforces return statements in callbacks of array's methods

0 commit comments

Comments
 (0)