workflow 5.2.2 → 5.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/dist/api.d.ts +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/internal/errors.d.ts +1 -1
- package/dist/internal/errors.d.ts.map +1 -1
- package/dist/internal/errors.js +2 -2
- package/docs/api-reference/workflow/create-hook.mdx +8 -0
- package/docs/api-reference/workflow/fetch.mdx +6 -0
- package/docs/api-reference/workflow-api/get-hook-by-token.mdx +10 -2
- package/docs/api-reference/workflow-api/get-run.mdx +4 -0
- package/docs/api-reference/workflow-api/resume-hook.mdx +58 -2
- package/docs/api-reference/workflow-api/start.mdx +68 -3
- package/docs/api-reference/workflow-errors/hook-conflict-error.mdx +6 -3
- package/docs/api-reference/workflow-errors/in-band-superseded-error.mdx +68 -0
- package/docs/api-reference/workflow-errors/index.mdx +6 -0
- package/docs/api-reference/workflow-errors/meta.json +2 -0
- package/docs/api-reference/workflow-errors/precondition-failed-error.mdx +2 -0
- package/docs/api-reference/workflow-errors/workflow-start-error.mdx +58 -0
- package/docs/api-reference/workflow-errors/workflow-world-error.mdx +12 -1
- package/docs/api-reference/workflow-runtime/world/index.mdx +1 -1
- package/docs/api-reference/workflow-runtime/world/storage.mdx +1 -1
- package/docs/changelog/eager-processing.mdx +2 -0
- package/docs/changelog/index.mdx +1 -0
- package/docs/changelog/lazy-event-creation.md +1 -1
- package/docs/changelog/meta.json +1 -0
- package/docs/changelog/resilient-start.mdx +2 -0
- package/docs/changelog/spec-9.mdx +4019 -0
- package/docs/changelog/turbo-mode.md +4 -0
- package/docs/configuration/cli-and-web-ui.mdx +3 -1
- package/docs/configuration/runtime-tuning.mdx +65 -3
- package/docs/configuration/worlds.mdx +18 -1
- package/docs/cookbook/advanced/child-workflows.mdx +2 -2
- package/docs/cookbook/common-patterns/batching.mdx +3 -1
- package/docs/cookbook/common-patterns/idempotency.mdx +11 -12
- package/docs/errors/fetch-in-workflow.mdx +7 -1
- package/docs/errors/index.mdx +2 -2
- package/docs/errors/max-events-exceeded.mdx +80 -0
- package/docs/errors/replay-timeout.mdx +48 -0
- package/docs/errors/run-expired.mdx +3 -1
- package/docs/foundations/errors-and-retries.mdx +8 -2
- package/docs/foundations/hooks.mdx +3 -1
- package/docs/foundations/idempotency.mdx +190 -60
- package/docs/how-it-works/encryption.mdx +1 -1
- package/docs/how-it-works/event-sourcing.mdx +8 -2
- package/docs/observability/index.mdx +2 -0
- package/docs/observability/retention.mdx +8 -0
- package/docs/whats-new.mdx +4 -2
- package/docs/worlds/building-a-world.mdx +47 -8
- package/docs/worlds/local.mdx +6 -0
- package/docs/worlds/postgres.mdx +230 -129
- package/docs/worlds/upgrading-to-v5.mdx +8 -1
- package/docs/worlds/vercel.mdx +162 -8
- package/package.json +11 -11
package/docs/worlds/vercel.mdx
CHANGED
|
@@ -28,7 +28,7 @@ Vercel automatically:
|
|
|
28
28
|
- Selects the Vercel World backend
|
|
29
29
|
- Configures authentication using OIDC tokens
|
|
30
30
|
- Provisions storage and queuing infrastructure
|
|
31
|
-
- Isolates data per environment (production, preview,
|
|
31
|
+
- Isolates data per environment (production, preview, and any custom environments)
|
|
32
32
|
|
|
33
33
|
<FluidComputeCallout />
|
|
34
34
|
|
|
@@ -69,6 +69,7 @@ Setting `WORKFLOW_TARGET_WORLD=vercel` is not a workaround. The Vercel World nee
|
|
|
69
69
|
For complete details on pricing, usage limits, and included allotments on Vercel, see the official Vercel documentation:
|
|
70
70
|
|
|
71
71
|
- **[Vercel Workflow](https://vercel.com/docs/workflows)**: Pricing details, concepts, and observability for Workflow on Vercel
|
|
72
|
+
- **[Vercel Workflow data retention](https://vercel.com/docs/workflows/retention)**: How long run data is kept, where it is stored, and how to delete it sooner
|
|
72
73
|
- **[Vercel limits](https://vercel.com/docs/limits)**: Platform-wide limits, including Workflow-specific constraints
|
|
73
74
|
- **[Vercel Hobby plan](https://vercel.com/docs/plans/hobby)**: Free-tier included usage for Workflow and other resources
|
|
74
75
|
|
|
@@ -76,11 +77,13 @@ For self-hosted deployments, use the [Postgres World](/worlds/postgres). For loc
|
|
|
76
77
|
|
|
77
78
|
## Per-run limits
|
|
78
79
|
|
|
79
|
-
The Vercel World
|
|
80
|
+
The Vercel World supplies a per-run [event limit](/docs/how-it-works/event-sourcing). Each step adds events to that log, so the event budget also constrains how many steps a run can execute. See [Workflow run limits](https://vercel.com/docs/workflows/pricing#workflow-run-limits) for the published default limits and sizing guidance. A run that exhausts its event budget fails with `MAX_EVENTS_EXCEEDED` and cannot be continued.
|
|
80
81
|
|
|
81
|
-
|
|
82
|
+
On the default runtime, replay cost can grow with the event log. For workflows with many steps or frequent resumes, consider the experimental [QuickJS runtime](/docs/configuration/runtime-tuning#workflow_vm). Set `WORKFLOW_VM=quickjs` in your project's environment variables and redeploy. Only runs started after the change use the new runtime.
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
QuickJS runs are exempt from the default event cap, allowing larger event logs and more steps. They restore workflow state and replay only events recorded since the last snapshot, reducing replay overhead as the log grows. This does not speed up the work inside individual steps or remove payload, storage, and request rate limits. See [max-events-exceeded](/docs/errors/max-events-exceeded) for eligibility and compatibility details.
|
|
85
|
+
|
|
86
|
+
Use [child workflows](/cookbook/advanced/child-workflows) when independent units of work benefit from separate run histories and failure boundaries. To write fewer events, [process multiple items within each step](/cookbook/common-patterns/batching#tips), accounting for retries of the whole group.
|
|
84
87
|
|
|
85
88
|
## Multi-region
|
|
86
89
|
|
|
@@ -128,6 +131,12 @@ const run = await start(myWorkflow, [input], { region: "sfo1" });
|
|
|
128
131
|
- Runs created by 4.x SDKs, including runs that existed before you upgraded, live in `iad1` and are unaffected by an upgrade. There is no migration.
|
|
129
132
|
- **Hook tokens are currently stored in `iad1`** for every run, regardless of the run's region. The token-to-run mapping that powers [`getHookByToken()`](/docs/api-reference/workflow-api/get-hook-by-token) and [`resumeHook()`](/docs/api-reference/workflow-api/resume-hook) lives there so tokens without region information can always be resolved. Hook *payloads* are not affected. A received payload is recorded on the run's event log, which lives in the run's region like all other run data. This token placement may become a project-level setting in the future.
|
|
130
133
|
|
|
134
|
+
## Data retention
|
|
135
|
+
|
|
136
|
+
Retention for the Vercel World is documented in the [Vercel Workflows docs](https://vercel.com/docs/workflows/retention): how long run payloads stay readable and when they're deleted, how long run metadata is kept, where run data is stored, and how to delete run data sooner.
|
|
137
|
+
|
|
138
|
+
To delete a run's payloads as soon as it finishes, start it with [`experimental_retention: 0`](/docs/observability/retention).
|
|
139
|
+
|
|
131
140
|
## Queue consumers other than the Workflow SDK
|
|
132
141
|
|
|
133
142
|
The Vercel World delivers each queue message to the functions subscribed to its topic, not to a fixed path. The Workflow SDK's build integration subscribes the generated flow route to `__wkf_workflow_*` (or `__{namespace}_wkf_workflow_*`). A library that consumes messages of its own on the same World, such as a durable agent harness, uses its own queue prefix and subscribes its own route to that prefix's topics:
|
|
@@ -149,7 +158,7 @@ The route serves `world.createQueueHandler("__agent_wkf_workflow_", handler)`. T
|
|
|
149
158
|
## Limitations
|
|
150
159
|
|
|
151
160
|
- **No run migration**: A run's region is fixed at creation. Existing runs cannot be moved to a different region.
|
|
152
|
-
- **Hook minimum retention**:
|
|
161
|
+
- **Hook minimum retention**: `experimental_minRetention` cannot exceed 30 days, on both [`createHook()`](/docs/api-reference/workflow/create-hook#keep-a-token-unavailable-after-the-run-ends) and [`start({ hook })`](/docs/api-reference/workflow-api/start#prevent-duplicate-starts).
|
|
153
162
|
|
|
154
163
|
## Observability
|
|
155
164
|
|
|
@@ -188,6 +197,143 @@ npx workflow inspect runs \
|
|
|
188
197
|
|
|
189
198
|
Learn more in the [Observability](/docs/observability) documentation.
|
|
190
199
|
|
|
200
|
+
## Connecting from outside a deployment
|
|
201
|
+
|
|
202
|
+
Inside a Vercel deployment there is nothing to authenticate: the platform injects a per-request OIDC token and the Vercel World uses it automatically. A process that is *not* a deployment has no such token — a script on your laptop, a CI job driving end-to-end tests against a preview, a one-off backfill. Those clients authenticate with a **Vercel auth token** instead. Vercel checks that token against your team and project permissions, and attributes the request to the environment you name.
|
|
203
|
+
|
|
204
|
+
<Callout type="warn">
|
|
205
|
+
Do not reuse the `VERCEL_OIDC_TOKEN` that `vercel env pull` writes into
|
|
206
|
+
`.env.local` as your Workflow credential. It is a local artifact of your
|
|
207
|
+
linked project, not a credential for the Workflow API: requests made with it
|
|
208
|
+
are attributed to the environment carried in the token itself, not to the
|
|
209
|
+
`production` or `preview` data you mean to reach. Authenticate with a Vercel
|
|
210
|
+
auth token instead. A pulled OIDC token is still the right thing for
|
|
211
|
+
[bypassing deployment
|
|
212
|
+
protection](https://vercel.com/docs/deployment-protection/methods-to-bypass-deployment-protection/trusted-sources)
|
|
213
|
+
when your script has to fetch a protected preview URL; that is a separate
|
|
214
|
+
credential from the one that talks to the Workflow API.
|
|
215
|
+
</Callout>
|
|
216
|
+
|
|
217
|
+
### Environment variables
|
|
218
|
+
|
|
219
|
+
These four values are what an external client needs. The names are the convention shared by the `workflow` CLI and the web UI:
|
|
220
|
+
|
|
221
|
+
| Variable | Value | Notes |
|
|
222
|
+
| --- | --- | --- |
|
|
223
|
+
| `WORKFLOW_VERCEL_AUTH_TOKEN` | Vercel auth token | Keep it secret. Create one under [account settings → tokens](https://vercel.com/account/tokens), scoped to the team that owns the project. |
|
|
224
|
+
| `WORKFLOW_VERCEL_TEAM` | Vercel team ID (`team_...`) | Required. Set it together with the token and the project ID. |
|
|
225
|
+
| `WORKFLOW_VERCEL_PROJECT` | Vercel project ID (`prj_...`) | Required. Set it together with the token and the team ID. |
|
|
226
|
+
| `WORKFLOW_VERCEL_ENV` | `production`, `preview`, or a custom environment's slug | Defaults to `production`. See [`WORKFLOW_VERCEL_ENV`](#workflow_vercel_env). |
|
|
227
|
+
|
|
228
|
+
Both IDs are in `.vercel/project.json` after `vercel link` — `projectId` is the project, `orgId` the team or user that owns it — or on the project's settings page.
|
|
229
|
+
|
|
230
|
+
Three more are situational:
|
|
231
|
+
|
|
232
|
+
- `VERCEL_DEPLOYMENT_ID` — required to **start** runs, not to read them. See [Starting runs](#starting-runs-from-outside-a-deployment).
|
|
233
|
+
- `WORKFLOW_VERCEL_PROJECT_NAME` — the project slug, used only to build dashboard links.
|
|
234
|
+
- `VERCEL_TOKEN` — a fallback the World reads for the Vercel API calls it makes alongside your Workflow requests (fetching a run's encryption key, resolving `deploymentId: "latest"`). A client that passes `token` explicitly, as below, already covers those calls and does not need it.
|
|
235
|
+
|
|
236
|
+
For a custom environment, set `WORKFLOW_VERCEL_ENV` to the environment's **slug**, not its ID — the slug is what the consuming deployment compares against. The `workflow` CLI's `--env` flag reads the same variable but only accepts `production` or `preview`, so a custom environment is reachable from your own script, not from the CLI.
|
|
237
|
+
|
|
238
|
+
<Callout type="info">
|
|
239
|
+
The Workflow SDK does not read `WORKFLOW_VERCEL_*` from the environment on
|
|
240
|
+
your behalf — the runtime's own `createWorld()` deliberately ignores them, so
|
|
241
|
+
that a stray variable on a deployed project cannot redirect a live
|
|
242
|
+
application. Read them in your own code and pass them to the World factory,
|
|
243
|
+
as below. Setting them on a deployed Vercel project has no effect on runtime
|
|
244
|
+
configuration, and the runtime warns when it sees them there.
|
|
245
|
+
</Callout>
|
|
246
|
+
|
|
247
|
+
### Wiring it up in a script
|
|
248
|
+
|
|
249
|
+
Build the Vercel World with an explicit config and install it with [`setWorld()`](/docs/api-reference/workflow-runtime/set-world) before the first `workflow/api` call:
|
|
250
|
+
|
|
251
|
+
{/*@skip-typecheck: incomplete code sample*/}
|
|
252
|
+
|
|
253
|
+
```typescript title="scripts/start-run.ts" lineNumbers
|
|
254
|
+
import { start } from "workflow/api";
|
|
255
|
+
import { setWorld } from "workflow/runtime";
|
|
256
|
+
import { createWorld } from "@workflow/world-vercel";
|
|
257
|
+
import { myWorkflow } from "../workflows/my-workflow";
|
|
258
|
+
|
|
259
|
+
setWorld(
|
|
260
|
+
createWorld({
|
|
261
|
+
token: process.env.WORKFLOW_VERCEL_AUTH_TOKEN, // [!code highlight]
|
|
262
|
+
projectConfig: {
|
|
263
|
+
projectId: process.env.WORKFLOW_VERCEL_PROJECT, // [!code highlight]
|
|
264
|
+
teamId: process.env.WORKFLOW_VERCEL_TEAM, // [!code highlight]
|
|
265
|
+
environment: process.env.WORKFLOW_VERCEL_ENV, // [!code highlight]
|
|
266
|
+
},
|
|
267
|
+
})
|
|
268
|
+
);
|
|
269
|
+
|
|
270
|
+
const run = await start(myWorkflow, ["input"]);
|
|
271
|
+
console.log(run.runId);
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
Supply `token`, `projectId`, and `teamId` together. Setting the two IDs without a token fails immediately, with a message naming the missing token, rather than surfacing later as an opaque `401`.
|
|
275
|
+
|
|
276
|
+
The same token authorizes the per-run key fetch that decrypts run and step data, so reads come back as values rather than opaque bytes — see [Encryption](/docs/how-it-works/encryption).
|
|
277
|
+
|
|
278
|
+
This is exactly what the `workflow` CLI does under the hood. It resolves the same four values — from `--authToken` / `--project` / `--team` / `--env`, then the `WORKFLOW_VERCEL_*` variables, then `.vercel/project.json` and your `vercel login` credentials — and constructs the World with them. Passing them explicitly is the non-interactive equivalent of being logged in and linked.
|
|
279
|
+
|
|
280
|
+
### Starting runs from outside a deployment
|
|
281
|
+
|
|
282
|
+
[`start()`](/docs/api-reference/workflow-api/start) has to name a deployment, because a run executes the code of the deployment that created it. Inside a deployment that is the current one; outside, there is nothing to infer, so set `VERCEL_DEPLOYMENT_ID` to the deployment whose code should run the workflow:
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
# `vercel inspect` prints the dpl_... ID for a deployment URL
|
|
286
|
+
vercel inspect https://my-app-abc123.vercel.app
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
Reads such as [`getRun()`](/docs/api-reference/workflow-api/get-run) do not need it. `start(..., { deploymentId: "latest" })` does: it resolves the newest deployment sharing that deployment's environment, so it needs one to start from.
|
|
290
|
+
|
|
291
|
+
<Callout type="warn">
|
|
292
|
+
The environment you authenticate as and the deployment you target must
|
|
293
|
+
agree. A client that creates a run in `preview` but points it at a
|
|
294
|
+
production deployment creates a run that never executes: environments are
|
|
295
|
+
isolated from each other, so a deployment refuses work created in a
|
|
296
|
+
different one. If a run stays `pending` and the deployment logs a refusal
|
|
297
|
+
naming two environments, check `WORKFLOW_VERCEL_ENV` against the environment
|
|
298
|
+
of the deployment in `VERCEL_DEPLOYMENT_ID`.
|
|
299
|
+
</Callout>
|
|
300
|
+
|
|
301
|
+
### In CI
|
|
302
|
+
|
|
303
|
+
Wait for the deployment under test, then hand its ID to the test step alongside the four auth variables:
|
|
304
|
+
|
|
305
|
+
```yaml title=".github/workflows/e2e.yml" lineNumbers
|
|
306
|
+
jobs:
|
|
307
|
+
e2e:
|
|
308
|
+
runs-on: ubuntu-latest
|
|
309
|
+
permissions:
|
|
310
|
+
contents: read # check out the repository
|
|
311
|
+
deployments: read # find the deployment to wait for
|
|
312
|
+
statuses: read # read its deployment status and ID
|
|
313
|
+
steps:
|
|
314
|
+
- uses: actions/checkout@v4
|
|
315
|
+
|
|
316
|
+
- name: Wait for the Vercel deployment
|
|
317
|
+
id: deployment
|
|
318
|
+
uses: vercel/wait-for-deployment-action@0e2b0c5c5cce31f1648108aeec56467187aca037
|
|
319
|
+
with:
|
|
320
|
+
project-slug: my-app
|
|
321
|
+
environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }}
|
|
322
|
+
|
|
323
|
+
- name: Run end-to-end tests
|
|
324
|
+
run: pnpm test:e2e
|
|
325
|
+
env:
|
|
326
|
+
WORKFLOW_VERCEL_AUTH_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
|
327
|
+
WORKFLOW_VERCEL_TEAM: team_xxxxxxxxxxxxxxxx
|
|
328
|
+
WORKFLOW_VERCEL_PROJECT: prj_xxxxxxxxxxxxxxxx
|
|
329
|
+
WORKFLOW_VERCEL_ENV: ${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }}
|
|
330
|
+
VERCEL_DEPLOYMENT_ID: ${{ steps.deployment.outputs.deployment-id }}
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
Store the token as an encrypted secret and derive `WORKFLOW_VERCEL_ENV` from the branch, so a pull request run never authenticates as `production`.
|
|
334
|
+
|
|
335
|
+
If the deployment is behind deployment protection, the job also needs a way to reach its URL. Add `id-token: write` to the job's `permissions` and mint a short-lived OIDC token from the runner for the `x-vercel-trusted-oidc-idp-token` header; that credential is for [Trusted Sources](https://vercel.com/docs/deployment-protection/methods-to-bypass-deployment-protection/trusted-sources) only and is separate from the Vercel auth token above.
|
|
336
|
+
|
|
191
337
|
## Testing & compatibility
|
|
192
338
|
|
|
193
339
|
<WorldTestingPerformance worldId="vercel" />
|
|
@@ -202,9 +348,11 @@ Most users never need to set the `WORKFLOW_VERCEL_*` variables below. They are o
|
|
|
202
348
|
|
|
203
349
|
For example, you might set them when running `workflow inspect runs --backend vercel` from CI without an interactive `vercel login`, or when running tests against a specific preview deployment. In normal local development, the CLI infers these values from your `.vercel` directory and Vercel CLI login. In a deployed Vercel function, these variables have no effect on runtime configuration, and the runtime warns if they are set there.
|
|
204
350
|
|
|
351
|
+
For the task-oriented version of this — which variables a local script or CI job needs, and how to hand them to the SDK — see [Connecting from outside a deployment](#connecting-from-outside-a-deployment).
|
|
352
|
+
|
|
205
353
|
### `WORKFLOW_VERCEL_ENV`
|
|
206
354
|
|
|
207
|
-
The Vercel environment to target. Options: `production`, `preview
|
|
355
|
+
The Vercel environment to target. Options: `production`, `preview`, or a custom environment's slug. Default: `production`. See [Environment variables](#environment-variables) for how a custom environment is resolved.
|
|
208
356
|
|
|
209
357
|
### `WORKFLOW_VERCEL_AUTH_TOKEN`
|
|
210
358
|
|
|
@@ -226,10 +374,16 @@ Vercel team ID.
|
|
|
226
374
|
|
|
227
375
|
Custom base URL for the Vercel workflow API proxy. Default: `https://api.vercel.com/v1/workflow`.
|
|
228
376
|
|
|
377
|
+
The Vercel World doesn't follow HTTP redirects on workflow API requests, so point custom URLs at an endpoint that answers directly. A `3xx` response fails the request.
|
|
378
|
+
|
|
229
379
|
### `VERCEL_WORKFLOW_SERVER_URL`
|
|
230
380
|
|
|
231
381
|
Custom workflow-server URL for direct runtime requests, or for the proxy to forward to via `WORKFLOW_VERCEL_BACKEND_URL`. Default: unset; normal deployments should not need this.
|
|
232
382
|
|
|
383
|
+
### `WORKFLOW_VERCEL_EXPERIMENTAL_START_HOOK`
|
|
384
|
+
|
|
385
|
+
Set to `1` (or `true`) to enable [`start({ hook })`](/docs/api-reference/workflow-api/start#prevent-duplicate-starts) on the Vercel World. Off by default; without it, `start({ hook })` throws before it enqueues anything. It needs a backend that supports start Hooks. Set it on the deployment that starts runs and on any deployment those runs target.
|
|
386
|
+
|
|
233
387
|
### `WORKFLOW_SEQUENTIAL_REPLAYS`
|
|
234
388
|
|
|
235
389
|
Set `WORKFLOW_SEQUENTIAL_REPLAYS=1` to guarantee that **at most one orchestrator (flow) invocation runs at a time per workflow run**. This behavior is off by default; without it, the runtime relies on idempotency and the event log to tolerate concurrent flow invocations of the same run.
|
|
@@ -344,7 +498,7 @@ The client splits its own large requests, which needs a Vercel World backend tha
|
|
|
344
498
|
|
|
345
499
|
### Programmatic configuration
|
|
346
500
|
|
|
347
|
-
`createWorld()` accepts explicit API configuration. It does not read `WORKFLOW_VERCEL_*` automatically, so pass the environment values yourself when you want a configured World module
|
|
501
|
+
`createWorld()` accepts explicit API configuration. It does not read `WORKFLOW_VERCEL_*` automatically, so pass the environment values yourself when you want a configured World module. To configure a client at the point of use instead of through `WORKFLOW_TARGET_WORLD`, see [Wiring it up in a script](#wiring-it-up-in-a-script).
|
|
348
502
|
|
|
349
503
|
{/*@skip-typecheck: incomplete code sample*/}
|
|
350
504
|
|
|
@@ -414,6 +568,6 @@ The Vercel World uses Vercel's infrastructure for workflow execution:
|
|
|
414
568
|
|
|
415
569
|
- **Storage**: Workflow data is stored in Vercel's cloud with automatic replication and [end-to-end encryption](/docs/how-it-works/encryption)
|
|
416
570
|
- **Queuing**: Steps are distributed across Vercel Functions through [Vercel Queues](https://vercel.com/docs/queues) with automatic retries and [consumer function security](#consumer-function-security)
|
|
417
|
-
- **Authentication**: OIDC tokens provide secure, automatic authentication
|
|
571
|
+
- **Authentication**: OIDC tokens provide secure, automatic authentication inside deployments; clients outside one authenticate with a [Vercel auth token](#connecting-from-outside-a-deployment)
|
|
418
572
|
|
|
419
573
|
For more details, see the [Vercel Workflow documentation](https://vercel.com/docs/workflows).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Workflow SDK - Build durable, resilient, and observable workflows",
|
|
5
5
|
"main": "dist/typescript-plugin.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -58,19 +58,19 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@workflow/astro": "5.0.
|
|
62
|
-
"@workflow/cli": "5.0.
|
|
63
|
-
"@workflow/core": "5.
|
|
64
|
-
"@workflow/errors": "5.0
|
|
61
|
+
"@workflow/astro": "5.0.7",
|
|
62
|
+
"@workflow/cli": "5.0.7",
|
|
63
|
+
"@workflow/core": "5.3.0",
|
|
64
|
+
"@workflow/errors": "5.1.0",
|
|
65
65
|
"@workflow/typescript-plugin": "5.0.0",
|
|
66
66
|
"@workflow/utils": "5.0.2",
|
|
67
67
|
"ms": "2.1.3",
|
|
68
|
-
"@workflow/next": "5.0.
|
|
69
|
-
"@workflow/nest": "5.1.
|
|
70
|
-
"@workflow/nitro": "5.0.
|
|
71
|
-
"@workflow/nuxt": "5.0.
|
|
72
|
-
"@workflow/sveltekit": "5.0.
|
|
73
|
-
"@workflow/rollup": "5.0.
|
|
68
|
+
"@workflow/next": "5.0.7",
|
|
69
|
+
"@workflow/nest": "5.1.5",
|
|
70
|
+
"@workflow/nitro": "5.0.7",
|
|
71
|
+
"@workflow/nuxt": "5.0.7",
|
|
72
|
+
"@workflow/sveltekit": "5.0.7",
|
|
73
|
+
"@workflow/rollup": "5.0.7"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/ms": "2.1.0",
|