You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ba24697
Browse filesBrowse the repository at this point in the historyBrowse files
fix(knex)!: scope KnexQueueSchemaService to the driver module (#27)
* 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'.
* refactor(knex)!: rename QueueSchemaService to KnexQueueSchemaService
Now that the schema service is exported from the Knex driver module, the
name mirrors KyselyQueueSchemaService and src/services/knex_queue_schema.ts
mirrors src/services/kysely_queue_schema.ts, so neither module carries the
unqualified name.
BREAKING CHANGE: QueueSchemaService is now named KnexQueueSchemaService.
---------
Co-authored-by: Gerardo PG <168353+gerardp@users.noreply.github.com>
@@ -419,7 +421,7 @@ export class KnexAdapter implements Adapter {
419
421
}catch(err){
420
422
if(this.#isMissingDedupColumn(err)){
421
423
thrownewError(
422
-
`Dedup columns missing on "${this.#jobsTable}". Run QueueSchemaService.addDedupColumns() on your jobs table before dispatching jobs with .dedup().`,
424
+
`Dedup columns missing on "${this.#jobsTable}". Run KnexQueueSchemaService.addDedupColumns() on your jobs table before dispatching jobs with .dedup().`,
0 commit comments