Skip to content

Commit 25d92ec

Browse files
chore(deps): node 10 dropped (#417)
BREAKING CHANGE: minimum supported `Node.js` version is `12.13.0`
1 parent 74795fd commit 25d92ec

File tree

9 files changed

+1417
-1280
lines changed

9 files changed

+1417
-1280
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, 14.x]
58+
node-version: [12.x, 14.x, 16.x]
5959
webpack-version: [latest]
6060

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

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
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
],

husky.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

package-lock.json

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

package.json

Lines changed: 14 additions & 14 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",
@@ -44,29 +44,29 @@
4444
"klona": "^2.0.4"
4545
},
4646
"devDependencies": {
47-
"@babel/cli": "^7.13.14",
48-
"@babel/core": "^7.13.15",
49-
"@babel/preset-env": "^7.13.15",
50-
"@commitlint/cli": "^12.1.1",
51-
"@commitlint/config-conventional": "^12.1.1",
47+
"@babel/cli": "^7.13.16",
48+
"@babel/core": "^7.14.2",
49+
"@babel/preset-env": "^7.14.2",
50+
"@commitlint/cli": "^12.1.4",
51+
"@commitlint/config-conventional": "^12.1.4",
5252
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
5353
"babel-jest": "^26.6.3",
5454
"cross-env": "^7.0.3",
5555
"del": "^6.0.0",
5656
"del-cli": "^3.0.1",
57-
"eslint": "^7.24.0",
58-
"eslint-config-prettier": "^8.2.0",
57+
"eslint": "^7.26.0",
58+
"eslint-config-prettier": "^8.3.0",
5959
"eslint-plugin-import": "^2.22.1",
60-
"husky": "^4.3.8",
60+
"husky": "^6.0.0",
6161
"jest": "^26.6.3",
6262
"less": "^4.1.1",
63-
"lint-staged": "^10.5.4",
63+
"lint-staged": "^11.0.0",
6464
"memfs": "^3.2.2",
6565
"npm-run-all": "^4.1.5",
66-
"prettier": "^2.2.1",
67-
"standard-version": "^9.2.0",
68-
"strip-ansi": "^6.0.0",
69-
"webpack": "^5.33.2"
66+
"prettier": "^2.3.0",
67+
"standard-version": "^9.3.0",
68+
"strip-ansi": "^7.0.0",
69+
"webpack": "^5.37.0"
7070
},
7171
"keywords": [
7272
"webpack",

src/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ const IS_NATIVE_WIN32_PATH = /^[a-z]:[/\\]|^\\\\/i;
2222
// - ~@org/
2323
// - ~@org/package
2424
// - ~@org/package/
25-
const IS_MODULE_IMPORT = /^~([^/]+|[^/]+\/|@[^/]+[/][^/]+|@[^/]+\/?|@[^/]+[/][^/]+\/)$/;
25+
const IS_MODULE_IMPORT =
26+
/^~([^/]+|[^/]+\/|@[^/]+[/][^/]+|@[^/]+\/?|@[^/]+[/][^/]+\/)$/;
2627
const MODULE_REQUEST_REGEX = /^[^?]*~/;
2728

2829
/**

0 commit comments

Comments
 (0)