Skip to content

Commit cb80db0

Browse files
chore: minimum required Node.js version is 10.13.0 (#1109)
BREAKING CHANGE: minimum required `Node.js` version is `10.13.0`
1 parent cfc1432 commit cb80db0

8 files changed

+2862
-3538
lines changed

.github/workflows/nodejs.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,9 @@ jobs:
5555
strategy:
5656
matrix:
5757
os: [ubuntu-latest, windows-latest, macos-latest]
58-
node-version: [8.x, 10.x, 12.x, 14.x]
58+
node-version: [10.x, 12.x, 14.x]
5959
webpack-version: [latest, next]
6060

61-
exclude:
62-
# Webpack 5 does not support node 8
63-
- node-version: 8.x
64-
webpack-version: next
65-
6661
runs-on: ${{ matrix.os }}
6762

6863
steps:

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = (api) => {
1010
'@babel/preset-env',
1111
{
1212
targets: {
13-
node: '8.9.0',
13+
node: '10.13.0',
1414
},
1515
},
1616
],

package-lock.json

+1,748-1,915
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"main": "dist/cjs.js",
1515
"engines": {
16-
"node": ">= 8.9.0"
16+
"node": ">= 10.13.0"
1717
},
1818
"scripts": {
1919
"start": "npm run build -- -w",
@@ -43,10 +43,10 @@
4343
"webpack": "^4.0.0 || ^5.0.0"
4444
},
4545
"dependencies": {
46-
"camelcase": "^5.3.1",
46+
"camelcase": "^6.0.0",
4747
"cssesc": "^3.0.0",
4848
"icss-utils": "^4.1.1",
49-
"loader-utils": "^1.2.3",
49+
"loader-utils": "^2.0.0",
5050
"normalize-path": "^3.0.0",
5151
"postcss": "^7.0.32",
5252
"postcss-modules-extract-imports": "^2.0.0",
@@ -55,36 +55,36 @@
5555
"postcss-modules-values": "^3.0.0",
5656
"postcss-value-parser": "^4.1.0",
5757
"schema-utils": "^2.7.0",
58-
"semver": "^6.3.0"
58+
"semver": "^7.3.2"
5959
},
6060
"devDependencies": {
61-
"@babel/cli": "^7.10.1",
62-
"@babel/core": "^7.10.2",
63-
"@babel/preset-env": "^7.10.2",
64-
"@commitlint/cli": "^8.3.5",
65-
"@commitlint/config-conventional": "^8.3.4",
61+
"@babel/cli": "^7.10.5",
62+
"@babel/core": "^7.10.5",
63+
"@babel/preset-env": "^7.10.4",
64+
"@commitlint/cli": "^9.1.2",
65+
"@commitlint/config-conventional": "^9.1.1",
6666
"@webpack-contrib/defaults": "^6.3.0",
6767
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
68-
"babel-jest": "^25.5.1",
68+
"babel-jest": "^26.1.0",
6969
"cross-env": "^7.0.2",
7070
"del": "^5.1.0",
7171
"del-cli": "^3.0.1",
7272
"es-check": "^5.1.0",
73-
"eslint": "^6.8.0",
73+
"eslint": "^7.4.0",
7474
"eslint-config-prettier": "^6.11.0",
75-
"eslint-plugin-import": "^2.21.2",
75+
"eslint-plugin-import": "^2.22.0",
7676
"file-loader": "^6.0.0",
7777
"husky": "^4.2.5",
78-
"jest": "^25.5.4",
78+
"jest": "^26.1.0",
7979
"lint-staged": "^10.2.11",
8080
"memfs": "^3.2.0",
8181
"npm-run-all": "^4.1.5",
8282
"postcss-loader": "^3.0.0",
8383
"postcss-preset-env": "^6.7.0",
8484
"prettier": "^2.0.5",
85-
"sass": "^1.26.8",
86-
"sass-loader": "^8.0.2",
87-
"standard-version": "^8.0.0",
85+
"sass": "^1.26.10",
86+
"sass-loader": "^9.0.2",
87+
"standard-version": "^8.0.2",
8888
"strip-ansi": "^6.0.0",
8989
"url-loader": "^4.1.0",
9090
"webpack": "^4.43.0"

test/__snapshots__/esModule-option.test.js.snap

+8-8
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false);
150150
___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_0___);
151151
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
152152
// Module
153-
___CSS_LOADER_EXPORT___.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n._3S58jeCkC6SOPhVLbU-Bwn {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]);
153+
___CSS_LOADER_EXPORT___.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n._2uMy1nigdepJE7b3T1Visj {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]);
154154
// Exports
155155
___CSS_LOADER_EXPORT___.locals = {
156-
\\"class\\": \\"_3S58jeCkC6SOPhVLbU-Bwn\\"
156+
\\"class\\": \\"_2uMy1nigdepJE7b3T1Visj\\"
157157
};
158158
export default ___CSS_LOADER_EXPORT___;
159159
"
@@ -163,7 +163,7 @@ exports[`"esModule" option should work with a value equal to "true" and the "mod
163163
Array [
164164
Array [
165165
"../../src/index.js?[ident]!./es-module/imported.css",
166-
"._3xfjtZ03Dx7Cld7Debi-wl {
166+
"._3zJoIAkhorFsUbhn0phThb {
167167
color: red;
168168
}
169169
",
@@ -175,7 +175,7 @@ Array [
175175
176176
/* Comment */
177177
178-
._3S58jeCkC6SOPhVLbU-Bwn {
178+
._2uMy1nigdepJE7b3T1Visj {
179179
color: red;
180180
background: url(/webpack/public/path/img.png);
181181
}
@@ -199,10 +199,10 @@ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false);
199199
___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_0___);
200200
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
201201
// Module
202-
___CSS_LOADER_EXPORT___.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n._3S58jeCkC6SOPhVLbU-Bwn {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]);
202+
___CSS_LOADER_EXPORT___.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n._2uMy1nigdepJE7b3T1Visj {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]);
203203
// Exports
204204
___CSS_LOADER_EXPORT___.locals = {
205-
\\"class\\": \\"_3S58jeCkC6SOPhVLbU-Bwn\\"
205+
\\"class\\": \\"_2uMy1nigdepJE7b3T1Visj\\"
206206
};
207207
export default ___CSS_LOADER_EXPORT___;
208208
"
@@ -212,7 +212,7 @@ exports[`"esModule" option should work with a value equal to "true" and the "mod
212212
Array [
213213
Array [
214214
"../../src/index.js?[ident]!./es-module/imported.css",
215-
"._3xfjtZ03Dx7Cld7Debi-wl {
215+
"._3zJoIAkhorFsUbhn0phThb {
216216
color: red;
217217
}
218218
",
@@ -224,7 +224,7 @@ Array [
224224
225225
/* Comment */
226226
227-
._3S58jeCkC6SOPhVLbU-Bwn {
227+
._2uMy1nigdepJE7b3T1Visj {
228228
color: red;
229229
background: url(/webpack/public/path/img.png);
230230
}

test/__snapshots__/loader.test.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ exports[`loader should work with the "modules.auto" option and the "importLoader
617617
color: #333;
618618
}
619619
/* CSS modules */
620-
.dA97I-anu7-0d9tFzAFON {
620+
._3ZewTmcU5fqs585BjdQt_0 {
621621
overflow-x: hidden;
622622
overflow-y: auto;
623623
overflow: hidden auto;
@@ -634,7 +634,7 @@ exports[`loader should work with the "modules.auto" option and the "importLoader
634634
overflow-y: auto;
635635
overflow: hidden auto;
636636
}
637-
._2qRovssCxTKx1PYTv5qdNp {
637+
.irHrhsl3WEJVKUxOmS7dC {
638638
color: #333;
639639
overflow-x: hidden;
640640
overflow-y: auto;

0 commit comments

Comments
 (0)