power-queues 2.0.20 → 2.0.22

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.cjs CHANGED
@@ -334,7 +334,7 @@ var PowerQueues = class extends import_power_redis.PowerRedis {
334
334
  if (!(0, import_full_utils.isStrFilled)(queueName)) {
335
335
  throw new Error("Queue name is required.");
336
336
  }
337
- const job = (0, import_uuid.v4)();
337
+ const job = opts.id ?? (0, import_uuid.v4)();
338
338
  const batches = this.buildBatches(data, job, opts.idem);
339
339
  const result = new Array(data.length);
340
340
  const promises = [];
package/dist/index.js CHANGED
@@ -317,7 +317,7 @@ var PowerQueues = class extends PowerRedis {
317
317
  if (!isStrFilled(queueName)) {
318
318
  throw new Error("Queue name is required.");
319
319
  }
320
- const job = uuid();
320
+ const job = opts.id ?? uuid();
321
321
  const batches = this.buildBatches(data, job, opts.idem);
322
322
  const result = new Array(data.length);
323
323
  const promises = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "power-queues",
3
- "version": "2.0.20",
3
+ "version": "2.0.22",
4
4
  "description": "High-performance Redis Streams queue for Node.js with Lua-powered bulk XADD, idempotent workers, heartbeat locks, stuck-task recovery, retries, DLQ, and distributed processing.",
5
5
  "author": "ihor-bielchenko",
6
6
  "license": "MIT",
@@ -81,8 +81,8 @@
81
81
  "power-redis"
82
82
  ],
83
83
  "dependencies": {
84
- "full-utils": "^2.0.5",
85
- "power-redis": "^2.0.10",
84
+ "full-utils": "^3.0.3",
85
+ "power-redis": "^2.0.22",
86
86
  "uuid": "^13.0.0"
87
87
  }
88
88
  }