@upstash/workflow 0.2.22-rc → 0.2.23-rc
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 +39 -0
- package/astro.d.mts +2 -2
- package/astro.d.ts +2 -2
- package/astro.js +302 -130
- package/astro.mjs +1 -1
- package/{chunk-CAQSUCHB.mjs → chunk-KAGTWBLF.mjs} +271 -100
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +302 -130
- package/cloudflare.mjs +1 -1
- package/express.d.mts +2 -2
- package/express.d.ts +2 -2
- package/express.js +304 -131
- package/express.mjs +3 -2
- package/h3.d.mts +2 -2
- package/h3.d.ts +2 -2
- package/h3.js +302 -130
- package/h3.mjs +1 -1
- package/hono.d.mts +2 -2
- package/hono.d.ts +2 -2
- package/hono.js +302 -130
- package/hono.mjs +1 -1
- package/index.d.mts +10 -2
- package/index.d.ts +10 -2
- package/index.js +306 -132
- package/index.mjs +5 -3
- package/nextjs.d.mts +2 -2
- package/nextjs.d.ts +2 -2
- package/nextjs.js +304 -131
- package/nextjs.mjs +3 -2
- package/package.json +1 -1
- package/{serve-many-BNusWYgt.d.mts → serve-many-B5Vbacm6.d.mts} +1 -1
- package/{serve-many-CXqQP3RI.d.ts → serve-many-BCV7INWe.d.ts} +1 -1
- package/solidjs.d.mts +1 -1
- package/solidjs.d.ts +1 -1
- package/solidjs.js +302 -130
- package/solidjs.mjs +1 -1
- package/svelte.d.mts +2 -2
- package/svelte.d.ts +2 -2
- package/svelte.js +302 -130
- package/svelte.mjs +1 -1
- package/tanstack.d.mts +2 -2
- package/tanstack.d.ts +2 -2
- package/tanstack.js +302 -130
- package/tanstack.mjs +1 -1
- package/{types-Q3dM0UlR.d.ts → types-BD06btU6.d.mts} +32 -6
- package/{types-Q3dM0UlR.d.mts → types-BD06btU6.d.ts} +32 -6
package/index.mjs
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
WorkflowError,
|
|
8
8
|
WorkflowLogger,
|
|
9
9
|
WorkflowNonRetryableError,
|
|
10
|
+
WorkflowRetryAfterError,
|
|
10
11
|
WorkflowTool,
|
|
11
12
|
getWorkflowRunId,
|
|
12
13
|
makeGetWaitersRequest,
|
|
@@ -14,7 +15,7 @@ import {
|
|
|
14
15
|
prepareFlowControl,
|
|
15
16
|
serve,
|
|
16
17
|
triggerFirstInvocation
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KAGTWBLF.mjs";
|
|
18
19
|
|
|
19
20
|
// src/client/index.ts
|
|
20
21
|
import { Client as QStashClient } from "@upstash/qstash";
|
|
@@ -257,14 +258,14 @@ var Client = class {
|
|
|
257
258
|
workflowRunId: finalWorkflowRunId,
|
|
258
259
|
retries: option.retries,
|
|
259
260
|
retryDelay: option.retryDelay,
|
|
260
|
-
telemetry: { sdk: SDK_TELEMETRY },
|
|
261
|
+
telemetry: option.disableTelemetry ? void 0 : { sdk: SDK_TELEMETRY },
|
|
261
262
|
flowControl: option.flowControl,
|
|
262
263
|
failureUrl,
|
|
263
264
|
label: option.label
|
|
264
265
|
});
|
|
265
266
|
return {
|
|
266
267
|
workflowContext: context,
|
|
267
|
-
telemetry: { sdk: SDK_TELEMETRY },
|
|
268
|
+
telemetry: option.disableTelemetry ? void 0 : { sdk: SDK_TELEMETRY },
|
|
268
269
|
delay: option.delay,
|
|
269
270
|
notBefore: option.notBefore,
|
|
270
271
|
keepTriggerConfig: option.keepTriggerConfig
|
|
@@ -348,6 +349,7 @@ export {
|
|
|
348
349
|
WorkflowError,
|
|
349
350
|
WorkflowLogger,
|
|
350
351
|
WorkflowNonRetryableError,
|
|
352
|
+
WorkflowRetryAfterError,
|
|
351
353
|
WorkflowTool,
|
|
352
354
|
serve
|
|
353
355
|
};
|
package/nextjs.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
|
|
2
|
-
import { R as RouteFunction,
|
|
3
|
-
import { s as serveManyBase } from './serve-many-
|
|
2
|
+
import { R as RouteFunction, o as PublicServeOptions, z as InvokableWorkflow } from './types-BD06btU6.mjs';
|
|
3
|
+
import { s as serveManyBase } from './serve-many-B5Vbacm6.mjs';
|
|
4
4
|
import '@upstash/qstash';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'ai';
|
package/nextjs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
|
|
2
|
-
import { R as RouteFunction,
|
|
3
|
-
import { s as serveManyBase } from './serve-many-
|
|
2
|
+
import { R as RouteFunction, o as PublicServeOptions, z as InvokableWorkflow } from './types-BD06btU6.js';
|
|
3
|
+
import { s as serveManyBase } from './serve-many-BCV7INWe.js';
|
|
4
4
|
import '@upstash/qstash';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'ai';
|