From 39dbc7b10aee2ce3546df08fda91bd5604d159c3 Mon Sep 17 00:00:00 2001 From: Gerardo PG <168353+gerardp@users.noreply.github.com> Date: Tue, 25 Aug 2026 20:58:09 +0200 Subject: [PATCH 1/2] fix(tracing): drop the channel name type argument diagnostics_channel.tracingChannel received the channel name as its first type argument. That matched @types/node v25, where the first parameter was the unconstrained StoreType, but v26 swapped the two parameters and constrains the first one to object, so a string literal no longer fits and the published declarations stop compiling for consumers on v26. The name is a runtime value. Passing only the message type resolves to the same TracingChannel pair on both major versions. --- src/tracing_channels.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/tracing_channels.ts b/src/tracing_channels.ts index f7095bc..6bf742c 100644 --- a/src/tracing_channels.ts +++ b/src/tracing_channels.ts @@ -12,16 +12,13 @@ import type { JobDispatchMessage, JobExecuteMessage } from './types/tracing_chan * Traces job dispatch operations (push to queue). * Fires for single dispatch, batch dispatch, and scheduled job dispatch. */ -export const dispatchChannel = diagnostics_channel.tracingChannel< - 'boringqueue.job.dispatch', - JobDispatchMessage ->('boringqueue.job.dispatch') +export const dispatchChannel = diagnostics_channel.tracingChannel( + 'boringqueue.job.dispatch' +) /** * Traces job execution by the worker or sync adapter. * Each retry attempt fires a separate trace. */ -export const executeChannel = diagnostics_channel.tracingChannel< - 'boringqueue.job.execute', - JobExecuteMessage ->('boringqueue.job.execute') +export const executeChannel = + diagnostics_channel.tracingChannel('boringqueue.job.execute') From 477a81f9653ce6b5bcc646223e1cd40bf2ae1b1a Mon Sep 17 00:00:00 2001 From: Gerardo PG <168353+gerardp@users.noreply.github.com> Date: Tue, 25 Aug 2026 20:58:09 +0200 Subject: [PATCH 2/2] chore: allow @types/node v26 in development Keeps the repository from regressing on the tracingChannel signature change, which the previous ^25.9.4 pin hid from CI. --- package.json | 2 +- yarn.lock | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index b45189f..ae3b915 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "@opentelemetry/sdk-trace-base": "^2.8.0", "@poppinss/ts-exec": "^1.4.4", "@types/better-sqlite3": "^7.6.13", - "@types/node": "^25.9.4", + "@types/node": "^25.9.4 || ^26.0.0", "@types/pg": "^8.20.0", "better-sqlite3": "^12.11.1", "bullmq": "^5.79.2", diff --git a/yarn.lock b/yarn.lock index 2aba01b..d0673e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -55,7 +55,7 @@ __metadata: "@poppinss/ts-exec": "npm:^1.4.4" "@poppinss/utils": "npm:^7.0.1" "@types/better-sqlite3": "npm:^7.6.13" - "@types/node": "npm:^25.9.4" + "@types/node": "npm:^25.9.4 || ^26.0.0" "@types/pg": "npm:^8.20.0" better-sqlite3: "npm:^12.11.1" bullmq: "npm:^5.79.2" @@ -1793,12 +1793,12 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^25.9.4": - version: 25.9.4 - resolution: "@types/node@npm:25.9.4" +"@types/node@npm:^25.9.4 || ^26.0.0": + version: 26.3.0 + resolution: "@types/node@npm:26.3.0" dependencies: - undici-types: "npm:>=7.24.0 <7.24.7" - checksum: 10c0/4b19670ef5dbefa836a2d4a9ed0b5ac6befbc0844bfdd12833234ff8fa68da1f65e6362d2ef87acf7e7da9d6ff649bf81c454d12e802b7e7fa9246a15c0edcf6 + undici-types: "npm:~8.3.0" + checksum: 10c0/b1b71d722cea67807abde4993d71aa6e4e24ae3072635ff5fbca3e5fbe7f0d4adc20507ab3f1e14b13720d742fb5cae4b12c7326fbe706fcda24e2aab8306374 languageName: node linkType: hard @@ -5610,13 +5610,6 @@ __metadata: languageName: node linkType: hard -"undici-types@npm:>=7.24.0 <7.24.7": - version: 7.24.6 - resolution: "undici-types@npm:7.24.6" - checksum: 10c0/d9cd8befb643ac904615c280a095ba4240531f6bb4a5e75a22a7483630ca8d3f1016d2ab6ace6ceda1f63b3a2db2fe037fafe121d6917a0187573aa548ff78ca - languageName: node - linkType: hard - "undici-types@npm:~7.10.0": version: 7.10.0 resolution: "undici-types@npm:7.10.0" @@ -5624,6 +5617,13 @@ __metadata: languageName: node linkType: hard +"undici-types@npm:~8.3.0": + version: 8.3.0 + resolution: "undici-types@npm:8.3.0" + checksum: 10c0/c8aa7e2fbebfce519654dafadc0ece59be888d2ccaf180fb4495da875e7b536d2456345c384069c7e6f3e9c9ab7435f074957da306f142343eee86ff8048855a + languageName: node + linkType: hard + "undici@npm:7.28.0": version: 7.28.0 resolution: "undici@npm:7.28.0"