From 7158f259002f78971b35b264a513175192c545d4 Mon Sep 17 00:00:00 2001 From: Gerardo PG <168353+gerardp@users.noreply.github.com> Date: Tue, 25 Aug 2026 20:59:45 +0200 Subject: [PATCH] fix(types)!: drop the OpenTelemetry re-export from the types barrel The ./types subpath re-exported QueueInstrumentationConfig from src/otel.ts. That single line made the generated barrel declaration side-effect import '@opentelemetry/api' and '@opentelemetry/instrumentation', so consumers who never touch the instrumentation had to install both optional peers to type check any import from '@boringnode/queue/types'. The package already exposes a ./otel subpath for consumers who do want the instrumentation types, so the type stays reachable where its dependencies belong. BREAKING CHANGE: QueueInstrumentationConfig is no longer exported from '@boringnode/queue/types'. Import it from '@boringnode/queue/otel'. --- src/types/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/types/index.ts b/src/types/index.ts index 72d3d17..afb3420 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -31,5 +31,3 @@ export type { export type { Adapter, AcquiredJob } from '../contracts/adapter.js' export type { JobDispatchMessage, JobExecuteMessage } from './tracing_channels.js' - -export type { QueueInstrumentationConfig } from '../otel.js'