workflow 5.1.0 → 5.2.1

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.
@@ -40,6 +40,7 @@ No workflow-specific configuration is required. As soon as a tracer provider and
40
40
  | `workflow.start <name>` | internal | `start()` is called in your application code |
41
41
  | `workflow.execute <name>` | consumer (root) | a queue delivery invokes the workflow; replay, orchestration, and inline steps run under it |
42
42
  | `step.execute <name>` | internal (inline) / consumer + root (queue-delivered) | a step function executes |
43
+ | `workflow.lifecycle.onRunCompleted` / `workflow.lifecycle.onRunFailed` | internal | registered lifecycle handlers observe a persisted terminal transition; includes parameter hydration, handler execution, and the failure-cause stream drain |
43
44
  | `http <method>` | client | the SDK calls the workflow backend (event reads/writes) |
44
45
  | `workflow.stream.write` | client | a stream chunk (or the stream close) is flushed to the backend |
45
46
  | `workflow.stream.flush` | client | a buffered batch of stream writes settles; back-dated to the batch's first `write()`, so its duration is the app-perceived batch latency (buffer dwell + RPC) |
@@ -52,6 +53,8 @@ No workflow-specific configuration is required. As soon as a tracer provider and
52
53
 
53
54
  Stream spans are emitted by the SDK's world backend on the client that writes or reads the stream, and (like all SDK spans) are no-ops when no OpenTelemetry SDK is registered. The `workflow.stream.read` span only appears once the first non-empty chunk arrives.
54
55
 
56
+ [Lifecycle hook](/docs/observability/lifecycle-hooks) spans carry `workflow.run.id` and `workflow.name`. Caught handler, hydration, and stream-operation failures emit `workflow.lifecycle.failure` events with a `phase` and exception details. The span may still have OK status because reporting failures are isolated from workflow execution; inspect its failure events. A retained stream lock extends the span's duration through the drain, so follow the [stream cleanup guidance](/docs/observability/lifecycle-hooks#stream-lifetime).
57
+
55
58
  ## Key attributes
56
59
 
57
60
  | Attribute | Description |
@@ -0,0 +1,187 @@
1
+ ---
2
+ title: Performance
3
+ description: How we measure the Workflow SDK runtime's performance, the metrics we track, and the latest results.
4
+ type: reference
5
+ summary: The benchmarks we run on the Workflow SDK runtime, how each one is measured, and the latest results.
6
+ related:
7
+ - /docs/whats-new
8
+ - /docs/how-it-works/event-sourcing
9
+ - /docs/foundations/hooks
10
+ - /docs/foundations/streaming
11
+ ---
12
+
13
+ We benchmark the Workflow SDK runtime on Vercel at each point where a workflow waits on it: starting a run, moving from one step to the next, fanning out, resuming from a hook, and delivering a stream. This page explains what each benchmark measures and how, and then shows the [latest results](#latest-results), which compare a new release with an earlier one.
14
+
15
+ ## What we measure
16
+
17
+ Each benchmark starts a clock at one line of code and stops it at another. The work inside a step is not counted, so the numbers measure the runtime itself. Choose a metric below, then play or scrub through a run to see when its clock runs.
18
+
19
+ <PerformanceExplainer />
20
+
21
+ ### Time to first step (TTFS)
22
+
23
+ How long it takes from your app calling [`start()`](/docs/api-reference/workflow-api/start) until the first line of the workflow's first step runs. This covers creating and queuing the run, running the workflow code up to its first step, and starting that step. It is measured on a five-step workflow. See [Steps and long runs](#steps-and-long-runs) for the latest results.
24
+
25
+ ### Step-to-step overhead (STSO)
26
+
27
+ How long it takes from one step finishing until the next step starts: recording the step's result, resuming the workflow, and starting the next step. It is measured on the same five-step workflow, and at steps 1 to 20, 101 to 120, and 1,001 to 1,020 of a 1,020-step workflow, which shows whether the overhead grows as the run's [event log](/docs/how-it-works/event-sourcing) grows. See [Steps and long runs](#steps-and-long-runs) for the latest results.
28
+
29
+ ### Fan-out (TTFS, TTLS, join)
30
+
31
+ A workflow starts 64 one-step branches at once with `Promise.all`. The runtime queues the branches in batches, so they start close together and in no fixed order. The first branch (TTFS) and the slowest branch to start, or time to last step (TTLS), are timed from `start()` until that branch's first line runs. The join is timed from the slowest branch finishing until the code after `Promise.all` runs. See [Fan-out](#fan-out) for the latest results.
32
+
33
+ ### Time to resume (TTR)
34
+
35
+ A workflow creates a [hook](/docs/foundations/hooks) and waits on it for 1 s, the way an agent waits for a person's approval, and then your app calls `resumeHook()`. Time to resume runs from that call until the first line of the workflow's next step runs. Each run resumes five times. See [Resuming a workflow](#resuming-a-workflow) for the latest results.
36
+
37
+ ### Chunk trip time (CTT)
38
+
39
+ One step replays a recorded AI agent's token stream, 2,593 chunks over 52.4 s, in real time to a [namespaced stream](/docs/foundations/streaming#namespaced-streams) with [`getWritable()`](/docs/api-reference/workflow/get-writable), and a second step in the same run reads it with `getRun(runId).getReadable()`. Chunk trip time runs from the writer writing a chunk until the reader receives it. The same benchmark records how long the whole response takes to reach the reader and how many runs had a chunk delayed by over 1 s. See [Streams](#streams) for the latest results.
40
+
41
+ ## Methodology
42
+
43
+ - **Platform**: Each version runs the same benchmark app on Vercel production in `iad1`, against the managed [Vercel World](/worlds/vercel), on its own deployment. The versions are measured at the same time. Before measuring, each deployment runs two short workflows and one fan-out that are not counted.
44
+ - **Workload**: Every step takes 1 KB of JSON in and out and does 100 ms of simulated work, which the overhead measurements exclude.
45
+ - **Runs**: Each version runs every benchmark several times, and each result pools the samples from all of its runs. The run counts are listed with the latest results.
46
+ - **Percentiles**: Each percentile pools every sample across a version's runs and uses the nearest-rank method. Half of the samples are at or below the p50 (the median), three quarters at or below the p75, and all but the slowest 1% at or below the p99. With 100 or fewer samples, a p99 is the slowest sample.
47
+
48
+ ### Limits
49
+
50
+ - The benchmarks run in one region, against one World. Other regions, Worlds, and workloads will see different numbers.
51
+ - The versions share the platform while they are measured. Any exception is noted with the results.
52
+ - The explainer and the animations are schematic: they show where each clock starts and stops, not real timings.
53
+
54
+ ## Latest results
55
+
56
+ <Callout type="info">
57
+ {/* generated:performance latest */}
58
+
59
+ **Latest results:** Workflow SDK v5.2.0 compared with v4.8.12, measured October 8, 2026. We run these benchmarks regularly and publish updated results here.
60
+
61
+ {/* end generated:performance latest */}
62
+ </Callout>
63
+
64
+ {/* generated:performance headline */}
65
+
66
+ At p75, v5.2.0 is as fast as or faster than v4.8.12 on every benchmark. The largest change is in long runs: 1,000 steps into a run, v5.2.0 adds 70 ms between steps where v4.8.12 adds 1,748 ms.
67
+
68
+ {/* end generated:performance headline */}
69
+
70
+ {/* generated:performance caveats */}
71
+
72
+ Both versions ran at the same time and shared the platform. The exception is the 1,020-step benchmark on v4: one of its five runs ran alongside v5.2.0's, and the other four ran on their own afterwards, the same day with the same configuration. Each version ran the sequential workflow 10 times, the agent stream 10 times, the fan-out 25 times, the resume benchmark 25 times, and the 1,020-step run 5 times.
73
+
74
+ {/* end generated:performance caveats */}
75
+
76
+ <Image
77
+ srcLight="/performance/v5.2.0/01-overview-light.png"
78
+ srcDark="/performance/v5.2.0/01-overview-dark.png"
79
+ alt="Dot plot of how many times faster the newer version is than the older one at p75 on each benchmark, on a log scale. The full values are in the results table below."
80
+ width={2016}
81
+ height={1444}
82
+ />
83
+
84
+ ### Steps and long runs
85
+
86
+ {/* generated:performance sequential */}
87
+
88
+ At p75, a five-step workflow reaches its first step in 172 ms on v5.2.0 and 418 ms on v4.8.12, and v5.2.0 adds 109 ms between steps where v4.8.12 adds 618 ms.
89
+
90
+ {/* end generated:performance sequential */}
91
+
92
+ {/* generated:performance long-run */}
93
+
94
+ Through a 1,020-step run, step-to-step overhead on v4.8.12 grows from 622 ms in steps 1 to 20 to 1,748 ms in steps 1,001 to 1,020, at p75. On v5.2.0 it is 110 ms and 70 ms. The median run takes 21.0 min on v4.8.12 and 3.0 min on v5.2.0.
95
+
96
+ {/* end generated:performance long-run */}
97
+
98
+ <Image
99
+ srcLight="/performance/v5.2.0/02-sequential-light.png"
100
+ srcDark="/performance/v5.2.0/02-sequential-dark.png"
101
+ alt="Three charts comparing the two versions: time to first step and step-to-step overhead for a five-step workflow, step-to-step overhead through a 1,020-step run at p75, and the time to finish all 1,020 steps. The full values are in the results table below."
102
+ width={2016}
103
+ height={2328}
104
+ />
105
+
106
+ ### Fan-out
107
+
108
+ {/* generated:performance fanout */}
109
+
110
+ At p75, v5.2.0 starts the first of 64 branches in 360 ms against 478 ms on v4.8.12, then starts the slowest branch at about the same time (996 ms against 972 ms) and joins in 448 ms against 464 ms.
111
+
112
+ {/* end generated:performance fanout */}
113
+
114
+ <Image
115
+ srcLight="/performance/v5.2.0/03-fanout-light.png"
116
+ srcDark="/performance/v5.2.0/03-fanout-dark.png"
117
+ alt="Dumbbell chart of a 64-branch fan-out at p75, comparing the two versions for the first branch to start, the slowest branch to start, and the join. The full values are in the results table below."
118
+ width={2016}
119
+ height={804}
120
+ />
121
+
122
+ ### Resuming a workflow
123
+
124
+ {/* generated:performance resume */}
125
+
126
+ At p75, a workflow waiting on a hook resumes in 425 ms on v5.2.0 against 699 ms on v4.8.12.
127
+
128
+ {/* end generated:performance resume */}
129
+
130
+ <Image
131
+ srcLight="/performance/v5.2.0/04-resume-light.png"
132
+ srcDark="/performance/v5.2.0/04-resume-dark.png"
133
+ alt="Dumbbell chart of time to resume after 1 s idle at p50 and p75, comparing the two versions. The full values are in the results table below."
134
+ width={2016}
135
+ height={700}
136
+ />
137
+
138
+ ### Streams
139
+
140
+ {/* generated:performance streams */}
141
+
142
+ The agent produced its 2,593-chunk response over 52.4 s. On v4.8.12 the writer step manages about 12 chunks per second, so the response takes 226.1 s to reach the reader. v5.2.0 writes streams over a WebSocket by default, keeps up at about 49 chunks per second, and delivers the response in 53.5 s.
143
+
144
+ At p75, a chunk reaches the reader in 102 ms on v5.2.0 against 172 ms on v4.8.12. v5.2.0 had a chunk delayed by over 1 s in 0 of 10 runs, against 6 of 10 on v4.8.12.
145
+
146
+ {/* end generated:performance streams */}
147
+
148
+ On the Vercel World, [`WORKFLOW_STREAMS_TRANSPORT`](/docs/configuration/worlds#workflow_streams_transport) sets the transport for stream writes.
149
+
150
+ <Image
151
+ srcLight="/performance/v5.2.0/05-streams-light.png"
152
+ srcDark="/performance/v5.2.0/05-streams-dark.png"
153
+ alt="Three charts of a replayed agent stream comparing the two versions: the time to deliver the whole response against the recording's length, chunk trip time at p50 and p75, and the number of runs with a chunk delayed by over 1 s. The full values are in the results table below."
154
+ width={2016}
155
+ height={1628}
156
+ />
157
+
158
+ ### All results
159
+
160
+ Every measured value from the latest results. Percentiles follow the [methodology](#methodology) above.
161
+
162
+ {/* generated:performance table */}
163
+
164
+ | Metric | v4.8.12 | v5.2.0 | Change | Samples per version |
165
+ | --- | --: | --: | --: | --: |
166
+ | **Sequential workflow, 5 steps, 10 runs** | | | | |
167
+ | Time to first step, p75 | 418 ms | 172 ms | 2.4× faster | 10 runs |
168
+ | Time to first step, slowest run | 451 ms | 253 ms | 1.8× faster | 10 runs |
169
+ | Step-to-step overhead, p75 | 618 ms | 109 ms | 5.7× faster | 40 gaps |
170
+ | Step-to-step overhead, p99 | 777 ms | 327 ms | 2.4× faster | 40 gaps |
171
+ | **Long run, 1,020 steps, 5 runs** | | | | |
172
+ | Step overhead, steps 1 to 20, p75 | 622 ms | 110 ms | 5.7× faster | 95 gaps |
173
+ | Step overhead, steps 101 to 120, p75 | 719 ms | 74 ms | 9.7× faster | 95 gaps |
174
+ | Step overhead, steps 1,001 to 1,020, p75 | 1,748 ms | 70 ms | 25.0× faster | 95 gaps |
175
+ | Whole run, median wall time | 21.0 min | 3.0 min | 7.0× faster | 5 runs |
176
+ | **Fan-out, 64 parallel branches, 25 runs** | | | | |
177
+ | First branch starts, p75 | 478 ms | 360 ms | 1.3× faster | 25 runs |
178
+ | Slowest branch to start, p75 | 972 ms | 996 ms | No change | 25 runs |
179
+ | Join, p75 | 464 ms | 448 ms | No change | 25 runs |
180
+ | **Resume after 1 s idle, 25 runs of 5 resumes** | | | | |
181
+ | Time to resume, p50 | 619 ms | 383 ms | 1.6× faster | 125 resumes |
182
+ | Time to resume, p75 | 699 ms | 425 ms | 1.6× faster | 125 resumes |
183
+ | **Agent stream, 52.4 s recording, 10 runs** | | | | |
184
+ | Delivery, median wall time | 226.1 s | 53.5 s | 4.2× faster | 10 runs |
185
+ | Chunk trip time, p75 | 172 ms | 102 ms | 1.7× faster | 25,930 chunks |
186
+
187
+ {/* end generated:performance table */}
@@ -27,6 +27,15 @@ npx skills add https://github.com/vercel/workflow --skill migrating-workflow-v4-
27
27
 
28
28
  ### Faster and cheaper runs
29
29
 
30
+ <Image
31
+ srcLight="/performance/v5.2.0/01-overview-light.png"
32
+ srcDark="/performance/v5.2.0/01-overview-dark.png"
33
+ alt="Dot plot of how many times faster v5.2.0 is than v4.8.12 at p75 on each benchmark, on a log scale. Every benchmark is faster or unchanged."
34
+ caption="At p75, v5.2.0 is as fast as or faster than v4.8.12 on every benchmark."
35
+ width={2016}
36
+ height={1444}
37
+ />
38
+
30
39
  The largest change in v5 has no API surface: the runtime does far less work per unit of progress. The time between calling `start()` and your first step body executing is now less than half of what it was in v4. This is made possible by many smaller optimizations:
31
40
 
32
41
  **A workflow invocation now does as much as it can in a single pass.** In 4.x, progress was largely deferred to the queue: an invocation would execute a step, hand back to the queue, and let a fresh invocation pick up the next one. v5 creates and executes several steps inline per suspension, in parallel, and only uses the queue for a wait, a hook, or when the function approaches its timeout.
@@ -49,6 +58,28 @@ On [Vercel Workflows](/worlds/vercel) these benefits compound to reduce compute
49
58
 
50
59
  How much work fits in one invocation now scales with the function's own limit: the inline budget is derived from the runtime deadline the World reports, so raising `maxDuration` widens it without configuration. See [`WORKFLOW_V2_TIMEOUT_MS`](/docs/configuration/runtime-tuning#workflow_v2_timeout_ms).
51
60
 
61
+ Benchmarks on Vercel compare v5.2.0 with v4.8.12:
62
+
63
+ <Image
64
+ srcLight="/performance/v5.2.0/02-sequential-light.png"
65
+ srcDark="/performance/v5.2.0/02-sequential-dark.png"
66
+ alt="Three charts: v5.2.0 reaches the first step and moves between steps sooner than v4.8.12; through a 1,020-step run, step-to-step overhead on v4.8.12 grows toward the end while v5.2.0 stays flat; and v5.2.0 finishes all 1,020 steps several times sooner."
67
+ caption="Step-to-step overhead stays flat through a 1,020-step run on v5.2.0, while on v4.8.12 it grows with the event log."
68
+ width={2016}
69
+ height={2328}
70
+ />
71
+
72
+ <Image
73
+ srcLight="/performance/v5.2.0/05-streams-light.png"
74
+ srcDark="/performance/v5.2.0/05-streams-dark.png"
75
+ alt="Three charts of a replayed agent stream: v5.2.0 delivers the response in about the recording's length while v4.8.12 takes about four times as long, v5.2.0 has a shorter chunk trip time, and no v5.2.0 run had a chunk delayed by over 1 s."
76
+ caption="v5.2.0 writes streams over a WebSocket by default and keeps pace with a recorded agent stream that v4.8.12 falls behind."
77
+ width={2016}
78
+ height={1628}
79
+ />
80
+
81
+ See [Performance](/docs/performance) for how these benchmarks are measured, the full results, and their limits.
82
+
52
83
  ### Multi-region support
53
84
 
54
85
  Workflow run IDs are now tagged with the compute region they were created in, or the region specified when calling `start()`. Worlds can use this to pin execution to that region.
@@ -105,21 +136,21 @@ See [Attributes](/docs/observability/attributes).
105
136
 
106
137
  ### Richer serialization
107
138
 
108
- Everything that crosses a workflow/step boundary is serialized, and v5 widens what survives the trip with its identity intact. Errors, including your own classes and built-ins like `TypeError`, keep their class and `cause` chain through `WorkflowRunFailedError.cause`:
139
+ Everything that crosses a workflow/step boundary is serialized. In v5, built-in errors such as `TypeError` preserve their type, message, stack, and `cause` chain through `WorkflowRunFailedError.cause`. Plain user-defined Error subclasses preserve their name but revive as generic errors unless they implement [custom serialization](/docs/foundations/serialization). Bundled module copies can still have distinct constructors, so use SDK error `.is()` helpers instead of `instanceof`:
109
140
 
110
141
  ```typescript lineNumbers
142
+ import { FatalError } from "workflow";
111
143
  import { WorkflowRunFailedError } from "workflow/errors";
112
144
  import { getRun } from "workflow/api";
113
- declare class PaymentDeclinedError extends Error {} // @setup
114
145
 
115
146
  try {
116
147
  await getRun(runId).returnValue;
117
148
  } catch (error) {
118
149
  if (
119
- error instanceof WorkflowRunFailedError &&
120
- error.cause instanceof PaymentDeclinedError // [!code highlight]
150
+ WorkflowRunFailedError.is(error) &&
151
+ FatalError.is(error.cause) // [!code highlight]
121
152
  ) {
122
- // your class, not a flattened generic Error
153
+ console.error(error.errorCode, error.cause.message);
123
154
  }
124
155
  }
125
156
  ```
@@ -152,9 +183,9 @@ All three first-party Worlds now implement it: Vercel accepts up to 30 days, and
152
183
  - **Support for more frameworks.** [React Router](/docs/getting-started/react-router) (v7 and v8, via Nitro) and [NestJS](/docs/getting-started/nestjs) are now supported.
153
184
  - **A misrouted delivery no longer fails a run.** Runs are pinned to the deployment that created them. A delivery that arrives at a different deployment is now re-routed to the pinned one with backoff instead of failing, and only gives up with the new [`DEPLOYMENT_MISMATCH`](/docs/errors/deployment-mismatch) error once the recovery budget is spent. Nothing executes on the wrong deployment while this happens. In 4.x the same situation surfaced as an unexplained decryption failure.
154
185
  - **A run cannot be forked across environments.** `start()` stamps the environment it was called from onto the queue message, and a deployment refuses a delivery whose run was created in a different environment. Previously a preview client and a production deployment could each hold half of one run ID.
155
- - **An experimental QuickJS VM engine.** Set [`WORKFLOW_VM=quickjs`](/docs/configuration/runtime-tuning#workflow_vm) to run workflow functions in a QuickJS VM compiled to WebAssembly instead of `node:vm`, for platforms that do not provide `node:vm`. Replay semantics are identical, but the available globals are not: check the differences before switching an existing deployment.
186
+ - **An experimental QuickJS VM engine.** Set [`WORKFLOW_VM=quickjs`](/docs/configuration/runtime-tuning#workflow_vm) to run workflow functions in a QuickJS VM compiled to WebAssembly instead of `node:vm`, for platforms that do not provide `node:vm`. Replay semantics are identical, but the available globals are not: check the differences before switching an existing deployment. By default, an encrypted QuickJS run that passes 1,000 events resumes from a VM-memory snapshot instead of replaying its full event log (see [`WORKFLOW_SNAPSHOT_THRESHOLD`](/docs/configuration/runtime-tuning#workflow_snapshot_threshold)).
156
187
  - **Experimental dynamic workflows.** Pass workflow source as a string to `start()` to run orchestration assembled after deployment over steps already deployed with your app. The code is stored with the run (encrypted on Vercel), so replays always execute the code the run started with. Off unless the deployment sets `WORKFLOW_EXPERIMENTAL_DYNAMIC_WORKFLOWS=1`. See [Dynamic Workflows](/docs/advanced/dynamic-workflows).
157
- - **A WebSocket transport for event writes** on the Vercel World, which ships a run's events over one socket instead of one HTTP request each. It is the default; set [`WORKFLOW_EVENTS_TRANSPORT=http`](/worlds/vercel#workflow_events_transport) to opt out. Tracing is unaffected: each write still emits an `http POST` client span, synthesized around the frame, with the transport on `workflow.events.transport`.
188
+ - **A WebSocket transport for event and stream writes** on the Vercel World, which sends a run's event writes and stream writes over a socket instead of one HTTP request each. It is the default; set [`WORKFLOW_EVENTS_TRANSPORT=http`](/worlds/vercel#workflow_events_transport) or [`WORKFLOW_STREAMS_TRANSPORT=http`](/worlds/vercel#workflow_streams_transport) to opt out. Tracing is unaffected: each write still emits an `http POST` client span, synthesized around the frame, with the transport on `workflow.events.transport`.
158
189
  - **`await run.returnValue` waits instead of polling.** Reading a run's result long-polls the World until the run reaches a terminal status, rather than asking again on a fixed interval. A result is observed as soon as it exists, and an idle wait costs one open request instead of a request per tick. Worlds that do not implement the long poll keep the interval.
159
190
  - **An event arriving mid-replay no longer fails the run.** A hook resume or step completion landing while a replay is in flight used to be able to fail it with [`CORRUPTED_EVENT_LOG`](/docs/errors/corrupted-event-log). Writes now come back with the events the replay had not seen, and the event is held for whichever part of the workflow awaits it. A run only fails when the log is genuinely missing a position.
160
191
 
@@ -42,6 +42,7 @@ interface WorldCapabilities {
42
42
  active: boolean;
43
43
  };
44
44
  maxConcurrency?: boolean;
45
+ inBandFence?: boolean;
45
46
  hookForceClaim?: boolean;
46
47
  dynamicWorkflowCode?: boolean;
47
48
  }
@@ -62,7 +63,7 @@ interface World extends Storage, Queue, Streamer {
62
63
 
63
64
  `specVersion` is required. See [Declaring the spec version](#declaring-the-spec-version).
64
65
 
65
- The optional `capabilities` object advertises additional behavior, and every capability **fails closed**. A missing member means "unsupported," and the runtime keeps its conservative behavior. Set `hookRetention.active` to `true` only when the World implements hook token retention. Set `maxConcurrency` only when the World's queue supports `maxConcurrency`-limited consumption, which `WORKFLOW_SEQUENTIAL_REPLAYS=1` uses. Set `hookForceClaim` only when the World implements [hook token takeover](/worlds/upgrading-to-v5#new-optional-surface). Without it, `createHook({ experimental_force: true })` fails the workflow when it registers the hook. Set `dynamicWorkflowCode` only when the World persists `dynamicWorkflowCode` from `run_created` (and from a `run_started` that creates the run), echoes it on the created run, and returns it from `runs.get` with `resolveData: 'all'`. Without it, `start()` refuses [dynamic workflows](/docs/advanced/dynamic-workflows). The code is sent inline unless the World also implements `uploadDynamicWorkflowCode` for large definitions.
66
+ The optional `capabilities` object advertises additional behavior, and every capability **fails closed**. A missing member means "unsupported," and the runtime keeps its conservative behavior. Set `hookRetention.active` to `true` only when the World implements hook token retention. Set `maxConcurrency` only when the World's queue supports `maxConcurrency`-limited consumption, which `WORKFLOW_SEQUENTIAL_REPLAYS=1` uses. Set `hookForceClaim` only when the World implements [hook token takeover](/worlds/upgrading-to-v5#new-optional-surface). Without it, `createHook({ experimental_force: true })` fails the workflow when it registers the hook. Set `dynamicWorkflowCode` only when the World persists `dynamicWorkflowCode` from `run_created` (and from a `run_started` that creates the run), echoes it on the created run, and returns it from `runs.get` with `resolveData: 'all'`. Without it, `start()` refuses [dynamic workflows](/docs/advanced/dynamic-workflows). The code is sent inline unless the World also implements `uploadDynamicWorkflowCode` for large definitions. Set `inBandFence` only when the World implements the [in-band writer fence](#optional-the-in-band-writer-fence).
66
67
 
67
68
  [Slot-numbered event IDs](#event-id-allocation) are a contract requirement rather than a capability, so there is no flag or fallback path.
68
69
 
@@ -251,6 +252,31 @@ A rejection may include the events the caller was missing as `{ events, cursor }
251
252
 
252
253
  The runtime handles a rejection wherever it arrives. It restarts the replay in-process from a corrected log and invokes a fresh replay after spending that budget. It never retries the rejected write as-is because a replay working from a corrected log derives different events. This behavior requires no declaration or capability.
253
254
 
255
+ ### Optional: the in-band writer fence
256
+
257
+ The in-band writer fence keeps a run to one orchestrator writer when two orchestrator invocations of the same run overlap, for example a delivery that outlives its queue lease while a redelivery of the run is already running. A write made by the run's orchestrator is **in-band** (`params.inBand: true`). Everything else is **out-of-band**: a background step's own events, `hook_received` from `resumeHook()` and webhooks, `run_cancelled` from `cancel()`, and `attr_set` from `setAttributes()` outside the workflow.
258
+
259
+ The fence is optional, and the runtime does not send `inBand` yet, so a World without it stays fully supported. Declare `capabilities.inBandFence: true` when you implement all of the following:
260
+
261
+ - **Two counters per run.** Next to whatever allocates event positions, keep `seq`, the highest position allocated to any write, and `seqInBand`, the number of positions allocated to in-band writes. `run_created` counts as in-band and is never fenced itself, so a new run holds `seq = 1, seqInBand = 1` (`IN_BAND_SEQ_AT_RUN_CREATION` from `@workflow/world`).
262
+ - **List snapshot, or counters on a refusal.** On every `events.list()` page of a slot-numbered run, return `snapshot: { seq, seqInBand }`, read before the listing. A full load, followed to `hasMore: false`, covers every position up to the first page's `seq`. A fenced writer takes its count from that first page, never from counting events, because a count cannot tell which positions were in-band. If your store cannot read the counters on a list, you may list no snapshot, as long as every refusal carries both counters, read together (see below).
263
+ - **Fenced in-band creates.** An in-band write carries `expectedSeqInBand`. Accept it only when that equals `seqInBand`, and advance both counters by the positions it allocates in the same atomic operation as the allocation. On a mismatch, throw `InBandSupersededError` from `@workflow/errors` (HTTP 412, `in-band-superseded`) and write and allocate nothing, so a refusal never leaves a hole. A batch is one fenced allocation for the whole block.
264
+ - **Fence first.** Decide the fence before anything else the write does. A stale writer must touch no entity row. If the write updates entity state as well as appending, make the check, the update and the append one atomic operation (in Postgres, one transaction that locks the run's counter row first).
265
+ - **Missing count.** Answer an in-band write without `expectedSeqInBand` with a 400 (`WorkflowWorldError` with `status: 400`).
266
+ - **Out-of-band creates** (`inBand: false` or absent) allocate unconditionally, move `seq`, and never move `seqInBand`. The fence never refuses them.
267
+
268
+ `world-local`, `world-postgres` and `world-vercel` declare the fence. `world-vercel`'s backend fences in-band writes on every run with an event sequencer (spec version 7 and later). On an older run it answers an in-band write with a 400 (`WorkflowWorldError`, `code: 'in-band-fence-unsupported'`) rather than writing it unfenced, so a writer decides whether to fence from the run's spec version. Its list responses carry the snapshot only where the backend reports one, so a writer there can find none.
269
+
270
+ A writer that finds no snapshot takes its count from a refusal:
271
+
272
+ 1. **Get the counters.** On a run it has just created, before any other in-band write, the count is `IN_BAND_SEQ_AT_RUN_CREATION`. Otherwise, send an in-band write with a count no run holds, such as `Number.MAX_SAFE_INTEGER`. The World refuses it and writes and allocates nothing, and the `InBandSupersededError` carries `seq` and `seqInBand`, read together after the fence refused the write.
273
+ 2. **Load up to `seq`.** List the log until it holds position `seq` itself. A position can be allocated before its event is committed, so a listing that ends below `seq` is retried, not trusted.
274
+ 3. **Write at `seqInBand`.** That log holds every in-band write `seqInBand` counts, so the writer sends its next in-band write with `expectedSeqInBand: seqInBand`, and advances by the positions each accepted write allocated.
275
+
276
+ A writer that was refused while writing stops writing from the log it held; only a writer that loads the log again, as above, takes up the refusal's counters.
277
+
278
+ The conformance suite in [`packages/world/src/test-support/in-band-fence-conformance.ts`](https://github.com/vercel/workflow/blob/main/packages/world/src/test-support/in-band-fence-conformance.ts) checks each rule against a World's `events` storage, and `createTestSuite()` from `@workflow/world-testing` checks the counters (from the snapshot, or from a refusal where the World lists none) and a stale in-band write end to end when the World declares the capability.
279
+
254
280
  ## Queue interface
255
281
 
256
282
  The Queue interface handles asynchronous workflow execution, including queued step work:
@@ -277,11 +303,48 @@ interface Queue {
277
303
 
278
304
  createQueueHandler(
279
305
  queueNamePrefix: QueuePrefix,
280
- handler: (message: unknown, meta: { attempt: number; queueName: ValidQueueName; messageId: MessageId }) => Promise<unknown>
306
+ handler: (
307
+ message: unknown,
308
+ meta: {
309
+ attempt: number;
310
+ deliveryCount?: number;
311
+ createdAt?: Date;
312
+ queueName: ValidQueueName;
313
+ messageId: MessageId;
314
+ }
315
+ ) => Promise<unknown>
281
316
  ): (req: Request) => Promise<Response>;
282
317
  }
283
318
  ```
284
319
 
320
+ `meta.messageId` should be stable across redeliveries of one message. The optional `meta.deliveryCount` is 1 on a message's first delivery and increments on every redelivery; leave it `undefined` when your queue cannot say. The optional `meta.createdAt` is when the message was first enqueued, unchanged across its redeliveries.
321
+
322
+ ### Queue prefixes and delivery routes
323
+
324
+ A queue name is a prefix followed by an id. The Workflow SDK uses the prefix `__wkf_workflow_`, or `__{namespace}_wkf_workflow_` when a queue namespace is set. A library that keeps its own runs in a World and consumes its own messages, such as a durable agent harness, uses a namespace of its own (`__agent_wkf_workflow_session`) so that its messages never reach the Workflow SDK's handler, and the Workflow SDK's never reach it.
325
+
326
+ Only the Workflow SDK's handler is mounted at `/.well-known/workflow/v1/flow` (`WORKFLOW_FLOW_ROUTE` from `@workflow/world`). A World decides where every other prefix's messages go:
327
+
328
+ - **By subscription.** A World whose transport pushes each message to whatever subscribed to its topic, like the Vercel World, needs nothing more: the app subscribes the consumer's route to that prefix's topics.
329
+ - **By path.** A World that POSTs deliveries to the app itself should implement the optional `registerRoute(prefix, path)`: messages of `prefix` go to `path` on the app's base URL, and a prefix without a route goes to the flow route. Read the route at each delivery attempt, so a route registered after a message was enqueued takes its next attempt.
330
+ - **In process.** A World whose queue runs inside the app's process can also implement the optional `registerHandler(prefix, handler)`, which delivers a prefix's messages to `handler(request)` without HTTP. The request is the one a route serving `createQueueHandler(prefix, ...)` would receive, and it takes precedence over a route for the same prefix.
331
+
332
+ {/* @skip-typecheck - interface definition, not runnable code */}
333
+ ```typescript
334
+ interface Queue {
335
+ // ...
336
+ registerHandler?(
337
+ prefix: QueuePrefix,
338
+ handler: (req: Request) => Promise<Response>
339
+ ): void;
340
+ registerRoute?(prefix: QueuePrefix, path: string): void;
341
+ }
342
+ ```
343
+
344
+ Keep a message's full queue name from `queue()` to its delivery, including its prefix. A World that delivers by path should also have `createQueueHandler(prefix, ...)` refuse a message outside `prefix` (the Local World answers 400), so a misrouted message is retried rather than run by the wrong consumer.
345
+
346
+ If your World re-enqueues active runs when it starts, send each run back to the queue namespace it recorded at creation, `executionContext.queueNamespace` (read it with `getRunQueueNamespace()` from `@workflow/world`), rather than to the starting process's own namespace. `reenqueueActiveRuns()` from `@workflow/world` does this. The Workflow SDK's `start()` records the namespace when one is set, and a library that creates its own runs records its own.
347
+
285
348
  ### Invocation delivery
286
349
 
287
350
  Implement the optional `invoke` method to send an input to a workflow runner and
@@ -117,6 +117,34 @@ WORKFLOW_TARGET_WORLD="./my-world.ts"
117
117
 
118
118
  `createWorld()` also accepts `tag`, which scopes local storage files to a suffix. It is mainly used by test harnesses that share one `.workflow-data` directory.
119
119
 
120
+ ### Queue consumers other than the Workflow SDK
121
+
122
+ The Local World delivers queue messages over HTTP to the app, and by default every message goes to the Workflow SDK's flow route, `/.well-known/workflow/v1/flow`. A library that consumes messages of its own on the same World, such as a durable agent harness, uses its own queue prefix (`__{namespace}_wkf_workflow_`) and tells the World where those go:
123
+
124
+ ```typescript title="lib/agent-queue.ts" lineNumbers
125
+ import { getWorld } from "workflow/runtime";
126
+
127
+ const PREFIX = "__agent_wkf_workflow_";
128
+
129
+ export async function registerAgentQueue(
130
+ handler: (req: Request) => Promise<Response>
131
+ ) {
132
+ const world = await getWorld();
133
+ // Over HTTP: deliveries for this prefix go to the app's own route.
134
+ world.registerRoute?.(PREFIX, "/api/agent/queue");
135
+ // In this process: deliveries skip HTTP entirely.
136
+ world.registerHandler?.(PREFIX, handler);
137
+ }
138
+ ```
139
+
140
+ `registerHandler()` takes precedence over `registerRoute()` for the same prefix. A prefix with neither still goes to the flow route, which answers `400` for a prefix it does not handle, and the Local World retries the message every five seconds, so a route registered later takes the next attempt. When the World restarts, `start()` re-enqueues each active run to the queue namespace it recorded at creation (`executionContext.queueNamespace`), so register the route or handler before calling `start()`.
141
+
142
+ ## Data directory layout
143
+
144
+ Each run's event and step files are stored in their own directory (`events/<runId>/`, `steps/<runId>/`). Data written by `@workflow/world-local` releases before 5.1.0 uses a flat layout and is not migrated: when the World starts on a data directory that holds only flat-layout files, it logs a warning, deletes the directory, and starts with an empty one. The CLI and web UI only read the data directory and never delete it. Older releases see no events or steps in the new layout, so clear `.workflow-data` by hand before downgrading.
145
+
146
+ A directory that mixes both layouts, or holds `.json` files in `events/` or `steps/` that the World did not write, is never deleted: starting fails with a `DataDirLayoutError` that lists the files.
147
+
120
148
  ## Limitations
121
149
 
122
150
  The Local World is designed for development, not production:
@@ -65,7 +65,7 @@ bunx --package @workflow/world-postgres bootstrap
65
65
  ```
66
66
 
67
67
  <Callout type="info">
68
- The migration is idempotent and can safely be run as a post-deployment lifecycle script.
68
+ The migration is idempotent and can safely be run as a post-deployment lifecycle script. Run it again when you upgrade `@workflow/world-postgres`: a release can add migrations that the upgraded World needs before it handles workflows.
69
69
  </Callout>
70
70
 
71
71
  ## Starting the World
@@ -320,14 +320,18 @@ export default createWorld({
320
320
  });
321
321
  ```
322
322
 
323
- Options passed to `createWorld()` take precedence over the environment variables above. Export the World from a module and point `WORKFLOW_TARGET_WORLD` at that module:
323
+ You can also pass an existing `pg.Pool` as `pool` instead of a connection string. On a pool it creates, the World logs and drops an idle connection that the database closes, for example on a restart. A pool you pass needs its own `pool.on("error", ...)` listener. Without one, Node.js throws the error as an uncaught exception and the process exits.
324
324
 
325
- You can also pass an existing `pg.Pool` as `pool` instead of a connection string.
325
+ Options passed to `createWorld()` take precedence over the environment variables above. Export the World from a module and point `WORKFLOW_TARGET_WORLD` at that module:
326
326
 
327
327
  ```bash title=".env"
328
328
  WORKFLOW_TARGET_WORLD="./my-world.ts"
329
329
  ```
330
330
 
331
+ ### Queue consumers other than the Workflow SDK
332
+
333
+ The worker delivers every job over HTTP, and by default to the Workflow SDK's flow route, `/.well-known/workflow/v1/flow`. A library that consumes messages of its own on the same World, such as a durable agent harness, uses its own queue prefix (`__{namespace}_wkf_workflow_`) and registers where those go: `world.registerRoute(prefix, "/api/agent/queue")` to deliver them to its own route, or `world.registerHandler(prefix, handler)` to deliver them inside the process that took the job, without HTTP. A job keeps the prefix it was enqueued under and the route its producer had registered, so a worker in another process delivers it to the same place. Register before calling `start()`, which re-enqueues each active run to the queue namespace it recorded at creation (`executionContext.queueNamespace`).
334
+
331
335
  ### Application-managed shutdown
332
336
 
333
337
  Graphile Worker responds automatically when the application is asked to shut down. If your application or framework already coordinates a broader shutdown sequence, set `WORKFLOW_POSTGRES_APPLICATION_MANAGED_SHUTDOWN=1` when selecting the package directly with `WORKFLOW_TARGET_WORLD`, or set `applicationManagedShutdown: true` in a programmatic World. Use the application's normal shutdown hook. This prevents Graphile Worker's default handler from terminating the process as soon as its queue stops. The hook must handle cleanup errors and await resources in this order:
@@ -344,7 +348,7 @@ The Postgres World uses PostgreSQL as a durable backend:
344
348
 
345
349
  - **Storage**: Workflow runs, events, steps, and hooks are stored in PostgreSQL tables.
346
350
  - **Job queue**: [graphile-worker](https://github.com/graphile/worker) handles reliable job processing with retries.
347
- - **Streaming**: PostgreSQL NOTIFY/LISTEN enables real-time event distribution.
351
+ - **Streaming**: PostgreSQL NOTIFY/LISTEN enables real-time event distribution. If the database drops the `LISTEN` connection, the World reconnects every second and re-reads persisted chunks for open stream readers, so readers don't miss chunks written during the outage.
348
352
 
349
353
  This architecture ensures workflows survive application restarts with all state reliably persisted. For implementation details, see the [source code](https://github.com/vercel/workflow/tree/main/packages/world-postgres).
350
354
 
@@ -361,6 +365,8 @@ The other routes under `/.well-known/workflow/v1/` differ:
361
365
  - `webhook/:token`, created by [`createWebhook()`](/docs/api-reference/workflow/create-webhook), is authorized by the token in the URL and nothing else. Use [`createHook()`](/docs/api-reference/workflow/create-hook) behind your own authenticated route and [`resumeHook()`](/docs/api-reference/workflow-api/resume-hook) when you need more than that.
362
366
  - `manifest.json` responds with `404` unless the app was built with `WORKFLOW_PUBLIC_MANIFEST=1`. That variable is read at build time, so unsetting it in the runtime environment of an already-built deployment does not withdraw the manifest. Leave it unset outside of testing, because the manifest lists your workflow and step names.
363
367
 
368
+ A queue consumer that registered its own route with `registerRoute()` receives deliveries the same way, so protect that route like the flow route.
369
+
364
370
  ### Bringing your own auth
365
371
 
366
372
  Workflow does not prescribe an auth mechanism for self-hosted Worlds, so restrict the flow route at the network edge rather than inside the application:
@@ -128,6 +128,24 @@ const run = await start(myWorkflow, [input], { region: "sfo1" });
128
128
  - 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
129
  - **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
130
 
131
+ ## Queue consumers other than the Workflow SDK
132
+
133
+ 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:
134
+
135
+ ```json title="vercel.json"
136
+ {
137
+ "functions": {
138
+ "app/api/agent/queue/route.ts": {
139
+ "experimentalTriggers": [
140
+ { "type": "queue/v2beta", "topic": "__agent_wkf_workflow_*" }
141
+ ]
142
+ }
143
+ }
144
+ }
145
+ ```
146
+
147
+ The route serves `world.createQueueHandler("__agent_wkf_workflow_", handler)`. Topic names replace characters other than letters, digits, `-` and `_` with `-`. The Vercel World has no `registerRoute()` or `registerHandler()`: a message reaches a function only through a subscription declared at deploy time. Every subscribed function receives its own copy of a message and runs it, whatever prefix its handler was created with, so subscribe each route only to its own prefix's topics.
148
+
131
149
  ## Limitations
132
150
 
133
151
  - **No run migration**: A run's region is fixed at creation. Existing runs cannot be moved to a different region.
@@ -242,15 +260,23 @@ Maximum stream chunks written in one Vercel World request. Larger batches are sp
242
260
 
243
261
  ### `WORKFLOW_STREAMS_TRANSPORT`
244
262
 
245
- Experimental stream-write transport capability. Default: `http`. Set `WORKFLOW_STREAMS_TRANSPORT=ws` to attempt `workflow-stream-ws/v1`. The server authoritatively accepts or declines every upgrade; a decline goes directly to HTTP for that writer lifetime. Reads remain HTTP and demand-driven.
263
+ Stream writes upgrade to a WebSocket (`workflow-stream-ws/v1`) instead of one HTTP request per write group. Default: `ws`.
264
+
265
+ Set `WORKFLOW_STREAMS_TRANSPORT=http` to opt out. That value is matched case-insensitively and ignoring surrounding whitespace; any other value, including unset, empty, or `ws`, uses the WebSocket. Stream reads always use HTTP.
246
266
 
247
- This setting does not own tenant rollout policy and does not infer server support from package versions. HTTP remains the compatibility path. The protocol route (`/websockets/v1`) is versioned independently from REST v2/v4 and persisted workflow `specVersion` values.
267
+ The setting is ignored when the World is configured with `projectConfig` and routes through the `api-workflow` proxy, which does not forward a WebSocket upgrade, so stream writes stay on HTTP.
248
268
 
249
- Writes and close requests execute serially. The first operation waits up to 250 ms for an opted-in socket to open; this is an implementation-level measurement knob, not protocol semantics. If the budget expires, or the upgrade fails or is declined before acceptance, the writer uses HTTP without racing the same operation over both transports. After the socket accepts a write, a missing acknowledgement has an unknown outcome: the writer fails rather than replaying the write over HTTP and risking a duplicate append. A throttled (429) write or close did not apply, so the writer retries it after the server's `Retry-After`, as the HTTP writer does, on the socket if it stays open (or its replacement, after a drain) and otherwise over HTTP. Past 30 seconds of cumulative wait, the write moves to HTTP, whose own 429 retry applies. A close that fails with a 5xx is retried over HTTP, since close is idempotent.
269
+ The client only offers the upgrade. The server accepts or declines each one, and a writer whose upgrade is declined or fails writes over HTTP for the rest of its lifetime. This setting does not decide which tenants may upgrade and does not infer server support from package versions. The protocol route (`/websockets/v1`) is versioned independently from REST v2/v4 and persisted workflow `specVersion` values.
270
+
271
+ A writer's first write group always goes over HTTP, and so does its second. The socket starts opening in the background once the second group's request is sent, and later groups keep going over HTTP until it opens, so no write waits for the upgrade. A writer that closes after one or two groups never uses the socket. If the socket has not opened within 10 seconds, or the upgrade fails or is declined, the writer stays on HTTP.
272
+
273
+ Writes and close requests execute serially, so a write never overtakes an earlier one on the other transport. After the socket accepts a write, a missing acknowledgement has an unknown outcome: the writer fails rather than replaying the write over HTTP and risking a duplicate append. A throttled (429) write or close did not apply, so the writer retries it after the server's `Retry-After`, as the HTTP writer does, on the socket if it stays open (or its replacement, after a drain) and otherwise over HTTP. Past 30 seconds of cumulative wait, the write moves to HTTP, whose own 429 retry applies. A close that fails with a 5xx is retried over HTTP, since close is idempotent.
250
274
 
251
275
  Once a released writer's writes drain, its socket closes without closing the shared stream, and later writes through that same handle go over HTTP. Writers acquired with `getWritable()` inside a step release their socket when the step completes. External `getRun(runId).getWritable()` handles release it on the first `releaseLock()` after pending writes drain, so hold the writer lock for the whole burst to keep writing over the socket.
252
276
 
253
- Before routine authentication expiry or server max duration, the server sends a v1 `drain` control. The client stops sending, lets an already-admitted request receive its reply, and reconnects after the server closes with code 1001. Authentication drains re-resolve a fresh bearer. A request that was sent but receives no reply before close still has an unknown outcome and is never replayed.
277
+ Before routine authentication expiry or server max duration, the server sends a v1 `drain` control. The client stops sending, lets an already-admitted request receive its reply, and reconnects after the server closes with code 1001. If the new socket is not open within 250 ms, the writer continues over HTTP. Authentication drains re-resolve a fresh bearer. A request that was sent but receives no reply before close still has an unknown outcome and is never replayed.
278
+
279
+ The server sends WebSocket pings to keep an idle socket open, and the client must answer them. The `ws` library the Vercel World uses answers pings automatically, so there is nothing to configure.
254
280
 
255
281
  Each stream WebSocket message is at most [`WORKFLOW_WS_MAX_MESSAGE_BYTES`](#workflow_ws_max_message_bytes) bytes. A write group larger than the limit is sent as several ordered write requests. A single chunk too large for one message is written over HTTP instead, as are the rest of its writer's writes.
256
282
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workflow",
3
- "version": "5.1.0",
3
+ "version": "5.2.1",
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.2",
62
- "@workflow/cli": "5.0.2",
63
- "@workflow/core": "5.1.0",
64
- "@workflow/errors": "5.0.2",
61
+ "@workflow/astro": "5.0.4",
62
+ "@workflow/cli": "5.0.4",
63
+ "@workflow/core": "5.2.1",
64
+ "@workflow/errors": "5.0.4",
65
65
  "@workflow/typescript-plugin": "5.0.0",
66
- "@workflow/utils": "5.0.1",
66
+ "@workflow/utils": "5.0.2",
67
67
  "ms": "2.1.3",
68
- "@workflow/next": "5.0.2",
69
- "@workflow/nest": "5.1.0",
70
- "@workflow/nitro": "5.0.2",
71
- "@workflow/nuxt": "5.0.2",
72
- "@workflow/sveltekit": "5.0.2",
73
- "@workflow/rollup": "5.0.2"
68
+ "@workflow/next": "5.0.4",
69
+ "@workflow/nest": "5.1.2",
70
+ "@workflow/nitro": "5.0.4",
71
+ "@workflow/nuxt": "5.0.4",
72
+ "@workflow/sveltekit": "5.0.4",
73
+ "@workflow/rollup": "5.0.4"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/ms": "2.1.0",