@upstash/workflow 1.2.0 → 1.3.0
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/README.md +10 -0
- package/astro.d.mts +2 -2
- package/astro.d.ts +2 -2
- package/astro.js +31 -5
- package/astro.mjs +1 -1
- package/{chunk-V5ZUHMAF.mjs → chunk-G24J5PCC.mjs} +93 -5
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +31 -5
- package/cloudflare.mjs +1 -1
- package/express.d.mts +2 -2
- package/express.d.ts +2 -2
- package/express.js +31 -5
- package/express.mjs +1 -1
- package/h3.d.mts +2 -2
- package/h3.d.ts +2 -2
- package/h3.js +31 -5
- package/h3.mjs +1 -1
- package/hono.d.mts +2 -2
- package/hono.d.ts +2 -2
- package/hono.js +31 -5
- package/hono.mjs +1 -1
- package/index.d.mts +201 -128
- package/index.d.ts +201 -128
- package/index.js +212 -160
- package/index.mjs +124 -156
- package/nextjs.d.mts +2 -2
- package/nextjs.d.ts +2 -2
- package/nextjs.js +31 -5
- package/nextjs.mjs +1 -1
- package/package.json +1 -1
- package/react-router.d.mts +2 -2
- package/react-router.d.ts +2 -2
- package/react-router.js +31 -5
- package/react-router.mjs +1 -1
- package/{serve-many-C6sa_DxN.d.mts → serve-many-D3D9uE4u.d.mts} +1 -1
- package/{serve-many-B-fe7bh7.d.ts → serve-many-kPOasiyb.d.ts} +1 -1
- package/solidjs.d.mts +1 -1
- package/solidjs.d.ts +1 -1
- package/solidjs.js +31 -5
- package/solidjs.mjs +1 -1
- package/svelte.d.mts +2 -2
- package/svelte.d.ts +2 -2
- package/svelte.js +31 -5
- package/svelte.mjs +1 -1
- package/tanstack.d.mts +2 -2
- package/tanstack.d.ts +2 -2
- package/tanstack.js +31 -5
- package/tanstack.mjs +1 -1
- package/{types-B2S08hRU.d.ts → types-B_E1VAK6.d.mts} +9 -1
- package/{types-B2S08hRU.d.mts → types-B_E1VAK6.d.ts} +9 -1
package/tanstack.mjs
CHANGED
|
@@ -700,7 +700,14 @@ declare class WorkflowContext<TInitialPayload = unknown> {
|
|
|
700
700
|
* ```
|
|
701
701
|
*/
|
|
702
702
|
readonly label?: string;
|
|
703
|
-
|
|
703
|
+
/**
|
|
704
|
+
* Number of times QStash has retried delivering the current request.
|
|
705
|
+
*
|
|
706
|
+
* Sourced from the `Upstash-Retried` header. `0` on the first delivery,
|
|
707
|
+
* `1` on the first retry, `2` on the second, and so on.
|
|
708
|
+
*/
|
|
709
|
+
readonly retried: number;
|
|
710
|
+
constructor({ qstashClient, workflowRunId, workflowRunCreatedAt, headers, steps, url, initialPayload, env, telemetry, invokeCount, label, retried, middlewareManager, }: {
|
|
704
711
|
qstashClient: WorkflowClient;
|
|
705
712
|
workflowRunId: string;
|
|
706
713
|
workflowRunCreatedAt: number;
|
|
@@ -712,6 +719,7 @@ declare class WorkflowContext<TInitialPayload = unknown> {
|
|
|
712
719
|
telemetry?: Telemetry;
|
|
713
720
|
invokeCount?: number;
|
|
714
721
|
label?: string;
|
|
722
|
+
retried?: number;
|
|
715
723
|
middlewareManager?: MiddlewareManager<TInitialPayload>;
|
|
716
724
|
});
|
|
717
725
|
/**
|
|
@@ -700,7 +700,14 @@ declare class WorkflowContext<TInitialPayload = unknown> {
|
|
|
700
700
|
* ```
|
|
701
701
|
*/
|
|
702
702
|
readonly label?: string;
|
|
703
|
-
|
|
703
|
+
/**
|
|
704
|
+
* Number of times QStash has retried delivering the current request.
|
|
705
|
+
*
|
|
706
|
+
* Sourced from the `Upstash-Retried` header. `0` on the first delivery,
|
|
707
|
+
* `1` on the first retry, `2` on the second, and so on.
|
|
708
|
+
*/
|
|
709
|
+
readonly retried: number;
|
|
710
|
+
constructor({ qstashClient, workflowRunId, workflowRunCreatedAt, headers, steps, url, initialPayload, env, telemetry, invokeCount, label, retried, middlewareManager, }: {
|
|
704
711
|
qstashClient: WorkflowClient;
|
|
705
712
|
workflowRunId: string;
|
|
706
713
|
workflowRunCreatedAt: number;
|
|
@@ -712,6 +719,7 @@ declare class WorkflowContext<TInitialPayload = unknown> {
|
|
|
712
719
|
telemetry?: Telemetry;
|
|
713
720
|
invokeCount?: number;
|
|
714
721
|
label?: string;
|
|
722
|
+
retried?: number;
|
|
715
723
|
middlewareManager?: MiddlewareManager<TInitialPayload>;
|
|
716
724
|
});
|
|
717
725
|
/**
|