diff --git a/.changeset/pre.json b/.changeset/pre.json index 1cbee5ec18..13967091af 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -67,6 +67,7 @@ "builders-discovery-fixes", "bump-undici-7-26", "bundle-aliased-project-local-helpers", + "byte-stream-wire-framing", "calm-events-guard", "ci-runtime-fast-paths", "clever-adults-ask", @@ -117,12 +118,14 @@ "fix-next-version-resolution", "fix-observability-getworld-import", "fix-provider-tool-identity", + "fix-step-vs-wait-race-eager-wait", "fix-step-vs-wait-race", "fix-stream-get-runid", "fix-tarballs-build", "fix-tools-to-model-tools", "fix-turbopack-content-condition-deferred", "fix-vite-step-source-maps-e2e", + "fix-world-local-hook-self-conflict", "fix-world-local-step-created-race", "fix-world-postgres-events-uniqueness", "fix-world-vercel-request-timeout", @@ -136,6 +139,7 @@ "guard-step-consumer-events", "healthcheck-coreversion", "hook-conflict-web-reviver", + "hook-get-conflict", "hook-sleep-replay-ordering", "ignore-generated-manifest", "inline-step-registration", @@ -151,6 +155,7 @@ "moody-rivers-play", "narrow-step-bundling", "narrow-trace-detail-pane", + "native-attribute-events", "neat-runs-serialize", "nest-cjs-ast-rewrite", "next-diagnostics-dist", @@ -222,6 +227,7 @@ "tanstack-start-workbench", "terminal-run-event-replay-main", "test-promise-race-prefix-determinism", + "timeline-queued-connector", "tired-pigs-hug", "tired-spiders-rhyme", "trace-nav-tooltips", diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index 78b54376ff..e1444bc186 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -1,5 +1,12 @@ # @workflow/ai +## 5.0.0-beta.9 + +### Patch Changes + +- Updated dependencies [[`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784), [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - workflow@5.0.0-beta.15 + ## 5.0.0-beta.8 ### Patch Changes diff --git a/packages/ai/package.json b/packages/ai/package.json index abef96ec17..8d1203c59c 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/ai", - "version": "5.0.0-beta.8", + "version": "5.0.0-beta.9", "description": "Workflow SDK compatible helper library for the AI SDK", "type": "module", "main": "dist/index.js", diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 8cef87cd78..1ee0ebffc4 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,14 @@ # @workflow/astro +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies []: + - @workflow/builders@5.0.0-beta.15 + - @workflow/rollup@5.0.0-beta.15 + - @workflow/vite@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 53796f031b..a2aba94aba 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/astro", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Astro integration for Workflow SDK", "type": "module", "main": "dist/index.js", diff --git a/packages/builders/CHANGELOG.md b/packages/builders/CHANGELOG.md index d33b2bd2a5..8bd824d138 100644 --- a/packages/builders/CHANGELOG.md +++ b/packages/builders/CHANGELOG.md @@ -1,5 +1,13 @@ # @workflow/builders +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies [[`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784), [`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2), [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/core@5.0.0-beta.15 + - @workflow/errors@5.0.0-beta.7 + ## 5.0.0-beta.14 ### Minor Changes diff --git a/packages/builders/package.json b/packages/builders/package.json index a119fa4167..b179d6f1a7 100644 --- a/packages/builders/package.json +++ b/packages/builders/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/builders", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Shared builder infrastructure for Workflow SDK", "type": "module", "main": "./dist/index.js", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index f9ffc1626b..7a400c2d3d 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,18 @@ # @workflow/cli +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies [[`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784), [`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2), [`f2a7bde`](https://github.com/vercel/workflow/commit/f2a7bdeb0abcf8a5d48c33a35b4b15aeca78cddf), [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/core@5.0.0-beta.15 + - @workflow/world-local@5.0.0-beta.16 + - @workflow/world@5.0.0-beta.9 + - @workflow/world-vercel@5.0.0-beta.14 + - @workflow/builders@5.0.0-beta.15 + - @workflow/web@5.0.0-beta.15 + - @workflow/errors@5.0.0-beta.7 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index d487af7664..c07bc07f66 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/cli", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Command-line interface for Workflow SDK", "type": "module", "bin": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index e7c5a2c6ca..408dbdd2c7 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,25 @@ # @workflow/core +## 5.0.0-beta.15 + +### Minor Changes + +- [#1853](https://github.com/vercel/workflow/pull/1853) [`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Add opt-in wire-level framing for byte streams (`type: 'bytes'`) so consumers can identify chunk boundaries — a prerequisite for transparent auto-reconnect. The framing decision is gated on a new `framedByteStreams` capability and recorded per-stream in the serialized ref (`framing: 'framed-v1'`); legacy raw streams continue to work unchanged. + +- [#2373](https://github.com/vercel/workflow/pull/2373) [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632) Thanks [@pranaygp](https://github.com/pranaygp)! - Replace `hook.hasConflict` (a `Promise` property) with `hook.getConflict()`, a method returning a promise that suspends the workflow to commit hook registration and resolves with the conflicting `Run` when another active hook owns the token (or `null` once the hook is registered), without waiting for hook payload data. Code using `await hook.hasConflict` should migrate to `const conflict = await hook.getConflict()` and branch on `conflict !== null`. + +- [#2226](https://github.com/vercel/workflow/pull/2226) [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0) Thanks [@pranaygp](https://github.com/pranaygp)! - Allow passing initial run attributes through `start()`, and speed up workflow-level `setAttribute` calls by using native events for recording attributes. + +### Patch Changes + +- [#1925](https://github.com/vercel/workflow/pull/1925) [`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2) Thanks [@VaguelySerious](https://github.com/VaguelySerious)! - V2 suspension processing: unify wait + step queue dispatch into a single parallel batch. The runtime now queues every pending operation (non-inline steps + wait timer) in one `Promise.all` and then inline-executes one owned step (if any). The asymmetric `{ timeoutSeconds }` return contract for waits is dropped from suspension processing; waits become normal queue continuations with `delaySeconds`, deduplicated per wait so repeated suspension passes don't accumulate delayed messages. Continuation delays are clamped to 23h (VQS's message-retention bound) with longer waits chained across hop-keyed messages, so multi-day `sleep()`s work on every world. This restores inline step execution for `Promise.race(step, sleep)` workflows without any of the carve-outs the prior fix needed: even when the inline step blocks the handler, the wait continuation fires in parallel and drives the next replay. As part of the same change, `world-local`'s queue now honors `delaySeconds` (matches `world-vercel` / `world-postgres`), and its `close()` aborts pending delayed deliveries and retry sleeps so dev-server/test shutdown isn't held open by wait timers. + +- Updated dependencies [[`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2), [`f2a7bde`](https://github.com/vercel/workflow/commit/f2a7bdeb0abcf8a5d48c33a35b4b15aeca78cddf), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/world-local@5.0.0-beta.16 + - @workflow/world@5.0.0-beta.9 + - @workflow/world-vercel@5.0.0-beta.14 + - @workflow/errors@5.0.0-beta.7 + ## 5.0.0-beta.14 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index 0de4f6d3cc..ef9b2e41da 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/core", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Core runtime and engine for Workflow SDK", "type": "module", "main": "dist/index.js", diff --git a/packages/nest/CHANGELOG.md b/packages/nest/CHANGELOG.md index d222442f3c..7e2a3dc76a 100644 --- a/packages/nest/CHANGELOG.md +++ b/packages/nest/CHANGELOG.md @@ -1,5 +1,12 @@ # @workflow/nest +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies []: + - @workflow/builders@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/nest/package.json b/packages/nest/package.json index cc76fa3524..e3ed36d7d1 100644 --- a/packages/nest/package.json +++ b/packages/nest/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/nest", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "NestJS integration for Workflow SDK", "type": "module", "main": "dist/index.js", diff --git a/packages/next/CHANGELOG.md b/packages/next/CHANGELOG.md index b2d8924a25..4faca9c38e 100644 --- a/packages/next/CHANGELOG.md +++ b/packages/next/CHANGELOG.md @@ -1,5 +1,13 @@ # @workflow/next +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies [[`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784), [`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2), [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/core@5.0.0-beta.15 + - @workflow/builders@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/next/package.json b/packages/next/package.json index 3eab8ffc38..3b50bd4987 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/next", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Next.js integration for Workflow SDK", "type": "commonjs", "main": "dist/index.js", diff --git a/packages/nitro/CHANGELOG.md b/packages/nitro/CHANGELOG.md index bfff919137..f3cb33ce1c 100644 --- a/packages/nitro/CHANGELOG.md +++ b/packages/nitro/CHANGELOG.md @@ -1,5 +1,16 @@ # @workflow/nitro +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies [[`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784), [`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2), [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/core@5.0.0-beta.15 + - @workflow/builders@5.0.0-beta.15 + - @workflow/web@5.0.0-beta.15 + - @workflow/rollup@5.0.0-beta.15 + - @workflow/vite@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/nitro/package.json b/packages/nitro/package.json index 03098425f1..8938aa482b 100644 --- a/packages/nitro/package.json +++ b/packages/nitro/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/nitro", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Nitro integration for Workflow SDK", "type": "module", "main": "dist/index.js", diff --git a/packages/nuxt/CHANGELOG.md b/packages/nuxt/CHANGELOG.md index 6c7f89e08a..1e73361475 100644 --- a/packages/nuxt/CHANGELOG.md +++ b/packages/nuxt/CHANGELOG.md @@ -1,5 +1,12 @@ # @workflow/nuxt +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies []: + - @workflow/nitro@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index cc877e1d38..e496b2f6ee 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/nuxt", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Nuxt integration for Workflow SDK", "license": "Apache-2.0", "type": "module", diff --git a/packages/rollup/CHANGELOG.md b/packages/rollup/CHANGELOG.md index 95a3008e49..318b86e28b 100644 --- a/packages/rollup/CHANGELOG.md +++ b/packages/rollup/CHANGELOG.md @@ -1,5 +1,12 @@ # @workflow/rollup +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies []: + - @workflow/builders@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/rollup/package.json b/packages/rollup/package.json index fdd062b98b..63d21ee42f 100644 --- a/packages/rollup/package.json +++ b/packages/rollup/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/rollup", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Rollup plugin for Workflow SDK", "type": "module", "main": "dist/index.js", diff --git a/packages/sveltekit/CHANGELOG.md b/packages/sveltekit/CHANGELOG.md index f38a4761b2..a516ff726a 100644 --- a/packages/sveltekit/CHANGELOG.md +++ b/packages/sveltekit/CHANGELOG.md @@ -1,5 +1,14 @@ # @workflow/sveltekit +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies []: + - @workflow/builders@5.0.0-beta.15 + - @workflow/rollup@5.0.0-beta.15 + - @workflow/vite@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/sveltekit/package.json b/packages/sveltekit/package.json index 7eb862a905..0e643d9c28 100644 --- a/packages/sveltekit/package.json +++ b/packages/sveltekit/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/sveltekit", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "SvelteKit integration for Workflow SDK", "type": "module", "main": "dist/index.js", diff --git a/packages/vite/CHANGELOG.md b/packages/vite/CHANGELOG.md index b6a214bb9b..f7a5c50592 100644 --- a/packages/vite/CHANGELOG.md +++ b/packages/vite/CHANGELOG.md @@ -1,5 +1,12 @@ # @workflow/vite +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies []: + - @workflow/builders@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/vite/package.json b/packages/vite/package.json index 6628ec8a75..9a61e3b220 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -1,7 +1,7 @@ { "name": "@workflow/vite", "description": "Vite plugin for Workflow SDK", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "type": "module", "main": "dist/index.js", "files": [ diff --git a/packages/vitest/CHANGELOG.md b/packages/vitest/CHANGELOG.md index 4370ca5d4f..95a1223ccc 100644 --- a/packages/vitest/CHANGELOG.md +++ b/packages/vitest/CHANGELOG.md @@ -1,5 +1,16 @@ # @workflow/vitest +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies [[`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784), [`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2), [`f2a7bde`](https://github.com/vercel/workflow/commit/f2a7bdeb0abcf8a5d48c33a35b4b15aeca78cddf), [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/core@5.0.0-beta.15 + - @workflow/world-local@5.0.0-beta.16 + - @workflow/world@5.0.0-beta.9 + - @workflow/builders@5.0.0-beta.15 + - @workflow/rollup@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/vitest/package.json b/packages/vitest/package.json index fbf0b05bee..b9463d9bc5 100644 --- a/packages/vitest/package.json +++ b/packages/vitest/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/vitest", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Vitest plugin for testing Workflow SDK workflows", "type": "module", "main": "./dist/index.js", diff --git a/packages/web-shared/CHANGELOG.md b/packages/web-shared/CHANGELOG.md index 2a471ec742..4a2088fe29 100644 --- a/packages/web-shared/CHANGELOG.md +++ b/packages/web-shared/CHANGELOG.md @@ -1,5 +1,15 @@ # @workflow/web-shared +## 5.0.0-beta.15 + +### Patch Changes + +- [#2381](https://github.com/vercel/workflow/pull/2381) [`8262c2d`](https://github.com/vercel/workflow/commit/8262c2d292670c0d836a1e040c09355ff93832e8) Thanks [@mitul-s](https://github.com/mitul-s)! - Render queued span time in the trace timeline as a lead-in connector into the active bar instead of a filled gray box. + +- Updated dependencies [[`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784), [`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2), [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/core@5.0.0-beta.15 + - @workflow/world@5.0.0-beta.9 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/web-shared/package.json b/packages/web-shared/package.json index f1e01fef02..41f5632c85 100644 --- a/packages/web-shared/package.json +++ b/packages/web-shared/package.json @@ -1,7 +1,7 @@ { "name": "@workflow/web-shared", "description": "Shared components for Workflow Observability UI", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "private": false, "files": [ "dist", diff --git a/packages/web/CHANGELOG.md b/packages/web/CHANGELOG.md index 6c22d28879..5f44d07d71 100644 --- a/packages/web/CHANGELOG.md +++ b/packages/web/CHANGELOG.md @@ -1,5 +1,7 @@ # @workflow/web +## 5.0.0-beta.15 + ## 5.0.0-beta.14 ## 5.0.0-beta.13 diff --git a/packages/web/package.json b/packages/web/package.json index 9687b9b724..c5b43448bc 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,7 +1,7 @@ { "name": "@workflow/web", "description": "Workflow Observability UI", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "type": "module", "private": false, "files": [ diff --git a/packages/workflow/CHANGELOG.md b/packages/workflow/CHANGELOG.md index e35ad7f95b..f9720ff4b9 100644 --- a/packages/workflow/CHANGELOG.md +++ b/packages/workflow/CHANGELOG.md @@ -1,5 +1,30 @@ # workflow +## 5.0.0-beta.15 + +### Minor Changes + +- [#1853](https://github.com/vercel/workflow/pull/1853) [`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Add opt-in wire-level framing for byte streams (`type: 'bytes'`) so consumers can identify chunk boundaries — a prerequisite for transparent auto-reconnect. The framing decision is gated on a new `framedByteStreams` capability and recorded per-stream in the serialized ref (`framing: 'framed-v1'`); legacy raw streams continue to work unchanged. + +- [#2373](https://github.com/vercel/workflow/pull/2373) [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632) Thanks [@pranaygp](https://github.com/pranaygp)! - Replace `hook.hasConflict` (a `Promise` property) with `hook.getConflict()`, a method returning a promise that suspends the workflow to commit hook registration and resolves with the conflicting `Run` when another active hook owns the token (or `null` once the hook is registered), without waiting for hook payload data. Code using `await hook.hasConflict` should migrate to `const conflict = await hook.getConflict()` and branch on `conflict !== null`. + +- [#2226](https://github.com/vercel/workflow/pull/2226) [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0) Thanks [@pranaygp](https://github.com/pranaygp)! - Allow passing initial run attributes through `start()`, and speed up workflow-level `setAttribute` calls by using native events for recording attributes. + +### Patch Changes + +- Updated dependencies [[`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784), [`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2), [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/core@5.0.0-beta.15 + - @workflow/cli@5.0.0-beta.15 + - @workflow/next@5.0.0-beta.15 + - @workflow/nitro@5.0.0-beta.15 + - @workflow/typescript-plugin@5.0.0-beta.4 + - @workflow/errors@5.0.0-beta.7 + - @workflow/astro@5.0.0-beta.15 + - @workflow/nest@5.0.0-beta.15 + - @workflow/rollup@5.0.0-beta.15 + - @workflow/sveltekit@5.0.0-beta.15 + - @workflow/nuxt@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/workflow/package.json b/packages/workflow/package.json index bdde32f062..67e6b55473 100644 --- a/packages/workflow/package.json +++ b/packages/workflow/package.json @@ -1,6 +1,6 @@ { "name": "workflow", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Workflow SDK - Build durable, resilient, and observable workflows", "main": "dist/typescript-plugin.cjs", "type": "module", diff --git a/packages/world-local/CHANGELOG.md b/packages/world-local/CHANGELOG.md index 1cd61991f0..588a581538 100644 --- a/packages/world-local/CHANGELOG.md +++ b/packages/world-local/CHANGELOG.md @@ -1,5 +1,21 @@ # @workflow/world-local +## 5.0.0-beta.16 + +### Minor Changes + +- [#2226](https://github.com/vercel/workflow/pull/2226) [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0) Thanks [@pranaygp](https://github.com/pranaygp)! - Allow passing initial run attributes through `start()`, and speed up workflow-level `setAttribute` calls by using native events for recording attributes. + +### Patch Changes + +- [#1925](https://github.com/vercel/workflow/pull/1925) [`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2) Thanks [@VaguelySerious](https://github.com/VaguelySerious)! - V2 suspension processing: unify wait + step queue dispatch into a single parallel batch. The runtime now queues every pending operation (non-inline steps + wait timer) in one `Promise.all` and then inline-executes one owned step (if any). The asymmetric `{ timeoutSeconds }` return contract for waits is dropped from suspension processing; waits become normal queue continuations with `delaySeconds`, deduplicated per wait so repeated suspension passes don't accumulate delayed messages. Continuation delays are clamped to 23h (VQS's message-retention bound) with longer waits chained across hop-keyed messages, so multi-day `sleep()`s work on every world. This restores inline step execution for `Promise.race(step, sleep)` workflows without any of the carve-outs the prior fix needed: even when the inline step blocks the handler, the wait continuation fires in parallel and drives the next replay. As part of the same change, `world-local`'s queue now honors `delaySeconds` (matches `world-vercel` / `world-postgres`), and its `close()` aborts pending delayed deliveries and retry sleeps so dev-server/test shutdown isn't held open by wait timers. + +- [#2295](https://github.com/vercel/workflow/pull/2295) [`f2a7bde`](https://github.com/vercel/workflow/commit/f2a7bdeb0abcf8a5d48c33a35b4b15aeca78cddf) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Fix `world-local` and `world-postgres` turning duplicate processing of the same `hook_created` (same `runId`, `hookId`, and token) into a self-conflict; both worlds now treat same-entity duplicates as idempotent (matching `step_created`), and recover crash-orphaned token claims (`world-local`) and hook rows (`world-postgres`) by completing the partial write instead of incorrectly suppressing it. + +- Updated dependencies [[`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/world@5.0.0-beta.9 + - @workflow/errors@5.0.0-beta.7 + ## 5.0.0-beta.15 ### Minor Changes diff --git a/packages/world-local/package.json b/packages/world-local/package.json index de539966ea..960bea0cd6 100644 --- a/packages/world-local/package.json +++ b/packages/world-local/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/world-local", - "version": "5.0.0-beta.15", + "version": "5.0.0-beta.16", "description": "Local development World implementation for Workflow SDK", "type": "module", "main": "dist/index.js", diff --git a/packages/world-postgres/CHANGELOG.md b/packages/world-postgres/CHANGELOG.md index e6a733aa2e..75062b2c8e 100644 --- a/packages/world-postgres/CHANGELOG.md +++ b/packages/world-postgres/CHANGELOG.md @@ -1,5 +1,20 @@ # @workflow/world-postgres +## 5.0.0-beta.14 + +### Minor Changes + +- [#2226](https://github.com/vercel/workflow/pull/2226) [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0) Thanks [@pranaygp](https://github.com/pranaygp)! - Allow passing initial run attributes through `start()`, and speed up workflow-level `setAttribute` calls by using native events for recording attributes. + +### Patch Changes + +- [#2295](https://github.com/vercel/workflow/pull/2295) [`f2a7bde`](https://github.com/vercel/workflow/commit/f2a7bdeb0abcf8a5d48c33a35b4b15aeca78cddf) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Fix `world-local` and `world-postgres` turning duplicate processing of the same `hook_created` (same `runId`, `hookId`, and token) into a self-conflict; both worlds now treat same-entity duplicates as idempotent (matching `step_created`), and recover crash-orphaned token claims (`world-local`) and hook rows (`world-postgres`) by completing the partial write instead of incorrectly suppressing it. + +- Updated dependencies [[`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2), [`f2a7bde`](https://github.com/vercel/workflow/commit/f2a7bdeb0abcf8a5d48c33a35b4b15aeca78cddf), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/world-local@5.0.0-beta.16 + - @workflow/world@5.0.0-beta.9 + - @workflow/errors@5.0.0-beta.7 + ## 5.0.0-beta.13 ### Minor Changes diff --git a/packages/world-postgres/package.json b/packages/world-postgres/package.json index 5192a3ee11..9462187166 100644 --- a/packages/world-postgres/package.json +++ b/packages/world-postgres/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/world-postgres", - "version": "5.0.0-beta.13", + "version": "5.0.0-beta.14", "description": "A reference World implementation based on PostgreSQL", "type": "module", "main": "dist/index.js", diff --git a/packages/world-testing/CHANGELOG.md b/packages/world-testing/CHANGELOG.md index 1aca744b95..a781c4ae79 100644 --- a/packages/world-testing/CHANGELOG.md +++ b/packages/world-testing/CHANGELOG.md @@ -1,5 +1,15 @@ # @workflow/world-testing +## 5.0.0-beta.15 + +### Patch Changes + +- Updated dependencies [[`303b6da`](https://github.com/vercel/workflow/commit/303b6da28affe2f6cec8651b3dd11ec922619784), [`b3279f8`](https://github.com/vercel/workflow/commit/b3279f8b17ca5a57a364d12b5e9394f7d27fe3b2), [`01c8c08`](https://github.com/vercel/workflow/commit/01c8c0878a515bec4476ee2bc90b26d914822632), [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/core@5.0.0-beta.15 + - workflow@5.0.0-beta.15 + - @workflow/world@5.0.0-beta.9 + - @workflow/cli@5.0.0-beta.15 + ## 5.0.0-beta.14 ### Patch Changes diff --git a/packages/world-testing/package.json b/packages/world-testing/package.json index 02b2a6acdf..36aa29905c 100644 --- a/packages/world-testing/package.json +++ b/packages/world-testing/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/world-testing", - "version": "5.0.0-beta.14", + "version": "5.0.0-beta.15", "description": "Testing utilities and World implementation for Workflow SDK", "main": "dist/src/index.mjs", "files": [ diff --git a/packages/world-vercel/CHANGELOG.md b/packages/world-vercel/CHANGELOG.md index ae25d7176e..c61c2278c1 100644 --- a/packages/world-vercel/CHANGELOG.md +++ b/packages/world-vercel/CHANGELOG.md @@ -1,5 +1,17 @@ # @workflow/world-vercel +## 5.0.0-beta.14 + +### Minor Changes + +- [#2226](https://github.com/vercel/workflow/pull/2226) [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0) Thanks [@pranaygp](https://github.com/pranaygp)! - Allow passing initial run attributes through `start()`, and speed up workflow-level `setAttribute` calls by using native events for recording attributes. + +### Patch Changes + +- Updated dependencies [[`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0)]: + - @workflow/world@5.0.0-beta.9 + - @workflow/errors@5.0.0-beta.7 + ## 5.0.0-beta.13 ### Patch Changes diff --git a/packages/world-vercel/package.json b/packages/world-vercel/package.json index 8810b326d5..815a878628 100644 --- a/packages/world-vercel/package.json +++ b/packages/world-vercel/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/world-vercel", - "version": "5.0.0-beta.13", + "version": "5.0.0-beta.14", "description": "Vercel platform World implementation for Workflow SDK", "type": "module", "main": "dist/index.js", diff --git a/packages/world/CHANGELOG.md b/packages/world/CHANGELOG.md index e7a444ceaa..52abc43926 100644 --- a/packages/world/CHANGELOG.md +++ b/packages/world/CHANGELOG.md @@ -1,5 +1,11 @@ # @workflow/world +## 5.0.0-beta.9 + +### Minor Changes + +- [#2226](https://github.com/vercel/workflow/pull/2226) [`ae8d6fe`](https://github.com/vercel/workflow/commit/ae8d6feeda0d1d31da8da70156d6e04ebb0487d0) Thanks [@pranaygp](https://github.com/pranaygp)! - Allow passing initial run attributes through `start()`, and speed up workflow-level `setAttribute` calls by using native events for recording attributes. + ## 5.0.0-beta.8 ### Minor Changes diff --git a/packages/world/package.json b/packages/world/package.json index 209567c293..676de4bd57 100644 --- a/packages/world/package.json +++ b/packages/world/package.json @@ -1,6 +1,6 @@ { "name": "@workflow/world", - "version": "5.0.0-beta.8", + "version": "5.0.0-beta.9", "description": "The Workflows World interface", "type": "module", "main": "dist/index.js",