Commit 2f9b5a2
committed
fix(knex)!: move QueueSchemaService to the driver module
The root barrel re-exported QueueSchemaService, whose constructor takes a
Knex instance. That single export made build/index.d.ts import 'knex', so
every consumer type checking with skipLibCheck disabled had to install the
optional peer, even when using the Kysely, Redis or Sync adapter.
Export it from src/drivers/knex_adapter.ts instead, the way the Kysely
module already exports KyselyQueueSchemaService, so the type stays reachable
only from the subpath that owns the dependency.
BREAKING CHANGE: QueueSchemaService is no longer exported from the package
root. Import it from '@boringnode/queue/drivers/knex_adapter'.1 parent 2ebc06e commit 2f9b5a2
3 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
0 commit comments