Skip to content

Commit d15721f

Browse files
committed
Breaking: drop support of Node.js < 16
Category: removal
1 parent 08c2475 commit d15721f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
os: [ubuntu-latest, macos-latest, windows-latest]
10-
node: [14, 16]
10+
node: [16, 18, 20]
1111
runs-on: ${{ matrix.os }}
1212
name: ${{ matrix.os }} / Node ${{ matrix.node }}
1313
steps:

cli.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/usr/bin/env node
22

3-
if (process.version.match(/^v(\d+)\./)[1] < 14) {
4-
// Return silently to support hallmark in 'npm test'
5-
console.error('Skipping hallmark: Node 14 or greater is required.')
6-
process.exit(0)
7-
}
8-
93
import subarg from 'subarg'
104
import fs from 'node:fs'
115
import * as hallmark from './index.js'
126

7+
if (process.version.match(/^v(\d+)\./)[1] < 16) {
8+
// Return silently to support hallmark in 'npm test'
9+
console.error('Skipping hallmark: Node 16 or greater is required.')
10+
process.exit(0)
11+
}
12+
1313
const argv = subarg(process.argv.slice(2), {
1414
boolean: ['fix', 'help', 'version', 'commits'],
1515
string: ['report'],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@
8989
"unified"
9090
],
9191
"engines": {
92-
"node": ">=14"
92+
"node": ">=16"
9393
}
9494
}

0 commit comments

Comments
 (0)