Skip to content

Commit 78c84ea

Browse files
committed
chore: support Node.js v21
- Update to Node.js v21-compatible deps - Test against Node.js v21 - Update `engines.node` for Node.js v21 - Switch to `@achrinza/strong-type` for prod dependency see: #54 Signed-off-by: Rifa Achrinza <[email protected]>
1 parent f68731d commit 78c84ea

File tree

7 files changed

+50
-47
lines changed

7 files changed

+50
-47
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- 18
2424
- 19
2525
- 20
26+
- 21
2627
steps:
2728
- uses: actions/checkout@v2
2829
- name: Use Node.js ${{ matrix.node-version }}

package-lock.json

Lines changed: 37 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
"access": "public"
1717
},
1818
"engines": {
19-
"node": "14 || 16 || 17 || 18 || 19 || 20"
19+
"node": "14 || 16 || 17 || 18 || 19 || 20 || 21"
2020
},
2121
"dependencies": {
2222
"@achrinza/event-pubsub": "5.0.9",
23+
"@achrinza/strong-type": "1.1.8",
2324
"@node-ipc/js-queue": "2.0.3",
24-
"js-message": "1.0.7",
25-
"strong-type": "1.0.1"
25+
"js-message": "1.0.7"
2626
},
2727
"devDependencies": {
28-
"@node-ipc/vanilla-test": "1.4.13",
28+
"@node-ipc/vanilla-test": "1.4.14",
2929
"c8": "^7.7.3",
3030
"esbuild": "^0.12.28",
3131
"lcov2badge": "^0.1.2",

test/TCP/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import VanillaTest from '@node-ipc/vanilla-test';
2-
import Is from 'strong-type';
2+
import Is from '@achrinza/strong-type';
33
import {IPCModule} from '../../node-ipc.js';
44
import delay from '../../helpers/delay.js';
55

@@ -188,4 +188,4 @@ async function run(){
188188
export {
189189
run as default,
190190
run
191-
}
191+
}

test/TCP/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import VanillaTest from '@node-ipc/vanilla-test';
2-
import Is from 'strong-type';
2+
import Is from '@achrinza/strong-type';
33
import {IPCModule} from '../../node-ipc.js';
44
import delay from '../../helpers/delay.js';
55

@@ -74,4 +74,4 @@ async function run(){
7474
export {
7575
run as default,
7676
run
77-
}
77+
}

test/UDP/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import VanillaTest from '@node-ipc/vanilla-test';
2-
import Is from 'strong-type';
2+
import Is from '@achrinza/strong-type';
33
import {IPCModule} from '../../node-ipc.js';
44
import delay from '../../helpers/delay.js';
55

@@ -162,4 +162,4 @@ async function run(){
162162
export {
163163
run as default,
164164
run
165-
}
165+
}

test/unix/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import VanillaTest from '@node-ipc/vanilla-test';
2-
import Is from 'strong-type';
2+
import Is from '@achrinza/strong-type';
33
import {IPCModule} from '../../node-ipc.js';
44
import delay from '../../helpers/delay.js';
55

@@ -162,4 +162,4 @@ async function run(){
162162
export {
163163
run as default,
164164
run
165-
}
165+
}

0 commit comments

Comments
 (0)