Skip to content

Commit

Permalink
refactor(schema): remove deprecated BullMQConfig.defaultJobOptions
Browse files Browse the repository at this point in the history
BREAKING CHANGE: remove deprecated BullMQConfig.defaultJobOptions. Use BullMQConfig.defaultQueueOptions instead
  • Loading branch information
Romakita committed Sep 11, 2024
1 parent 9c599b1 commit 8f52777
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/orm/mongoose/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export default defineConfig(
...presets.test.coverage,
thresholds: {
statements: 98.03,
branches: 95.02,
branches: 95,
functions: 100,
lines: 98.03
}
}
}
}
);
);
4 changes: 2 additions & 2 deletions packages/platform/common/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export default defineConfig(
coverage: {
...presets.test.coverage,
thresholds: {
statements: 97.03,
statements: 97.02,
branches: 90.74,
functions: 94.89,
lines: 97.03
lines: 97.02
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/platform/platform-koa/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export default defineConfig(
...presets.test.coverage,
thresholds: {
statements: 99.15,
branches: 95.65,
branches: 95.6,
functions: 100,
lines: 99.15
}
}
}
}
);
);
5 changes: 0 additions & 5 deletions packages/third-parties/bullmq/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ export type BullMQConfig = {
*/
connection: ConnectionOptions;

/**
* @deprecated Use defaultQueueOptions instead. Will be removed in the next major release
*/
defaultJobOptions?: DefaultJobOptions;

/**
* Default queue options which are applied to every queue
*
Expand Down
1 change: 0 additions & 1 deletion packages/third-parties/bullmq/src/utils/mapQueueOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export function mapQueueOptions(queue: string, bullMQConfig: BullMQConfig): Queu
return deepMerge<QueueOptions, QueueOptions>(
{
connection: bullMQConfig.connection,
defaultJobOptions: bullMQConfig.defaultJobOptions,
...bullMQConfig.defaultQueueOptions
},
bullMQConfig.queueOptions?.[queue]
Expand Down

0 comments on commit 8f52777

Please sign in to comment.