@upstash/workflow 0.2.18 → 0.2.19

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/astro.js CHANGED
@@ -614,7 +614,7 @@ var triggerFirstInvocation = async (params) => {
614
614
  const firstInvocationParams = Array.isArray(params) ? params : [params];
615
615
  const workflowContextClient = firstInvocationParams[0].workflowContext.qstashClient;
616
616
  const invocationBatch = firstInvocationParams.map(
617
- ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay }) => {
617
+ ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay, notBefore }) => {
618
618
  const { headers } = getHeaders({
619
619
  initHeaderValue: "true",
620
620
  workflowConfig: {
@@ -645,7 +645,8 @@ var triggerFirstInvocation = async (params) => {
645
645
  method: "POST",
646
646
  body,
647
647
  url: workflowContext.url,
648
- delay
648
+ delay,
649
+ notBefore
649
650
  };
650
651
  }
651
652
  );
@@ -3345,7 +3346,7 @@ var processOptions = (options) => {
3345
3346
  environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
3346
3347
  );
3347
3348
  return {
3348
- qstashClient: new import_qstash11.Client({
3349
+ qstashClient: options?.qstashClient ?? new import_qstash11.Client({
3349
3350
  baseUrl: environment.QSTASH_URL,
3350
3351
  token: environment.QSTASH_TOKEN
3351
3352
  }),
package/astro.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  SDK_TELEMETRY,
3
3
  serveBase,
4
4
  serveManyBase
5
- } from "./chunk-EHL7SSJF.mjs";
5
+ } from "./chunk-37XOXDLZ.mjs";
6
6
 
7
7
  // platforms/astro.ts
8
8
  var telemetry = {
@@ -831,7 +831,7 @@ var triggerFirstInvocation = async (params) => {
831
831
  const firstInvocationParams = Array.isArray(params) ? params : [params];
832
832
  const workflowContextClient = firstInvocationParams[0].workflowContext.qstashClient;
833
833
  const invocationBatch = firstInvocationParams.map(
834
- ({ workflowContext, useJSONContent, telemetry, invokeCount, delay }) => {
834
+ ({ workflowContext, useJSONContent, telemetry, invokeCount, delay, notBefore }) => {
835
835
  const { headers } = getHeaders({
836
836
  initHeaderValue: "true",
837
837
  workflowConfig: {
@@ -862,7 +862,8 @@ var triggerFirstInvocation = async (params) => {
862
862
  method: "POST",
863
863
  body,
864
864
  url: workflowContext.url,
865
- delay
865
+ delay,
866
+ notBefore
866
867
  };
867
868
  }
868
869
  );
@@ -3389,7 +3390,7 @@ var processOptions = (options) => {
3389
3390
  environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
3390
3391
  );
3391
3392
  return {
3392
- qstashClient: new Client3({
3393
+ qstashClient: options?.qstashClient ?? new Client3({
3393
3394
  baseUrl: environment.QSTASH_URL,
3394
3395
  token: environment.QSTASH_TOKEN
3395
3396
  }),
package/cloudflare.js CHANGED
@@ -614,7 +614,7 @@ var triggerFirstInvocation = async (params) => {
614
614
  const firstInvocationParams = Array.isArray(params) ? params : [params];
615
615
  const workflowContextClient = firstInvocationParams[0].workflowContext.qstashClient;
616
616
  const invocationBatch = firstInvocationParams.map(
617
- ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay }) => {
617
+ ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay, notBefore }) => {
618
618
  const { headers } = getHeaders({
619
619
  initHeaderValue: "true",
620
620
  workflowConfig: {
@@ -645,7 +645,8 @@ var triggerFirstInvocation = async (params) => {
645
645
  method: "POST",
646
646
  body,
647
647
  url: workflowContext.url,
648
- delay
648
+ delay,
649
+ notBefore
649
650
  };
650
651
  }
651
652
  );
@@ -3345,7 +3346,7 @@ var processOptions = (options) => {
3345
3346
  environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
3346
3347
  );
3347
3348
  return {
3348
- qstashClient: new import_qstash11.Client({
3349
+ qstashClient: options?.qstashClient ?? new import_qstash11.Client({
3349
3350
  baseUrl: environment.QSTASH_URL,
3350
3351
  token: environment.QSTASH_TOKEN
3351
3352
  }),
package/cloudflare.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  SDK_TELEMETRY,
3
3
  serveBase,
4
4
  serveManyBase
5
- } from "./chunk-EHL7SSJF.mjs";
5
+ } from "./chunk-37XOXDLZ.mjs";
6
6
 
7
7
  // platforms/cloudflare.ts
8
8
  var getArgs = (args) => {
package/express.js CHANGED
@@ -24060,7 +24060,7 @@ var triggerFirstInvocation = async (params) => {
24060
24060
  const firstInvocationParams = Array.isArray(params) ? params : [params];
24061
24061
  const workflowContextClient = firstInvocationParams[0].workflowContext.qstashClient;
24062
24062
  const invocationBatch = firstInvocationParams.map(
24063
- ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay }) => {
24063
+ ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay, notBefore }) => {
24064
24064
  const { headers } = getHeaders({
24065
24065
  initHeaderValue: "true",
24066
24066
  workflowConfig: {
@@ -24091,7 +24091,8 @@ var triggerFirstInvocation = async (params) => {
24091
24091
  method: "POST",
24092
24092
  body,
24093
24093
  url: workflowContext.url,
24094
- delay
24094
+ delay,
24095
+ notBefore
24095
24096
  };
24096
24097
  }
24097
24098
  );
@@ -26791,7 +26792,7 @@ var processOptions = (options) => {
26791
26792
  environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
26792
26793
  );
26793
26794
  return {
26794
- qstashClient: new import_qstash11.Client({
26795
+ qstashClient: options?.qstashClient ?? new import_qstash11.Client({
26795
26796
  baseUrl: environment.QSTASH_URL,
26796
26797
  token: environment.QSTASH_TOKEN
26797
26798
  }),
package/express.mjs CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  __toESM,
6
6
  serveBase,
7
7
  serveManyBase
8
- } from "./chunk-EHL7SSJF.mjs";
8
+ } from "./chunk-37XOXDLZ.mjs";
9
9
 
10
10
  // node_modules/depd/index.js
11
11
  var require_depd = __commonJS({
package/h3.js CHANGED
@@ -926,7 +926,7 @@ var triggerFirstInvocation = async (params) => {
926
926
  const firstInvocationParams = Array.isArray(params) ? params : [params];
927
927
  const workflowContextClient = firstInvocationParams[0].workflowContext.qstashClient;
928
928
  const invocationBatch = firstInvocationParams.map(
929
- ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay }) => {
929
+ ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay, notBefore }) => {
930
930
  const { headers } = getHeaders({
931
931
  initHeaderValue: "true",
932
932
  workflowConfig: {
@@ -957,7 +957,8 @@ var triggerFirstInvocation = async (params) => {
957
957
  method: "POST",
958
958
  body,
959
959
  url: workflowContext.url,
960
- delay
960
+ delay,
961
+ notBefore
961
962
  };
962
963
  }
963
964
  );
@@ -3657,7 +3658,7 @@ var processOptions = (options) => {
3657
3658
  environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
3658
3659
  );
3659
3660
  return {
3660
- qstashClient: new import_qstash11.Client({
3661
+ qstashClient: options?.qstashClient ?? new import_qstash11.Client({
3661
3662
  baseUrl: environment.QSTASH_URL,
3662
3663
  token: environment.QSTASH_TOKEN
3663
3664
  }),
package/h3.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  SDK_TELEMETRY,
3
3
  serveBase,
4
4
  serveManyBase
5
- } from "./chunk-EHL7SSJF.mjs";
5
+ } from "./chunk-37XOXDLZ.mjs";
6
6
 
7
7
  // node_modules/defu/dist/defu.mjs
8
8
  function isPlainObject(value) {
package/hono.js CHANGED
@@ -614,7 +614,7 @@ var triggerFirstInvocation = async (params) => {
614
614
  const firstInvocationParams = Array.isArray(params) ? params : [params];
615
615
  const workflowContextClient = firstInvocationParams[0].workflowContext.qstashClient;
616
616
  const invocationBatch = firstInvocationParams.map(
617
- ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay }) => {
617
+ ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay, notBefore }) => {
618
618
  const { headers } = getHeaders({
619
619
  initHeaderValue: "true",
620
620
  workflowConfig: {
@@ -645,7 +645,8 @@ var triggerFirstInvocation = async (params) => {
645
645
  method: "POST",
646
646
  body,
647
647
  url: workflowContext.url,
648
- delay
648
+ delay,
649
+ notBefore
649
650
  };
650
651
  }
651
652
  );
@@ -3345,7 +3346,7 @@ var processOptions = (options) => {
3345
3346
  environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
3346
3347
  );
3347
3348
  return {
3348
- qstashClient: new import_qstash11.Client({
3349
+ qstashClient: options?.qstashClient ?? new import_qstash11.Client({
3349
3350
  baseUrl: environment.QSTASH_URL,
3350
3351
  token: environment.QSTASH_TOKEN
3351
3352
  }),
package/hono.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  SDK_TELEMETRY,
3
3
  serveBase,
4
4
  serveManyBase
5
- } from "./chunk-EHL7SSJF.mjs";
5
+ } from "./chunk-37XOXDLZ.mjs";
6
6
 
7
7
  // platforms/hono.ts
8
8
  var telemetry = {
package/index.d.mts CHANGED
@@ -416,6 +416,16 @@ type TriggerOptions = {
416
416
  * Delay to apply before triggering the workflow.
417
417
  */
418
418
  delay?: PublishRequest["delay"];
419
+ /**
420
+ * Optionally set the absolute delay of this message.
421
+ * This will override the delay option.
422
+ * The message will not delivered until the specified time.
423
+ *
424
+ * Unix timestamp in seconds.
425
+ *
426
+ * @default undefined
427
+ */
428
+ notBefore?: PublishRequest["notBefore"];
419
429
  /**
420
430
  * Label to apply to the workflow run.
421
431
  *
package/index.d.ts CHANGED
@@ -416,6 +416,16 @@ type TriggerOptions = {
416
416
  * Delay to apply before triggering the workflow.
417
417
  */
418
418
  delay?: PublishRequest["delay"];
419
+ /**
420
+ * Optionally set the absolute delay of this message.
421
+ * This will override the delay option.
422
+ * The message will not delivered until the specified time.
423
+ *
424
+ * Unix timestamp in seconds.
425
+ *
426
+ * @default undefined
427
+ */
428
+ notBefore?: PublishRequest["notBefore"];
419
429
  /**
420
430
  * Label to apply to the workflow run.
421
431
  *
package/index.js CHANGED
@@ -627,7 +627,7 @@ var triggerFirstInvocation = async (params) => {
627
627
  const firstInvocationParams = Array.isArray(params) ? params : [params];
628
628
  const workflowContextClient = firstInvocationParams[0].workflowContext.qstashClient;
629
629
  const invocationBatch = firstInvocationParams.map(
630
- ({ workflowContext, useJSONContent, telemetry, invokeCount, delay }) => {
630
+ ({ workflowContext, useJSONContent, telemetry, invokeCount, delay, notBefore }) => {
631
631
  const { headers } = getHeaders({
632
632
  initHeaderValue: "true",
633
633
  workflowConfig: {
@@ -658,7 +658,8 @@ var triggerFirstInvocation = async (params) => {
658
658
  method: "POST",
659
659
  body,
660
660
  url: workflowContext.url,
661
- delay
661
+ delay,
662
+ notBefore
662
663
  };
663
664
  }
664
665
  );
@@ -3322,7 +3323,7 @@ var processOptions = (options) => {
3322
3323
  environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
3323
3324
  );
3324
3325
  return {
3325
- qstashClient: new import_qstash11.Client({
3326
+ qstashClient: options?.qstashClient ?? new import_qstash11.Client({
3326
3327
  baseUrl: environment.QSTASH_URL,
3327
3328
  token: environment.QSTASH_TOKEN
3328
3329
  }),
@@ -3878,7 +3879,8 @@ var Client4 = class {
3878
3879
  return {
3879
3880
  workflowContext: context,
3880
3881
  telemetry: { sdk: SDK_TELEMETRY },
3881
- delay: option.delay
3882
+ delay: option.delay,
3883
+ notBefore: option.notBefore
3882
3884
  };
3883
3885
  });
3884
3886
  const result = await triggerFirstInvocation(invocations);
package/index.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  prepareFlowControl,
15
15
  serve,
16
16
  triggerFirstInvocation
17
- } from "./chunk-EHL7SSJF.mjs";
17
+ } from "./chunk-37XOXDLZ.mjs";
18
18
 
19
19
  // src/client/index.ts
20
20
  import { Client as QStashClient } from "@upstash/qstash";
@@ -265,7 +265,8 @@ var Client = class {
265
265
  return {
266
266
  workflowContext: context,
267
267
  telemetry: { sdk: SDK_TELEMETRY },
268
- delay: option.delay
268
+ delay: option.delay,
269
+ notBefore: option.notBefore
269
270
  };
270
271
  });
271
272
  const result = await triggerFirstInvocation(invocations);
package/nextjs.js CHANGED
@@ -617,7 +617,7 @@ var triggerFirstInvocation = async (params) => {
617
617
  const firstInvocationParams = Array.isArray(params) ? params : [params];
618
618
  const workflowContextClient = firstInvocationParams[0].workflowContext.qstashClient;
619
619
  const invocationBatch = firstInvocationParams.map(
620
- ({ workflowContext, useJSONContent, telemetry, invokeCount, delay }) => {
620
+ ({ workflowContext, useJSONContent, telemetry, invokeCount, delay, notBefore }) => {
621
621
  const { headers } = getHeaders({
622
622
  initHeaderValue: "true",
623
623
  workflowConfig: {
@@ -648,7 +648,8 @@ var triggerFirstInvocation = async (params) => {
648
648
  method: "POST",
649
649
  body,
650
650
  url: workflowContext.url,
651
- delay
651
+ delay,
652
+ notBefore
652
653
  };
653
654
  }
654
655
  );
@@ -3348,7 +3349,7 @@ var processOptions = (options) => {
3348
3349
  environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
3349
3350
  );
3350
3351
  return {
3351
- qstashClient: new import_qstash11.Client({
3352
+ qstashClient: options?.qstashClient ?? new import_qstash11.Client({
3352
3353
  baseUrl: environment.QSTASH_URL,
3353
3354
  token: environment.QSTASH_TOKEN
3354
3355
  }),
package/nextjs.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  SDK_TELEMETRY,
3
3
  serveBase,
4
4
  serveManyBase
5
- } from "./chunk-EHL7SSJF.mjs";
5
+ } from "./chunk-37XOXDLZ.mjs";
6
6
 
7
7
  // platforms/nextjs.ts
8
8
  var appTelemetry = {
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@upstash/workflow","version":"v0.2.18","description":"Durable, Reliable and Performant Serverless Functions","main":"./index.js","module":"./index.mjs","types":"./index.d.ts","files":["./*"],"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./dist/nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./h3":{"import":"./h3.mjs","require":"./h3.js"},"./svelte":{"import":"./svelte.mjs","require":"./svelte.js"},"./solidjs":{"import":"./solidjs.mjs","require":"./solidjs.js"},"./workflow":{"import":"./workflow.mjs","require":"./workflow.js"},"./hono":{"import":"./hono.mjs","require":"./hono.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./astro":{"import":"./astro.mjs","require":"./astro.js"},"./express":{"import":"./express.mjs","require":"./express.js"}},"scripts":{"build":"tsup && cp README.md ./dist/ && cp package.json ./dist/ && cp LICENSE ./dist/","test":"bun test src","fmt":"prettier --write .","lint":"tsc && eslint \"{src,platforms}/**/*.{js,ts,tsx}\" --quiet --fix","check-exports":"bun run build && cd dist && attw -P"},"repository":{"type":"git","url":"git+https://github.com/upstash/workflow-ts.git"},"keywords":["upstash","qstash","workflow","serverless"],"author":"Cahid Arda Oz","license":"MIT","bugs":{"url":"https://github.com/upstash/workflow-ts/issues"},"homepage":"https://github.com/upstash/workflow-ts#readme","devDependencies":{"@ai-sdk/anthropic":"^1.1.15","@commitlint/cli":"^19.5.0","@commitlint/config-conventional":"^19.5.0","@eslint/js":"^9.11.1","@solidjs/start":"^1.0.8","@sveltejs/kit":"^2.6.1","@types/bun":"^1.1.10","@types/express":"^5.0.3","astro":"^4.16.7","eslint":"^9.11.1","eslint-plugin-unicorn":"^55.0.0","express":"^5.1.0","globals":"^15.10.0","h3":"^1.12.0","hono":"^4.6.20","husky":"^9.1.6","next":"^14.2.14","prettier":"3.3.3","tsup":"^8.3.0","typescript":"^5.7.2","typescript-eslint":"^8.18.0"},"dependencies":{"@ai-sdk/openai":"^1.2.1","@upstash/qstash":"^2.8.2","ai":"^4.1.54","zod":"^3.24.1"},"directories":{"example":"examples"}}
1
+ {"name":"@upstash/workflow","version":"v0.2.19","description":"Durable, Reliable and Performant Serverless Functions","main":"./index.js","module":"./index.mjs","types":"./index.d.ts","files":["./*"],"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./dist/nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./h3":{"import":"./h3.mjs","require":"./h3.js"},"./svelte":{"import":"./svelte.mjs","require":"./svelte.js"},"./solidjs":{"import":"./solidjs.mjs","require":"./solidjs.js"},"./workflow":{"import":"./workflow.mjs","require":"./workflow.js"},"./hono":{"import":"./hono.mjs","require":"./hono.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./astro":{"import":"./astro.mjs","require":"./astro.js"},"./express":{"import":"./express.mjs","require":"./express.js"}},"scripts":{"build":"tsup && cp README.md ./dist/ && cp package.json ./dist/ && cp LICENSE ./dist/","test":"bun test src","fmt":"prettier --write .","lint":"tsc && eslint \"{src,platforms}/**/*.{js,ts,tsx}\" --quiet --fix","check-exports":"bun run build && cd dist && attw -P"},"repository":{"type":"git","url":"git+https://github.com/upstash/workflow-ts.git"},"keywords":["upstash","qstash","workflow","serverless"],"author":"Cahid Arda Oz","license":"MIT","bugs":{"url":"https://github.com/upstash/workflow-ts/issues"},"homepage":"https://github.com/upstash/workflow-ts#readme","devDependencies":{"@ai-sdk/anthropic":"^1.1.15","@commitlint/cli":"^19.5.0","@commitlint/config-conventional":"^19.5.0","@eslint/js":"^9.11.1","@solidjs/start":"^1.0.8","@sveltejs/kit":"^2.6.1","@types/bun":"^1.1.10","@types/express":"^5.0.3","astro":"^4.16.7","eslint":"^9.11.1","eslint-plugin-unicorn":"^55.0.0","express":"^5.1.0","globals":"^15.10.0","h3":"^1.12.0","hono":"^4.6.20","husky":"^9.1.6","next":"^14.2.14","prettier":"3.3.3","tsup":"^8.3.0","typescript":"^5.7.2","typescript-eslint":"^8.18.0"},"dependencies":{"@ai-sdk/openai":"^1.2.1","@upstash/qstash":"^2.8.2","ai":"^4.1.54","zod":"^3.24.1"},"directories":{"example":"examples"}}
package/solidjs.js CHANGED
@@ -612,7 +612,7 @@ var triggerFirstInvocation = async (params) => {
612
612
  const firstInvocationParams = Array.isArray(params) ? params : [params];
613
613
  const workflowContextClient = firstInvocationParams[0].workflowContext.qstashClient;
614
614
  const invocationBatch = firstInvocationParams.map(
615
- ({ workflowContext, useJSONContent, telemetry, invokeCount, delay }) => {
615
+ ({ workflowContext, useJSONContent, telemetry, invokeCount, delay, notBefore }) => {
616
616
  const { headers } = getHeaders({
617
617
  initHeaderValue: "true",
618
618
  workflowConfig: {
@@ -643,7 +643,8 @@ var triggerFirstInvocation = async (params) => {
643
643
  method: "POST",
644
644
  body,
645
645
  url: workflowContext.url,
646
- delay
646
+ delay,
647
+ notBefore
647
648
  };
648
649
  }
649
650
  );
@@ -3276,7 +3277,7 @@ var processOptions = (options) => {
3276
3277
  environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
3277
3278
  );
3278
3279
  return {
3279
- qstashClient: new import_qstash11.Client({
3280
+ qstashClient: options?.qstashClient ?? new import_qstash11.Client({
3280
3281
  baseUrl: environment.QSTASH_URL,
3281
3282
  token: environment.QSTASH_TOKEN
3282
3283
  }),
package/solidjs.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SDK_TELEMETRY,
3
3
  serveBase
4
- } from "./chunk-EHL7SSJF.mjs";
4
+ } from "./chunk-37XOXDLZ.mjs";
5
5
 
6
6
  // platforms/solidjs.ts
7
7
  var serve = (routeFunction, options) => {
package/svelte.js CHANGED
@@ -614,7 +614,7 @@ var triggerFirstInvocation = async (params) => {
614
614
  const firstInvocationParams = Array.isArray(params) ? params : [params];
615
615
  const workflowContextClient = firstInvocationParams[0].workflowContext.qstashClient;
616
616
  const invocationBatch = firstInvocationParams.map(
617
- ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay }) => {
617
+ ({ workflowContext, useJSONContent, telemetry: telemetry2, invokeCount, delay, notBefore }) => {
618
618
  const { headers } = getHeaders({
619
619
  initHeaderValue: "true",
620
620
  workflowConfig: {
@@ -645,7 +645,8 @@ var triggerFirstInvocation = async (params) => {
645
645
  method: "POST",
646
646
  body,
647
647
  url: workflowContext.url,
648
- delay
648
+ delay,
649
+ notBefore
649
650
  };
650
651
  }
651
652
  );
@@ -3345,7 +3346,7 @@ var processOptions = (options) => {
3345
3346
  environment.QSTASH_CURRENT_SIGNING_KEY && environment.QSTASH_NEXT_SIGNING_KEY
3346
3347
  );
3347
3348
  return {
3348
- qstashClient: new import_qstash11.Client({
3349
+ qstashClient: options?.qstashClient ?? new import_qstash11.Client({
3349
3350
  baseUrl: environment.QSTASH_URL,
3350
3351
  token: environment.QSTASH_TOKEN
3351
3352
  }),
package/svelte.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  SDK_TELEMETRY,
3
3
  serveBase,
4
4
  serveManyBase
5
- } from "./chunk-EHL7SSJF.mjs";
5
+ } from "./chunk-37XOXDLZ.mjs";
6
6
 
7
7
  // platforms/svelte.ts
8
8
  var telemetry = {