Skip to content

Commit 40b68f1

Browse files
authored
fix(types)!: drop the OpenTelemetry re-export from the types barrel (#29)
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'. Co-authored-by: Gerardo PG <168353+gerardp@users.noreply.github.com>
1 parent ba24697 commit 40b68f1

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎src/types/index.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,3 @@ export type {
3131
export type { Adapter, AcquiredJob } from '../contracts/adapter.js'
3232

3333
export type { JobDispatchMessage, JobExecuteMessage } from './tracing_channels.js'
34-
35-
export type { QueueInstrumentationConfig } from '../otel.js'

0 commit comments

Comments
 (0)