Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit c7cca46

Browse files
chore: node 10 dropped (#67)
BREAKING CHANGE: minimum supported `Node.js` version is `12.13.0`
1 parent 94f9313 commit c7cca46

File tree

7 files changed

+1058
-922
lines changed

7 files changed

+1058
-922
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
strategy:
5656
matrix:
5757
os: [ubuntu-latest, windows-latest, macos-latest]
58-
node-version: [10.x, 12.x, 13.x]
58+
node-version: [12.x, 14.x, 16.x]
5959
webpack-version: [latest]
6060

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

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx commitlint --edit $1
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
npx --no-install lint-staged

babel.config.js

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

package-lock.json

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

package.json

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"main": "dist/cjs.js",
1515
"engines": {
16-
"node": ">= 10.13.0"
16+
"node": ">= 12.13.0"
1717
},
1818
"scripts": {
1919
"start": "npm run build -- -w",
@@ -30,11 +30,8 @@
3030
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
3131
"pretest": "npm run lint",
3232
"test": "npm run test:coverage",
33-
"prepare": "npm run build",
34-
"release": "standard-version",
35-
"postinstall": "husky install",
36-
"prepublishOnly": "pinst --disable",
37-
"postpublish": "pinst --enable"
33+
"prepare": "husky install && npm run build",
34+
"release": "standard-version"
3835
},
3936
"files": [
4037
"dist"
@@ -43,29 +40,28 @@
4340
"webpack": "^5.0.0"
4441
},
4542
"devDependencies": {
46-
"@babel/cli": "^7.13.0",
47-
"@babel/core": "^7.13.8",
48-
"@babel/preset-env": "^7.13.8",
49-
"@commitlint/cli": "^12.0.1",
50-
"@commitlint/config-conventional": "^12.0.1",
43+
"@babel/cli": "^7.13.16",
44+
"@babel/core": "^7.14.2",
45+
"@babel/preset-env": "^7.14.2",
46+
"@commitlint/cli": "^12.1.4",
47+
"@commitlint/config-conventional": "^12.1.4",
5148
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
5249
"cross-env": "^7.0.3",
5350
"del": "^6.0.0",
5451
"del-cli": "^3.0.1",
55-
"eslint": "^7.21.0",
56-
"eslint-config-prettier": "^8.1.0",
52+
"eslint": "^7.26.0",
53+
"eslint-config-prettier": "^8.3.0",
5754
"eslint-plugin-import": "^2.22.1",
5855
"figlet": "^1.5.0",
59-
"husky": "^5.1.2",
56+
"husky": "^6.0.0",
6057
"jest": "^26.6.3",
61-
"lint-staged": "^10.5.4",
62-
"memfs": "^3.2.0",
63-
"modernizr": "^3.11.4",
58+
"lint-staged": "^11.0.0",
59+
"memfs": "^3.2.2",
60+
"modernizr": "^3.11.7",
6461
"npm-run-all": "^4.1.5",
65-
"pinst": "^2.1.6",
66-
"prettier": "^2.2.1",
67-
"standard-version": "^9.1.1",
68-
"webpack": "^5.24.2"
62+
"prettier": "^2.3.0",
63+
"standard-version": "^9.3.0",
64+
"webpack": "^5.37.0"
6965
},
7066
"keywords": [
7167
"webpack",

test/__snapshots__/loader.test.js.snap

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)