Skip to content

Commit

Permalink
Breaking: drop node v10/v13 (fixes eslint#14023)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Jul 13, 2021
1 parent 9a3c73c commit 55bad12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [16.x, 15.x, 14.x, 13.x, 12.x, 10.x, "10.12.0"]
node: [16.x, 15.x, 14.x, 12.x]
include:
- os: windows-latest
node: "12.x"
Expand Down
3 changes: 1 addition & 2 deletions lib/shared/relative-module-resolver.js
Expand Up @@ -23,8 +23,7 @@ const Module = require("module");
* `Module.createRequire` is added in v12.2.0. It supports URL as well.
* We only support the case where the argument is a filepath, not a URL.
*/
// eslint-disable-next-line node/no-unsupported-features/node-builtins, node/no-deprecated-api
const createRequire = Module.createRequire || Module.createRequireFromPath;
const createRequire = Module.createRequire;

module.exports = {

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -141,6 +141,6 @@
],
"license": "MIT",
"engines": {
"node": "^10.12.0 || >=12.0.0"
"node": "^12.22.0 || ^14.17.0 || >=15.3.0"
}
}

0 comments on commit 55bad12

Please sign in to comment.