@upstash/workflow 0.3.0-rc → 1.0.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/h3.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  SDK_TELEMETRY,
3
3
  serveBase,
4
4
  serveManyBase
5
- } from "./chunk-AGYYZKP7.mjs";
5
+ } from "./chunk-5GWDM6XJ.mjs";
6
6
 
7
7
  // node_modules/defu/dist/defu.mjs
8
8
  function isPlainObject(value) {
@@ -348,7 +348,11 @@ var serve = (routeFunction, options) => {
348
348
  body: await readRawBody(event),
349
349
  method: "POST"
350
350
  });
351
- const { handler: serveHandler } = serveBase(routeFunction, telemetry, options);
351
+ const { handler: serveHandler } = serveBase(
352
+ routeFunction,
353
+ telemetry,
354
+ options
355
+ );
352
356
  return await serveHandler(request);
353
357
  });
354
358
  return { handler };
package/hono.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Context } from 'hono';
2
- import { R as RouteFunction, n as PublicServeOptions, y as InvokableWorkflow } from './types-DESkn7K9.mjs';
2
+ import { a as RouteFunction, b as WorkflowServeOptions, x as InvokableWorkflow } from './types-ByzQdZjb.mjs';
3
3
  import { Variables } from 'hono/types';
4
- import { s as serveManyBase } from './serve-many-DEwKPF6H.mjs';
4
+ import { s as serveManyBase } from './serve-many-qpxb-yr-.mjs';
5
5
  import '@upstash/qstash';
6
6
  import 'zod';
7
7
 
@@ -21,7 +21,7 @@ type WorkflowBindings = {
21
21
  * @param options workflow options
22
22
  * @returns
23
23
  */
24
- declare const serve: <TInitialPayload = unknown, TBindings extends WorkflowBindings = WorkflowBindings, TVariables extends Variables = Variables, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: PublicServeOptions<TInitialPayload>) => ((context: Context<{
24
+ declare const serve: <TInitialPayload = unknown, TBindings extends WorkflowBindings = WorkflowBindings, TVariables extends Variables = Variables, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: WorkflowServeOptions<TInitialPayload, TResult>) => ((context: Context<{
25
25
  Bindings: TBindings;
26
26
  Variables: TVariables;
27
27
  }>) => Promise<Response>);
package/hono.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Context } from 'hono';
2
- import { R as RouteFunction, n as PublicServeOptions, y as InvokableWorkflow } from './types-DESkn7K9.js';
2
+ import { a as RouteFunction, b as WorkflowServeOptions, x as InvokableWorkflow } from './types-ByzQdZjb.js';
3
3
  import { Variables } from 'hono/types';
4
- import { s as serveManyBase } from './serve-many-DVtHRxeg.js';
4
+ import { s as serveManyBase } from './serve-many-CFlNO2Iq.js';
5
5
  import '@upstash/qstash';
6
6
  import 'zod';
7
7
 
@@ -21,7 +21,7 @@ type WorkflowBindings = {
21
21
  * @param options workflow options
22
22
  * @returns
23
23
  */
24
- declare const serve: <TInitialPayload = unknown, TBindings extends WorkflowBindings = WorkflowBindings, TVariables extends Variables = Variables, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: PublicServeOptions<TInitialPayload>) => ((context: Context<{
24
+ declare const serve: <TInitialPayload = unknown, TBindings extends WorkflowBindings = WorkflowBindings, TVariables extends Variables = Variables, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: WorkflowServeOptions<TInitialPayload, TResult>) => ((context: Context<{
25
25
  Bindings: TBindings;
26
26
  Variables: TVariables;
27
27
  }>) => Promise<Response>);