Skip to content

Commit

Permalink
Breaking: drop support of Node.js < 16
Browse files Browse the repository at this point in the history
Category: removal
  • Loading branch information
vweevers committed Apr 6, 2024
1 parent 08c2475 commit d15721f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [14, 16]
node: [16, 18, 20]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Node ${{ matrix.node }}
steps:
Expand Down
12 changes: 6 additions & 6 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env node

if (process.version.match(/^v(\d+)\./)[1] < 14) {
// Return silently to support hallmark in 'npm test'
console.error('Skipping hallmark: Node 14 or greater is required.')
process.exit(0)
}

import subarg from 'subarg'
import fs from 'node:fs'
import * as hallmark from './index.js'

if (process.version.match(/^v(\d+)\./)[1] < 16) {
// Return silently to support hallmark in 'npm test'
console.error('Skipping hallmark: Node 16 or greater is required.')
process.exit(0)
}

const argv = subarg(process.argv.slice(2), {
boolean: ['fix', 'help', 'version', 'commits'],
string: ['report'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@
"unified"
],
"engines": {
"node": ">=14"
"node": ">=16"
}
}

0 comments on commit d15721f

Please sign in to comment.