Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
chore: add support for Node 16, 18, 20
Browse files Browse the repository at this point in the history
Remove support for Node <10
  • Loading branch information
kylef committed Jul 28, 2023
1 parent 4c5c021 commit b0187ec
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
node: ['14', '12', '10', '8', '4']
node: ['18', '16', '14', '12', '10']
name: Node ${{ matrix.node }} on ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -26,7 +26,7 @@ jobs:
path: protagonist
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: 18
- run: npm pack
working-directory: protagonist
- run: npm install ./protagonist/protagonist-*.tgz
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Protagonist Changelog

## TBD

### Breaking

- Drop support for node.js versions < 10.

### Enhancements

* Added support for building Protagonist with Node 16, and 18.

## 2.2.1 (2020-06-10)

### Enhancements
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/apiaryio/protagonist.git"
},
"engines": {
"node": ">=4"
"node": ">=10"
},
"dependencies": {
"nan": "^2.13.2"
Expand All @@ -19,14 +19,14 @@
"chai": "^4.1.2",
"glob": "^7.1.2",
"mocha": "^5.2.0",
"node-gyp": "^4.0.0"
"node-gyp": "^9.3.0"
},
"scripts": {
"build": "node-gyp build",
"prepack": "cp drafter/THIRD_PARTY_LICENSES.txt THIRD_PARTY_LICENSES.txt",
"test:exclude-await": "mocha --exclude test/await-test.js",
"test:await": "mocha",
"test": "node --version | grep -q -E \"v(4|6)\" && npm run test:exclude-await || npm run test:await"
"test": "npm run test:await"
},
"files": [
"THIRD_PARTY_LICENSES.txt",
Expand Down

0 comments on commit b0187ec

Please sign in to comment.