@falcondev-oss/workflow 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -90,6 +90,7 @@ interface WorkflowOptions<RunInput, Input, Output> {
90
90
  schema?: StandardSchemaV1<RunInput, Input>;
91
91
  run: (ctx: WorkflowRunContext<Input>) => Promise<Output>;
92
92
  queueOptions?: SetOptional<QueueOptions, 'connection'>;
93
+ workerOptions?: SetOptional<WorkerOptions, 'connection'>;
93
94
  queueEventsOptions?: SetOptional<QueueEventsOptions, 'connection'>;
94
95
  connection?: ConnectionOptions;
95
96
  }
package/dist/index.mjs CHANGED
@@ -246,6 +246,7 @@ var Workflow = class {
246
246
  }, {
247
247
  connection: this.opts.connection ?? await defaultRedisConnection(),
248
248
  prefix: Settings.defaultPrefix,
249
+ ...this.opts.workerOptions,
249
250
  ...opts
250
251
  });
251
252
  await worker.waitUntilReady();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@falcondev-oss/workflow",
3
3
  "type": "module",
4
- "version": "0.6.1",
4
+ "version": "0.6.2",
5
5
  "description": "Simple type-safe queue worker with durable execution based on BullMQ.",
6
6
  "license": "MIT",
7
7
  "repository": "github:falcondev-oss/workflow",