Skip to content

Commit

Permalink
feat: drop Node 4, 6, 8, 10, 12, 14 & 16 support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires Node@^18.18.0 || ^20.9.0 || >=21.1.0
  • Loading branch information
MichaelDeBoey committed Oct 30, 2024
1 parent d1556a3 commit 89fd797
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 129 deletions.
10 changes: 1 addition & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,10 @@
"consistent-return": 0,

"prefer-destructuring": [2, { "array": false, "object": false }, { "enforceForRenamedProperties": false }],
"prefer-object-spread": 0, // until node 8 is required
"prefer-rest-params": 0, // until node 6 is required
"prefer-spread": 0, // until node 6 is required
"function-call-argument-newline": 1, // TODO: enable
"function-call-argument-newline": 1,
"function-paren-newline": 0,
"no-plusplus": [2, {"allowForLoopAfterthoughts": true}],
"no-param-reassign": 1,
"no-restricted-syntax": [2, {
"selector": "ObjectPattern",
"message": "Object destructuring is not compatible with Node v4"
}],
"strict": [2, "safe"],
"valid-jsdoc": [2, {
"requireReturn": false,
Expand Down Expand Up @@ -78,7 +71,6 @@
"rules": {
"camelcase": 0,
"no-console": 0,
"no-restricted-syntax": 0,
},
},
],
Expand Down
117 changes: 0 additions & 117 deletions .github/workflows/node-minors.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/node-18+.yml → .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Tests: node.js (18+)'
name: 'Tests: node.js'

on: [pull_request, push]

Expand All @@ -14,7 +14,7 @@ jobs:
with:
versionsAsRoot: true
type: majors
preset: '>=18'
preset: '^18.18.0 || ^20.9.0 || >=21.1.0'

latest:
needs: [matrix]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7"
},
"engines": {
"node": ">=4"
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"keywords": [
"eslint",
Expand Down

0 comments on commit 89fd797

Please sign in to comment.