Skip to content

Commit 5d0ab70

Browse files
refactor!: minimum supported Node.js version is 20.9.0 (#423)
1 parent 1ac5578 commit 5d0ab70

17 files changed

Lines changed: 8520 additions & 9522 deletions

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
strategy:
6868
matrix:
6969
os: [ubuntu-latest, windows-latest, macos-latest]
70-
node-version: [18.x, 20.x, 22.x, 24.x]
70+
node-version: [20.x, 22.x, 24.x, 25.x]
7171
webpack-version: [latest]
7272

7373
runs-on: ${{ matrix.os }}

package-lock.json

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

package.json

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,45 +47,33 @@
4747
},
4848
"dependencies": {
4949
"schema-utils": "^4.2.0",
50-
"serialize-javascript": "^6.0.2"
50+
"serialize-javascript": "^7.0.3"
5151
},
5252
"devDependencies": {
5353
"@babel/cli": "^7.24.8",
5454
"@babel/core": "^7.25.2",
5555
"@babel/preset-env": "^7.25.3",
56-
"@commitlint/cli": "^19.3.0",
57-
"@commitlint/config-conventional": "^19.2.2",
58-
"@eslint/js": "^9.32.0",
59-
"@eslint/markdown": "^7.0.0",
56+
"@commitlint/cli": "^20.4.2",
57+
"@commitlint/config-conventional": "^20.4.2",
6058
"@gfx/zopfli": "^1.0.15",
61-
"@stylistic/eslint-plugin": "^5.2.2",
6259
"@types/node": "^20.14.9",
6360
"@types/serialize-javascript": "^5.0.4",
6461
"babel-jest": "^30.0.0",
6562
"cross-env": "^7.0.3",
66-
"cspell": "^8.13.1",
63+
"cspell": "^9.7.0",
6764
"del": "^7.1.0",
68-
"del-cli": "^5.1.0",
65+
"del-cli": "^7.0.0",
6966
"eslint": "^9.30.1",
70-
"eslint-config-prettier": "^10.1.5",
7167
"eslint-config-webpack": "^4.3.2",
72-
"eslint-plugin-import": "^2.32.0",
73-
"eslint-plugin-jest": "^29.0.1",
74-
"eslint-plugin-jsdoc": "^52.0.0",
75-
"eslint-plugin-n": "^17.21.0",
76-
"eslint-plugin-prettier": "^5.5.3",
77-
"eslint-plugin-unicorn": "^60.0.0",
7868
"file-loader": "^6.2.0",
79-
"globals": "^16.3.0",
8069
"husky": "^9.1.4",
8170
"jest": "^30.0.0",
82-
"lint-staged": "^15.2.8",
71+
"lint-staged": "^16.3.1",
8372
"memfs": "^4.11.1",
8473
"npm-run-all": "^4.1.5",
8574
"prettier": "^3.3.3",
8675
"standard-version": "^9.5.0",
8776
"typescript": "^5.5.4",
88-
"typescript-eslint": "^8.36.0",
8977
"webpack": "^5.93.0",
9078
"webpack-stats-plugin": "^1.1.3",
9179
"workbox-webpack-plugin": "^7.1.0"

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const schema = require("./options.json");
2929
/** @typedef {RegExp | string} Rule */
3030
/** @typedef {Rule[] | Rule} Rules */
3131

32-
// eslint-disable-next-line jsdoc/no-restricted-syntax
32+
// eslint-disable-next-line jsdoc/reject-any-type
3333
/** @typedef {any} EXPECTED_ANY */
3434

3535
/**

test/CompressionPlugin.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ describe("CompressionPlugin", () => {
8181
test: /number\.js$/i,
8282
rules: [
8383
{
84-
loader: require.resolve(
85-
"./helpers/loader-with-child-compilation.js",
86-
),
84+
loader:
85+
require.resolve("./helpers/loader-with-child-compilation.js"),
8786
},
8887
],
8988
},

0 commit comments

Comments
 (0)