Skip to content

Commit

Permalink
ci: use Node.js 22
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Oct 21, 2024
1 parent 3b68658 commit d4b3dde
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
node-version:
- 18
- 20
- 22

services:
redis:
Expand Down
4 changes: 1 addition & 3 deletions packages/engine.io-client/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ if (env.browser) {
require("./node");
}

const Blob = require("blob");

require("./engine.io-client");
require("./socket");
require("./transport");
Expand All @@ -23,6 +21,6 @@ if (typeof ArrayBuffer !== "undefined") {
}

// Blob is available in Node.js since v18, but not yet supported by the `engine.io-parser` package
if (Blob && env.browser) {
if (typeof Blob === "function" && env.browser) {
require("./blob");
}
5 changes: 5 additions & 0 deletions packages/engine.io/test/common.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
if (process.env.EIO_CLIENT === "3" && process.versions.node.startsWith("22")) {
// FIXME WebSocket error with engine.io-client@3
global.WebSocket = null;
}

const { listen, uServer } = require("..");
const { Socket } =
process.env.EIO_CLIENT === "3"
Expand Down

0 comments on commit d4b3dde

Please sign in to comment.