Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,15 @@
"@workflow/docs-typecheck": "0.0.0",
"@workflow/serde": "4.0.0",
"@workflow/nest": "4.0.0",
"@workflow/example-nest": "0.0.0"
"@workflow/example-nest": "0.0.0",
"workflow-devkit-compiler-playground": "0.1.0"
},
"changesets": [
"add-documentation",
"add-nestjs-support",
"add-queue-headers-support",
"add-type-safety",
"afraid-candies-find",
"afraid-paws-rescue",
"all-guests-change",
"all-years-glow",
Expand All @@ -68,6 +71,7 @@
"breezy-schools-wonder",
"breezy-trains-chew",
"bright-ducks-travel",
"bump-nextjs-deps",
"bumpy-taxis-learn",
"busy-ears-switch",
"bzoad-wqahd-honuz",
Expand All @@ -78,16 +82,19 @@
"chubby-kids-jog",
"clean-parrots-search",
"clear-carpets-slide",
"clear-donkeys-enjoy",
"clear-drinks-fly",
"clear-eagles-call",
"cli-event-sourced",
"common-mangos-bet",
"common-singers-hide",
"consolidate-config",
"cool-lands-buy",
"cool-radios-beg",
"cool-worlds-juggle",
"cool-zebras-yawn",
"core-event-sourced",
"core-otel-improvements",
"crazy-days-agree",
"crazy-waves-leave",
"create-builders-package",
Expand Down Expand Up @@ -138,6 +145,8 @@
"fast-eels-warn",
"fast-lands-sniff",
"fast-owls-flow",
"few-drinks-return",
"fifty-keys-stare",
"fifty-numbers-laugh",
"fifty-teeth-grin",
"fine-ideas-beam",
Expand Down Expand Up @@ -169,6 +178,7 @@
"free-bugs-design",
"free-forks-relax",
"fresh-suns-wave",
"fruity-ads-write",
"fruity-stars-bet",
"funny-chicken-burn",
"funny-games-sniff",
Expand All @@ -179,6 +189,7 @@
"gold-dogs-reply",
"gold-dogs-strive",
"good-icons-love",
"great-clouds-move",
"great-mice-slide",
"great-taxes-bet",
"green-clouds-search",
Expand All @@ -193,6 +204,7 @@
"heavy-pants-look",
"heavy-terms-share",
"hip-apples-fix",
"hip-candles-kick",
"hip-hotels-drop",
"hip-pugs-wish",
"hip-singers-cut",
Expand All @@ -207,6 +219,7 @@
"improve-error-handling",
"itchy-experts-jump",
"itchy-memes-attend",
"khaki-breads-wave",
"khaki-hairs-jump",
"khaki-turtles-build",
"kind-hotels-switch",
Expand All @@ -217,10 +230,12 @@
"lazy-pants-cover",
"lazy-wombats-dig",
"legal-cycles-leave",
"legal-parts-happen",
"lemon-aliens-jog",
"light-ducks-fly",
"light-planes-grin",
"light-rice-rush",
"little-cycles-stay",
"little-experts-show",
"little-peaches-win",
"little-suits-sip",
Expand Down Expand Up @@ -265,9 +280,11 @@
"odd-bobcats-repair",
"odd-years-fail",
"old-pugs-win",
"olive-cars-run",
"olive-signs-crash",
"open-things-smoke",
"open-weeks-sniff",
"otel-tracing-improvements",
"petite-eggs-tell",
"pink-aliens-itch",
"plain-parks-lick",
Expand Down Expand Up @@ -300,6 +317,7 @@
"remove-deprecated-workflow-events",
"remove-paused-resumed",
"remove-vercel-world-remote-access",
"rich-symbols-fold",
"ripe-rats-yawn",
"rude-suits-wonder",
"rude-wings-brush",
Expand All @@ -310,12 +328,14 @@
"shaggy-falcons-make",
"shaggy-tigers-attack",
"shaky-lemons-occur",
"shaky-seals-raise",
"sharp-laws-feel",
"sharp-towns-joke",
"shiny-brooms-invite",
"shiny-islands-move",
"shiny-llamas-hunt",
"shiny-pets-report",
"shy-mice-reply",
"silent-lizards-read",
"silly-drinks-wait",
"silly-pens-shine",
Expand All @@ -338,6 +358,7 @@
"smooth-ears-fall",
"smooth-rats-attack",
"social-paths-swim",
"social-suits-pick",
"soft-glasses-watch",
"soft-pets-yawn",
"solid-ideas-sing",
Expand All @@ -348,8 +369,10 @@
"spicy-rivers-call",
"spotty-eggs-sip",
"spotty-needles-show",
"stale-eagles-pay",
"stale-towns-marry",
"standardize-naming",
"step-handler-parallelization",
"step-queue-idempotency-fix",
"stream-lock-polling",
"strong-shrimps-travel",
Expand Down Expand Up @@ -427,6 +450,8 @@
"world-postgres-event-sourced",
"world-vercel-error-serialization",
"world-vercel-event-sourced",
"world-vercel-otel-improvements",
"world-vercel-telemetry-tracer",
"yellow-books-nail",
"yellow-cats-teach",
"yellow-fans-talk",
Expand Down
2 changes: 1 addition & 1 deletion packages/ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
},
"peerDependencies": {
"ai": "^5 || ^6",
"workflow": "^4.1.0-beta.52"
"workflow": "^4.1.0-beta.53"
},
"dependencies": {
"@ai-sdk/provider": "^2.0.0 || ^3.0.0",
Expand Down
12 changes: 12 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @workflow/astro

## 4.0.0-beta.27

### Patch Changes

- [#963](https://github.com/vercel/workflow/pull/963) [`661724c`](https://github.com/vercel/workflow/commit/661724c01e78691abad26fa99bd44f254a70f2dd) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Expose workflow manifest via HTTP when `WORKFLOW_PUBLIC_MANIFEST=1`

- Updated dependencies [[`35a9f0c`](https://github.com/vercel/workflow/commit/35a9f0cb0360ffc48c8a8e7db3a299924ab48375), [`2453b29`](https://github.com/vercel/workflow/commit/2453b29426d79497076bc910c23cac887beefc0d), [`b9c782d`](https://github.com/vercel/workflow/commit/b9c782d75f5452265764cd36d5e306060f8703c3), [`b5296a7`](https://github.com/vercel/workflow/commit/b5296a7a32b9037aa03c71d87e785fa2d5384a11), [`c1d7c8d`](https://github.com/vercel/workflow/commit/c1d7c8dbb44afb7434acb07fee500ecaa1224fb0), [`73bf7be`](https://github.com/vercel/workflow/commit/73bf7be925a8ffc0c6fce0cc75b6092243882088), [`661724c`](https://github.com/vercel/workflow/commit/661724c01e78691abad26fa99bd44f254a70f2dd), [`8114792`](https://github.com/vercel/workflow/commit/8114792600a851fbf14cf41f8340e646aef36368)]:
- @workflow/swc-plugin@4.1.0-beta.16
- @workflow/builders@4.0.1-beta.44
- @workflow/rollup@4.0.0-beta.10
- @workflow/vite@4.0.0-beta.3

## 4.0.0-beta.26

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workflow/astro",
"version": "4.0.0-beta.26",
"version": "4.0.0-beta.27",
"description": "Astro integration for Workflow DevKit",
"type": "module",
"main": "dist/index.js",
Expand Down
28 changes: 28 additions & 0 deletions packages/builders/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @workflow/builders

## 4.0.1-beta.44

### Patch Changes

- [#901](https://github.com/vercel/workflow/pull/901) [`35a9f0c`](https://github.com/vercel/workflow/commit/35a9f0cb0360ffc48c8a8e7db3a299924ab48375) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Fix module specifier cache bug and add subpath export resolution for package IDs

- [#931](https://github.com/vercel/workflow/pull/931) [`2453b29`](https://github.com/vercel/workflow/commit/2453b29426d79497076bc910c23cac887beefc0d) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Make `wf build --manifest-file` include steps / classes metadata

- [#874](https://github.com/vercel/workflow/pull/874) [`b5296a7`](https://github.com/vercel/workflow/commit/b5296a7a32b9037aa03c71d87e785fa2d5384a11) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Add discovered serializable classes in all context modes

- [#899](https://github.com/vercel/workflow/pull/899) [`73bf7be`](https://github.com/vercel/workflow/commit/73bf7be925a8ffc0c6fce0cc75b6092243882088) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Change compiler ID generation logic to use Node.js import specifiers

IDs for workflows, steps, and classes now use module specifiers:

- Local files use `./path/to/file` format instead of `path/to/file.ext`
- Package files use `packageName@version` format (e.g., `workflow@4.0.1`)

This enables stable IDs across different package.json export conditions.

- [#963](https://github.com/vercel/workflow/pull/963) [`661724c`](https://github.com/vercel/workflow/commit/661724c01e78691abad26fa99bd44f254a70f2dd) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Expose workflow manifest via HTTP when `WORKFLOW_PUBLIC_MANIFEST=1`

- [#859](https://github.com/vercel/workflow/pull/859) [`8114792`](https://github.com/vercel/workflow/commit/8114792600a851fbf14cf41f8340e646aef36368) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Add discovery for custom classes with workflow serialization

- Updated dependencies [[`0ce46b9`](https://github.com/vercel/workflow/commit/0ce46b91d9c8ca3349f43cdf3a5d75a948d6f5ad), [`35a9f0c`](https://github.com/vercel/workflow/commit/35a9f0cb0360ffc48c8a8e7db3a299924ab48375), [`f090de1`](https://github.com/vercel/workflow/commit/f090de1eb48ad8ec3fd776e9d084310d56a7ac29), [`79e988f`](https://github.com/vercel/workflow/commit/79e988fa85f0ebdd5c8913b8de84e01c55d020b9), [`b9c782d`](https://github.com/vercel/workflow/commit/b9c782d75f5452265764cd36d5e306060f8703c3), [`c54ba21`](https://github.com/vercel/workflow/commit/c54ba21c19040577ed95f6264a2670f190e1d1d3), [`b5296a7`](https://github.com/vercel/workflow/commit/b5296a7a32b9037aa03c71d87e785fa2d5384a11), [`c1d7c8d`](https://github.com/vercel/workflow/commit/c1d7c8dbb44afb7434acb07fee500ecaa1224fb0), [`e0061b8`](https://github.com/vercel/workflow/commit/e0061b861d0e3c3dc15853aed331fb1bbab71408), [`38e8d55`](https://github.com/vercel/workflow/commit/38e8d5571d2ee4b80387943f8f39a93b6e4bc751), [`088de0a`](https://github.com/vercel/workflow/commit/088de0ae422bb7c958109d689127691cea5753b6), [`73bf7be`](https://github.com/vercel/workflow/commit/73bf7be925a8ffc0c6fce0cc75b6092243882088), [`efb33b2`](https://github.com/vercel/workflow/commit/efb33b2b5edf6ccb1ec2f02f1d99f2a009333780), [`8114792`](https://github.com/vercel/workflow/commit/8114792600a851fbf14cf41f8340e646aef36368), [`088de0a`](https://github.com/vercel/workflow/commit/088de0ae422bb7c958109d689127691cea5753b6)]:
- @workflow/core@4.1.0-beta.53
- @workflow/swc-plugin@4.1.0-beta.16
- @workflow/errors@4.1.0-beta.14

## 4.0.1-beta.43

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/builders/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workflow/builders",
"version": "4.0.1-beta.43",
"version": "4.0.1-beta.44",
"description": "Shared builder infrastructure for Workflow DevKit",
"type": "module",
"main": "./dist/index.js",
Expand Down
14 changes: 14 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @workflow/cli

## 4.1.0-beta.53

### Patch Changes

- Updated dependencies [[`0ce46b9`](https://github.com/vercel/workflow/commit/0ce46b91d9c8ca3349f43cdf3a5d75a948d6f5ad), [`35a9f0c`](https://github.com/vercel/workflow/commit/35a9f0cb0360ffc48c8a8e7db3a299924ab48375), [`f090de1`](https://github.com/vercel/workflow/commit/f090de1eb48ad8ec3fd776e9d084310d56a7ac29), [`79e988f`](https://github.com/vercel/workflow/commit/79e988fa85f0ebdd5c8913b8de84e01c55d020b9), [`2453b29`](https://github.com/vercel/workflow/commit/2453b29426d79497076bc910c23cac887beefc0d), [`b9c782d`](https://github.com/vercel/workflow/commit/b9c782d75f5452265764cd36d5e306060f8703c3), [`c54ba21`](https://github.com/vercel/workflow/commit/c54ba21c19040577ed95f6264a2670f190e1d1d3), [`b5296a7`](https://github.com/vercel/workflow/commit/b5296a7a32b9037aa03c71d87e785fa2d5384a11), [`c1d7c8d`](https://github.com/vercel/workflow/commit/c1d7c8dbb44afb7434acb07fee500ecaa1224fb0), [`e0061b8`](https://github.com/vercel/workflow/commit/e0061b861d0e3c3dc15853aed331fb1bbab71408), [`38e8d55`](https://github.com/vercel/workflow/commit/38e8d5571d2ee4b80387943f8f39a93b6e4bc751), [`088de0a`](https://github.com/vercel/workflow/commit/088de0ae422bb7c958109d689127691cea5753b6), [`73bf7be`](https://github.com/vercel/workflow/commit/73bf7be925a8ffc0c6fce0cc75b6092243882088), [`efb33b2`](https://github.com/vercel/workflow/commit/efb33b2b5edf6ccb1ec2f02f1d99f2a009333780), [`661724c`](https://github.com/vercel/workflow/commit/661724c01e78691abad26fa99bd44f254a70f2dd), [`8114792`](https://github.com/vercel/workflow/commit/8114792600a851fbf14cf41f8340e646aef36368), [`088de0a`](https://github.com/vercel/workflow/commit/088de0ae422bb7c958109d689127691cea5753b6), [`79e988f`](https://github.com/vercel/workflow/commit/79e988fa85f0ebdd5c8913b8de84e01c55d020b9), [`088de0a`](https://github.com/vercel/workflow/commit/088de0ae422bb7c958109d689127691cea5753b6)]:
- @workflow/world@4.1.0-beta.2
- @workflow/world-vercel@4.1.0-beta.30
- @workflow/world-local@4.1.0-beta.29
- @workflow/core@4.1.0-beta.53
- @workflow/swc-plugin@4.1.0-beta.16
- @workflow/builders@4.0.1-beta.44
- @workflow/web@4.1.0-beta.32
- @workflow/errors@4.1.0-beta.14

## 4.1.0-beta.52

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workflow/cli",
"version": "4.1.0-beta.52",
"version": "4.1.0-beta.53",
"description": "Command-line interface for Workflow DevKit",
"type": "module",
"bin": {
Expand Down
44 changes: 44 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# @workflow/core

## 4.1.0-beta.53

### Patch Changes

- [#922](https://github.com/vercel/workflow/pull/922) [`0ce46b9`](https://github.com/vercel/workflow/commit/0ce46b91d9c8ca3349f43cdf3a5d75a948d6f5ad) Thanks [@pranaygp](https://github.com/pranaygp)! - Add support for custom headers in queue messages

- [#927](https://github.com/vercel/workflow/pull/927) [`f090de1`](https://github.com/vercel/workflow/commit/f090de1eb48ad8ec3fd776e9d084310d56a7ac29) Thanks [@karthikscale3](https://github.com/karthikscale3)! - Added subpatch exports for runtime modules to allow direct imports in core. Refactored web-shared to be a thin package that exported UI components and world-actions. Updated web package to consume the UI components and world-actions from web-shared.

- [#933](https://github.com/vercel/workflow/pull/933) [`79e988f`](https://github.com/vercel/workflow/commit/79e988fa85f0ebdd5c8913b8de84e01c55d020b9) Thanks [@pranaygp](https://github.com/pranaygp)! - Add OTEL tracing for event loading and queue timing breakdown using standard OTEL semantic conventions

- [#867](https://github.com/vercel/workflow/pull/867) [`c54ba21`](https://github.com/vercel/workflow/commit/c54ba21c19040577ed95f6264a2670f190e1d1d3) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Add optional `writeToStreamMulti` function to the World interface

- [#935](https://github.com/vercel/workflow/pull/935) [`e0061b8`](https://github.com/vercel/workflow/commit/e0061b861d0e3c3dc15853aed331fb1bbab71408) Thanks [@pranaygp](https://github.com/pranaygp)! - Improve logging: consolidate to structured logger, fix log levels, ensure errors/warnings are always visible

- [#873](https://github.com/vercel/workflow/pull/873) [`38e8d55`](https://github.com/vercel/workflow/commit/38e8d5571d2ee4b80387943f8f39a93b6e4bc751) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Ensure class serialization / deserialization only happens in the proper global context

- [#932](https://github.com/vercel/workflow/pull/932) [`088de0a`](https://github.com/vercel/workflow/commit/088de0ae422bb7c958109d689127691cea5753b6) Thanks [@pranaygp](https://github.com/pranaygp)! - Improve OpenTelemetry tracing instrumentation

- Add W3C trace context headers to step queue messages for cross-service trace linking
- Add `peer.service` and RPC semantic conventions for external service attribution
- Add `step.hydrate` and `step.dehydrate` spans for argument serialization visibility
- Add `workflow.replay` span for workflow event replay tracking
- Rename `queueMessage` span to `queue.publish` following OTEL messaging conventions
- Add OTEL baggage propagation for workflow context (`workflow.run_id`, `workflow.name`)
- Add span events for milestones: `retry.scheduled`, `step.skipped`, `step.delayed`
- Enhance error telemetry with `recordException()` and error categorization (fatal/retryable/transient)
- Use uppercase span names (WORKFLOW, STEP) for consistency with HTTP spans
- Add world-local OTEL instrumentation matching world-vercel

- [#947](https://github.com/vercel/workflow/pull/947) [`efb33b2`](https://github.com/vercel/workflow/commit/efb33b2b5edf6ccb1ec2f02f1d99f2a009333780) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Pass class as `this` context to custom serializer/deserializer methods

- [#932](https://github.com/vercel/workflow/pull/932) [`088de0a`](https://github.com/vercel/workflow/commit/088de0ae422bb7c958109d689127691cea5753b6) Thanks [@pranaygp](https://github.com/pranaygp)! - Optimize step handler performance and improve server-side validation

- Skip initial `world.steps.get()` call in step handler (saves one HTTP round-trip)
- Add server-side `retryAfter` validation to local and postgres worlds (HTTP 425 when not reached)
- Fix HTTP status code for step terminal state: return 409 (Conflict) instead of 410
- Fix race condition: await `step_started` event before hydration to ensure correct attempt count

- Updated dependencies [[`0ce46b9`](https://github.com/vercel/workflow/commit/0ce46b91d9c8ca3349f43cdf3a5d75a948d6f5ad), [`c54ba21`](https://github.com/vercel/workflow/commit/c54ba21c19040577ed95f6264a2670f190e1d1d3), [`088de0a`](https://github.com/vercel/workflow/commit/088de0ae422bb7c958109d689127691cea5753b6), [`088de0a`](https://github.com/vercel/workflow/commit/088de0ae422bb7c958109d689127691cea5753b6), [`79e988f`](https://github.com/vercel/workflow/commit/79e988fa85f0ebdd5c8913b8de84e01c55d020b9), [`088de0a`](https://github.com/vercel/workflow/commit/088de0ae422bb7c958109d689127691cea5753b6)]:
- @workflow/world@4.1.0-beta.2
- @workflow/world-vercel@4.1.0-beta.30
- @workflow/world-local@4.1.0-beta.29
- @workflow/errors@4.1.0-beta.14

## 4.1.0-beta.52

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workflow/core",
"version": "4.1.0-beta.52",
"version": "4.1.0-beta.53",
"description": "Core runtime and engine for Workflow DevKit",
"type": "module",
"main": "dist/index.js",
Expand Down
12 changes: 12 additions & 0 deletions packages/nest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @workflow/nest

## 0.0.0-beta.2

### Patch Changes

- [#901](https://github.com/vercel/workflow/pull/901) [`35a9f0c`](https://github.com/vercel/workflow/commit/35a9f0cb0360ffc48c8a8e7db3a299924ab48375) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Fix module specifier cache bug and add subpath export resolution for package IDs

- [#963](https://github.com/vercel/workflow/pull/963) [`661724c`](https://github.com/vercel/workflow/commit/661724c01e78691abad26fa99bd44f254a70f2dd) Thanks [@TooTallNate](https://github.com/TooTallNate)! - Expose workflow manifest via HTTP when `WORKFLOW_PUBLIC_MANIFEST=1`

- Updated dependencies [[`35a9f0c`](https://github.com/vercel/workflow/commit/35a9f0cb0360ffc48c8a8e7db3a299924ab48375), [`2453b29`](https://github.com/vercel/workflow/commit/2453b29426d79497076bc910c23cac887beefc0d), [`b9c782d`](https://github.com/vercel/workflow/commit/b9c782d75f5452265764cd36d5e306060f8703c3), [`b5296a7`](https://github.com/vercel/workflow/commit/b5296a7a32b9037aa03c71d87e785fa2d5384a11), [`c1d7c8d`](https://github.com/vercel/workflow/commit/c1d7c8dbb44afb7434acb07fee500ecaa1224fb0), [`73bf7be`](https://github.com/vercel/workflow/commit/73bf7be925a8ffc0c6fce0cc75b6092243882088), [`661724c`](https://github.com/vercel/workflow/commit/661724c01e78691abad26fa99bd44f254a70f2dd), [`8114792`](https://github.com/vercel/workflow/commit/8114792600a851fbf14cf41f8340e646aef36368)]:
- @workflow/swc-plugin@4.1.0-beta.16
- @workflow/builders@4.0.1-beta.44

## 0.0.0-beta.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workflow/nest",
"version": "0.0.0-beta.1",
"version": "0.0.0-beta.2",
"description": "NestJS integration for Workflow DevKit",
"type": "module",
"main": "dist/index.js",
Expand Down
Loading