Skip to content

Commit a90248e

Browse files
committed
chore: Upgrade to @serialport/bindings-cpp 13
BREAKING CHANGE: This upgrade brings node 20 as the lowest supported version
1 parent d67e254 commit a90248e

File tree

18 files changed

+78
-70
lines changed

18 files changed

+78
-70
lines changed

.github/workflows/test.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
1212
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
1313
with:
14-
node-version: 18
14+
node-version: 20
1515
- run: npm ci
1616
- run: npm run lint
1717
- run: npm run typecheck
@@ -20,12 +20,11 @@ jobs:
2020
runs-on: ${{ matrix.config.os }}
2121
strategy:
2222
matrix:
23-
node-version: [16.x, 18.x, 20.x]
23+
node-version: [18.x, 20.x, 22.x]
2424
config:
25-
# arch isn't used and we have no way to use it currently
26-
- { os: macos-latest, arch: x64 }
27-
- { os: ubuntu-latest, arch: x64 }
28-
- { os: windows-latest, arch: x64 }
25+
- { os: macos-latest }
26+
- { os: ubuntu-latest }
27+
- { os: windows-latest }
2928
steps:
3029
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
3130
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.17.1
1+
20.18.1

package-lock.json

+53-44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.0",
55
"description": "Node.js packages to access serial ports, process data from them and speak many protocols",
66
"engines": {
7-
"node": ">=16.0.0"
7+
"node": ">=20.0.0"
88
},
99
"license": "MIT",
1010
"scripts": {
@@ -26,7 +26,7 @@
2626
"packages/*"
2727
],
2828
"devDependencies": {
29-
"@serialport/bindings-cpp": "12.0.1",
29+
"@serialport/bindings-cpp": "13.0.0",
3030
"@tsconfig/node18": "18.2.1",
3131
"@types/chai": "5.0.1",
3232
"@types/chai-subset": "1.3.5",

packages/list/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"build": "tsc --build tsconfig-build.json"
1111
},
1212
"dependencies": {
13-
"@serialport/bindings-cpp": "12.0.1",
13+
"@serialport/bindings-cpp": "13.0.0",
1414
"commander": "11.0.0"
1515
},
1616
"engines": {
17-
"node": ">=16.0.0"
17+
"node": ">=20.0.0"
1818
},
1919
"publishConfig": {
2020
"access": "public"

packages/parser-byte-length/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"engines": {
7-
"node": ">=12.0.0"
7+
"node": ">=20.0.0"
88
},
99
"publishConfig": {
1010
"access": "public"

packages/parser-cctalk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "tsc --build tsconfig-build.json"
88
},
99
"engines": {
10-
"node": ">=12.0.0"
10+
"node": ">=20.0.0"
1111
},
1212
"publishConfig": {
1313
"access": "public"

packages/parser-delimiter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"types": "./dist/index.d.ts",
55
"version": "12.0.0",
66
"engines": {
7-
"node": ">=12.0.0"
7+
"node": ">=20.0.0"
88
},
99
"publishConfig": {
1010
"access": "public"

packages/parser-inter-byte-timeout/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"engines": {
7-
"node": ">=12.0.0"
7+
"node": ">=20.0.0"
88
},
99
"publishConfig": {
1010
"access": "public"

packages/parser-readline/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@serialport/parser-delimiter": "12.0.0"
88
},
99
"engines": {
10-
"node": ">=12.0.0"
10+
"node": ">=20.0.0"
1111
},
1212
"publishConfig": {
1313
"access": "public"

packages/parser-ready/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"types": "./dist/index.d.ts",
55
"version": "12.0.0",
66
"engines": {
7-
"node": ">=12.0.0"
7+
"node": ">=20.0.0"
88
},
99
"publishConfig": {
1010
"access": "public"

packages/parser-regex/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"types": "./dist/index.d.ts",
55
"version": "12.0.0",
66
"engines": {
7-
"node": ">=12.0.0"
7+
"node": ">=20.0.0"
88
},
99
"publishConfig": {
1010
"access": "public"

0 commit comments

Comments
 (0)