@upstash/workflow 0.1.1 → 0.1.2-omit-errors
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 +4 -4
- package/astro.d.mts +9 -0
- package/astro.d.ts +9 -0
- package/astro.js +2160 -0
- package/astro.mjs +18 -0
- package/{chunk-XPMFG3Q4.mjs → chunk-ZPVH5ACW.mjs} +70 -24
- package/cloudflare.d.mts +1 -1
- package/cloudflare.d.ts +1 -1
- package/cloudflare.js +76 -30
- package/cloudflare.mjs +1 -1
- package/h3.d.mts +1 -1
- package/h3.d.ts +1 -1
- package/h3.js +79 -30
- package/h3.mjs +4 -1
- package/hono.d.mts +1 -1
- package/hono.d.ts +1 -1
- package/hono.js +76 -30
- package/hono.mjs +1 -1
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.js +77 -31
- package/index.mjs +1 -1
- package/nextjs.d.mts +1 -1
- package/nextjs.d.ts +1 -1
- package/nextjs.js +76 -30
- package/nextjs.mjs +1 -1
- package/package.json +1 -1
- package/solidjs.d.mts +1 -1
- package/solidjs.d.ts +1 -1
- package/solidjs.js +76 -30
- package/solidjs.mjs +1 -1
- package/svelte.d.mts +1 -1
- package/svelte.d.ts +1 -1
- package/svelte.js +76 -30
- package/svelte.mjs +1 -1
- package/{types-p7sxktVE.d.mts → types-CI-2skYU.d.mts} +5 -4
- package/{types-p7sxktVE.d.ts → types-CI-2skYU.d.ts} +5 -4
package/README.md
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
**Upstash Workflow** lets you write durable, reliable and performant serverless functions. Get delivery guarantees, automatic retries on failure, scheduling and more without managing any infrastructure.
|
|
11
11
|
|
|
12
|
-
See [the documentation](https://upstash.com/docs/
|
|
12
|
+
See [the documentation](https://upstash.com/docs/workflow/getstarted) for more details
|
|
13
13
|
|
|
14
14
|
## Quick Start
|
|
15
15
|
|
|
16
16
|
Here, we will briefly showcase how you can get started with Upstash Workflow.
|
|
17
17
|
|
|
18
|
-
Alternatively, you can check [our quickstarts for different frameworks](https://upstash.com/docs/
|
|
18
|
+
Alternatively, you can check [our quickstarts for different frameworks](https://upstash.com/docs/workflow/quickstarts/platforms), including [Next.js](https://upstash.com/docs/qstash/workflow/quickstarts/vercel-nextjs) and [Cloudflare](https://upstash.com/docs/workflow/quickstarts/cloudflare-workers).
|
|
19
19
|
|
|
20
20
|
### Install
|
|
21
21
|
|
|
@@ -72,11 +72,11 @@ The kinds of steps which are available are:
|
|
|
72
72
|
- `context.waitForEvent`: wait for an event
|
|
73
73
|
- `context.notify`: notify an event to make workflows waiting for the event continue
|
|
74
74
|
|
|
75
|
-
You can [learn more about these methods from our documentation](https://upstash.com/docs/
|
|
75
|
+
You can [learn more about these methods from our documentation](https://upstash.com/docs/workflow/basics/context).
|
|
76
76
|
|
|
77
77
|
### Workflow Client
|
|
78
78
|
|
|
79
|
-
You can use [the Upstash Workflow client](https://upstash.com/docs/
|
|
79
|
+
You can use [the Upstash Workflow client](https://upstash.com/docs/workflow/basics/client) to cancel workflows, notify workflows
|
|
80
80
|
waiting for an event or get the workflows waiting for an event:
|
|
81
81
|
|
|
82
82
|
```ts
|
package/astro.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { APIContext, APIRoute } from 'astro';
|
|
2
|
+
import { b as WorkflowContext, W as WorkflowServeOptions } from './types-CI-2skYU.mjs';
|
|
3
|
+
import '@upstash/qstash';
|
|
4
|
+
|
|
5
|
+
declare function serve<TInitialPayload = unknown>(routeFunction: (workflowContext: WorkflowContext<TInitialPayload>, apiContext: APIContext) => Promise<void>, options?: Omit<WorkflowServeOptions<Response, TInitialPayload>, "onStepFinish">): {
|
|
6
|
+
POST: APIRoute;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { serve };
|
package/astro.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { APIContext, APIRoute } from 'astro';
|
|
2
|
+
import { b as WorkflowContext, W as WorkflowServeOptions } from './types-CI-2skYU.js';
|
|
3
|
+
import '@upstash/qstash';
|
|
4
|
+
|
|
5
|
+
declare function serve<TInitialPayload = unknown>(routeFunction: (workflowContext: WorkflowContext<TInitialPayload>, apiContext: APIContext) => Promise<void>, options?: Omit<WorkflowServeOptions<Response, TInitialPayload>, "onStepFinish">): {
|
|
6
|
+
POST: APIRoute;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { serve };
|