Skip to content

Commit e2a3086

Browse files
committed
Drop support for older versions of Node.js
1 parent a5b379b commit e2a3086

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

.github/ISSUE_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ var ctx = canvas.getContext('2d');
1414

1515
## Your Environment
1616
* Version of node-canvas (output of `npm list canvas` or `yarn list canvas`):
17-
* Environment (e.g. node 4.2.0 on Mac OS X 10.8):
17+
* Environment (e.g. node 20.9.0 on macOS 14.1.1):

.github/workflows/ci.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node: [10, 12, 14, 16, 18, 20]
16+
node: [18.12.0, 20.9.0]
1717
steps:
1818
- uses: actions/setup-node@v3
1919
with:
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: windows-2019
3434
strategy:
3535
matrix:
36-
node: [10, 12, 14, 16, 18, 20]
36+
node: [18.12.0, 20.9.0]
3737
steps:
3838
- uses: actions/setup-node@v3
3939
with:
@@ -57,7 +57,7 @@ jobs:
5757
runs-on: macos-latest
5858
strategy:
5959
matrix:
60-
node: [10, 12, 14, 16, 18, 20]
60+
node: [18.12.0, 20.9.0]
6161
steps:
6262
- uses: actions/setup-node@v3
6363
with:
@@ -79,7 +79,7 @@ jobs:
7979
steps:
8080
- uses: actions/setup-node@v3
8181
with:
82-
node-version: 14
82+
node-version: 20.9.0
8383
- uses: actions/checkout@v3
8484
- name: Install
8585
run: npm install --ignore-scripts

.github/workflows/prebuild.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
Linux:
2525
strategy:
2626
matrix:
27-
node: [8, 9, 10, 11, 12, 13, 14, 16, 18, 20]
27+
node: [18.12.0, 20.9.0]
2828
canvas_tag: [] # e.g. "v2.6.1"
2929
name: ${{ matrix.canvas_tag}}, Node.js ${{ matrix.node }}, Linux
3030
runs-on: ubuntu-latest
@@ -97,7 +97,7 @@ jobs:
9797
macOS:
9898
strategy:
9999
matrix:
100-
node: [8, 9, 10, 11, 12, 13, 14, 16, 18, 20]
100+
node: [18.12.0, 20.9.0]
101101
canvas_tag: [] # e.g. "v2.6.1"
102102
name: ${{ matrix.canvas_tag}}, Node.js ${{ matrix.node }}, macOS
103103
runs-on: macos-latest
@@ -163,7 +163,7 @@ jobs:
163163
Win:
164164
strategy:
165165
matrix:
166-
node: [8, 9, 10, 11, 12, 13, 14, 16, 18, 20]
166+
node: [18.12.0, 20.9.0]
167167
canvas_tag: [] # e.g. "v2.6.1"
168168
name: ${{ matrix.canvas_tag}}, Node.js ${{ matrix.node }}, Windows
169169
runs-on: windows-latest

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ project adheres to [Semantic Versioning](http://semver.org/).
1616

1717
This release notably changes to using N-API. 🎉
1818

19+
### Breaking
20+
* Dropped support for Node.js 16.x and below.
1921
### Changed
2022
* Migrated to N-API (by way of node-addon-api) and removed libuv and v8 dependencies
2123
* Defer the initialization of the `op` variable to the `default` switch case to avoid a compiler warning. (#2229)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"typescript": "^4.2.2"
6767
},
6868
"engines": {
69-
"node": ">=10.20.0"
69+
"node": "^18.12.0 || >= 20.9.0"
7070
},
7171
"license": "MIT"
7272
}

0 commit comments

Comments
 (0)