feat: add node 24 support (#614)

* feat: add node 24 support

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>

* squash: fixes for running tests

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>

---------

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
This commit is contained in:
Lucas Holmquist 2025-06-05 08:53:12 -04:00 committed by GitHub
parent fc760976bf
commit beac7356a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3044 additions and 8420 deletions

View File

@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [18.x, 20.x, 22.x] node-version: [18.x, 20.x, 22.x, 24.x]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

11456
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -160,6 +160,6 @@
}, },
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"engines": { "engines": {
"node": ">=18 <=22" "node": ">=18 <=24"
} }
} }

View File

@ -26,7 +26,7 @@ describe("Emitter Singleton", () => {
if (typeof body === "string") { if (typeof body === "string") {
body = JSON.parse(body); body = JSON.parse(body);
} }
assertStructured({ ...(<any>body), ...(msg as Message).headers }); assertStructured({ ...(body as any), ...(msg as Message).headers });
}); });
it("emit a Node.js 'cloudevent' event as an EventEmitter with ensureDelivery", async () => { it("emit a Node.js 'cloudevent' event as an EventEmitter with ensureDelivery", async () => {
@ -41,7 +41,7 @@ describe("Emitter Singleton", () => {
if (typeof body === "string") { if (typeof body === "string") {
body = JSON.parse(body); body = JSON.parse(body);
} }
assertStructured({ ...(<any>body), ...(msg as Message).headers }); assertStructured({ ...(body as any), ...(msg as Message).headers });
}); });
it("emit a Node.js 'cloudevent' event as an EventEmitter with ensureDelivery Error", async () => { it("emit a Node.js 'cloudevent' event as an EventEmitter with ensureDelivery Error", async () => {