Skip to content

Commit

Permalink
Update Node.js versions (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
timostamm authored Sep 4, 2024
1 parent d42cff5 commit e1e5613
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
# Node.js v16 does not provide all necessary fetch types by default, so
# we cannot run tests for @connectrpc/connect-web.
# v16 is tested in a separate job below.
node-version: [21.1.0, 20.9.0, 18.16.0]
node-version: [22.7.0, 20.17.0, 18.20.4]
name: "test on Node.js ${{ matrix.node-version }}"
steps:
- uses: actions/checkout@v4
Expand All @@ -80,7 +80,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.20.0]
node-version: [16.20.2]
name: "test on Node.js ${{ matrix.node-version }}"
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conformance-express.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [21.1.0, 20.9.0, 18.16.0, 16.20.0]
node-version: [22.7.0, 20.17.0, 18.20.4, 16.20.2]
name: "Node.js ${{ matrix.node-version }}"
timeout-minutes: 10
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conformance-fastify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [21.1.0, 20.9.0, 18.16.0, 16.20.0]
node-version: [22.7.0, 20.17.0, 18.20.4, 16.20.2]
name: "Node.js ${{ matrix.node-version }}"
timeout-minutes: 10
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conformance-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [21.1.0, 20.9.0, 18.16.0, 16.20.0]
node-version: [22.7.0, 20.17.0, 18.20.4, 16.20.2]
side: [client, server]
name: "Node.js ${{ matrix.node-version }} ${{ matrix.side }}"
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conformance-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
strategy:
matrix:
# Node.js v16 does not provide all necessary fetch types by default
node-version: [21.1.0, 20.9.0, 18.16.0]
node-version: [22.7.0, 20.17.0, 18.20.4, 18.16.0]
client: [promise, callback]
name: "Node.js ${{ matrix.node-version }} ${{ matrix.client }}"
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.9.0
20.17.0
14 changes: 0 additions & 14 deletions packages/connect-node/src/compression.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,6 @@ describe("compression", () => {
);
}
});
it("should raise internal error on excessive readMaxBytes", async () => {
try {
await compression.decompress(
new Uint8Array([0xde, 0xad, 0xbe, 0xef]),
Number.MAX_SAFE_INTEGER,
);
fail("excepted an error");
} catch (e) {
expect(e).toBeInstanceOf(ConnectError);
expect(ConnectError.from(e).message).toBe(
"[internal] decompression failed",
);
}
});
});
}
});

0 comments on commit e1e5613

Please sign in to comment.