@trigger.dev/redis-worker 0.0.0-prerelease-streamfix-20260909094302 → 0.0.0-prerelease-20260911094758

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
@@ -60,7 +60,7 @@ let node_crypto = require("node:crypto");
60
60
  require("@trigger.dev/core/v3/utils/flattenAttributes");
61
61
  let _trigger_dev_core_v3 = require("@trigger.dev/core/v3");
62
62
  let _trigger_dev_core_v3_serverOnly = require("@trigger.dev/core/v3/serverOnly");
63
- let zod = require("zod");
63
+ let zod_v4 = require("zod/v4");
64
64
  let cron_parser = require("cron-parser");
65
65
  cron_parser = __toESM(cron_parser, 1);
66
66
  let node_timers_promises = require("node:timers/promises");
@@ -11386,10 +11386,10 @@ function validateConcurrency(concurrency) {
11386
11386
 
11387
11387
  //#endregion
11388
11388
  //#region src/worker.ts
11389
- const CronSchema = zod.z.object({
11390
- cron: zod.z.string(),
11391
- lastTimestamp: zod.z.number().optional(),
11392
- timestamp: zod.z.number()
11389
+ const CronSchema = zod_v4.z.object({
11390
+ cron: zod_v4.z.string(),
11391
+ lastTimestamp: zod_v4.z.number().optional(),
11392
+ timestamp: zod_v4.z.number()
11393
11393
  });
11394
11394
  const defaultRetrySettings = {
11395
11395
  maxAttempts: 12,
@@ -16285,61 +16285,61 @@ end
16285
16285
 
16286
16286
  //#endregion
16287
16287
  //#region src/mollifier/schemas.ts
16288
- const BufferEntryStatus = zod.z.enum([
16288
+ const BufferEntryStatus = zod_v4.z.enum([
16289
16289
  "QUEUED",
16290
16290
  "DRAINING",
16291
16291
  "FAILED"
16292
16292
  ]);
16293
- const BufferEntryError = zod.z.object({
16294
- code: zod.z.string(),
16295
- message: zod.z.string()
16293
+ const BufferEntryError = zod_v4.z.object({
16294
+ code: zod_v4.z.string(),
16295
+ message: zod_v4.z.string()
16296
16296
  });
16297
- const stringToInt = zod.z.string().transform((v, ctx) => {
16297
+ const stringToInt = zod_v4.z.string().transform((v, ctx) => {
16298
16298
  const n = Number(v);
16299
16299
  if (!Number.isInteger(n) || n < 0) {
16300
16300
  ctx.addIssue({
16301
- code: zod.z.ZodIssueCode.custom,
16301
+ code: zod_v4.z.ZodIssueCode.custom,
16302
16302
  message: "expected non-negative integer string"
16303
16303
  });
16304
- return zod.z.NEVER;
16304
+ return zod_v4.z.NEVER;
16305
16305
  }
16306
16306
  return n;
16307
16307
  });
16308
- const stringToDate = zod.z.string().transform((v, ctx) => {
16308
+ const stringToDate = zod_v4.z.string().transform((v, ctx) => {
16309
16309
  const d = new Date(v);
16310
16310
  if (Number.isNaN(d.getTime())) {
16311
16311
  ctx.addIssue({
16312
- code: zod.z.ZodIssueCode.custom,
16312
+ code: zod_v4.z.ZodIssueCode.custom,
16313
16313
  message: "expected ISO date string"
16314
16314
  });
16315
- return zod.z.NEVER;
16315
+ return zod_v4.z.NEVER;
16316
16316
  }
16317
16317
  return d;
16318
16318
  });
16319
- const stringToBool = zod.z.union([zod.z.literal("true"), zod.z.literal("false")]).transform((v) => v === "true");
16320
- const stringToError = zod.z.string().transform((v, ctx) => {
16319
+ const stringToBool = zod_v4.z.union([zod_v4.z.literal("true"), zod_v4.z.literal("false")]).transform((v) => v === "true");
16320
+ const stringToError = zod_v4.z.string().transform((v, ctx) => {
16321
16321
  try {
16322
16322
  return BufferEntryError.parse(JSON.parse(v));
16323
16323
  } catch {
16324
16324
  ctx.addIssue({
16325
- code: zod.z.ZodIssueCode.custom,
16325
+ code: zod_v4.z.ZodIssueCode.custom,
16326
16326
  message: "expected JSON-encoded BufferEntryError"
16327
16327
  });
16328
- return zod.z.NEVER;
16328
+ return zod_v4.z.NEVER;
16329
16329
  }
16330
16330
  });
16331
- const BufferEntrySchema = zod.z.object({
16332
- runId: zod.z.string().min(1),
16333
- envId: zod.z.string().min(1),
16334
- orgId: zod.z.string().min(1),
16335
- payload: zod.z.string(),
16331
+ const BufferEntrySchema = zod_v4.z.object({
16332
+ runId: zod_v4.z.string().min(1),
16333
+ envId: zod_v4.z.string().min(1),
16334
+ orgId: zod_v4.z.string().min(1),
16335
+ payload: zod_v4.z.string(),
16336
16336
  status: BufferEntryStatus,
16337
16337
  attempts: stringToInt,
16338
16338
  createdAt: stringToDate,
16339
- createdAtMicros: stringToInt.default("0"),
16340
- materialised: stringToBool.default("false"),
16341
- idempotencyLookupKey: zod.z.string().optional().default(""),
16342
- metadataVersion: stringToInt.default("0"),
16339
+ createdAtMicros: stringToInt.default(0),
16340
+ materialised: stringToBool.default(false),
16341
+ idempotencyLookupKey: zod_v4.z.string().optional().default(""),
16342
+ metadataVersion: stringToInt.default(0),
16343
16343
  lastError: stringToError.optional()
16344
16344
  });
16345
16345
  function serialiseSnapshot(snapshot) {