Skip to content

Commit fd91593

Browse files
committed
chore: require engines Node 12+
BREAKING CHANGE: Also: - Build: Switch to Node 12 target - Linting: Use `flat` API - Travis: Add Node 16, remove Node 10 - npm: Update devDep.
1 parent c236ed8 commit fd91593

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.babelrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@babel/preset-env",
1010
{
1111
"targets": {
12-
"node": 10
12+
"node": 12
1313
}
1414
}
1515
]

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ os: linux
22
dist: xenial
33
language: node_js
44
node_js:
5+
- 16
56
- 14
67
- 12
7-
- 10
88

99
before_install:
1010
- npm config set depth 0

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
"gitdown": "^3.1.4",
3737
"glob": "^7.1.7",
3838
"husky": "^6.0.0",
39-
"lint-staged": "^10.5.4",
39+
"lint-staged": "^11.0.0",
4040
"mocha": "^8.4.0",
4141
"nyc": "^15.1.0",
4242
"rimraf": "^3.0.2",
4343
"semantic-release": "^17.4.2",
4444
"typescript": "^4.2.4"
4545
},
4646
"engines": {
47-
"node": ">=10"
47+
"node": ">=12"
4848
},
4949
"lint-staged": {
5050
".eslintignore": "npm run lint",

src/jsdocUtils.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,7 @@ const isValidTag = (
325325
) : boolean => {
326326
const tagNames = getTagNamesForMode(mode, context);
327327

328-
// Todo[engine:node@>=12]: Switch to flatten
329-
330-
// eslint-disable-next-line unicorn/prefer-array-flat -- Not yet supported
331-
const validTagNames = Object.keys(tagNames).concat(_.flatten(Object.values(tagNames)));
328+
const validTagNames = Object.keys(tagNames).concat(Object.values(tagNames).flat());
332329
const additionalTags = definedTags;
333330
const allTags = validTagNames.concat(additionalTags);
334331

0 commit comments

Comments
 (0)