Skip to content

Commit ef9ad7d

Browse files
ci: add Node.js 20 in the test matrix
Reference: https://github.com/nodejs/Release
1 parent 707597d commit ef9ad7d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [16]
15+
node-version:
16+
- 16
17+
- 20
1618

1719
steps:
1820
- name: Checkout repository

test/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if (typeof ArrayBuffer !== "undefined") {
2222
require("./binary-fallback");
2323
}
2424

25-
if (Blob) {
25+
// Blob is available in Node.js since v18, but not yet supported by the `engine.io-parser` package
26+
if (Blob && env.browser) {
2627
require("./blob");
2728
}

0 commit comments

Comments
 (0)