@workflow/world breaking changes
Updated December 4, 2026
On this page
Latest version 5.4.2, released December 3, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 4.5.1 to 5.3.0: 122 breaking changes in 24 versions.
- From 4.5.0 to 5.3.0: 123 breaking changes in 25 versions.
@workflow/world 5.3.0 breaking changes
- Signature changed
QueuePayloadSchema
Was const QueuePayloadSchema: z.ZodUnion<readonly [z.ZodObject<{__healthCheck: z.ZodLiteral<true>; correlationId: z.ZodString; probeRunId: z.ZodOptional<z.ZodString>; runId: z.ZodOptional<z.ZodString>;}, z.core.$strip>, z.ZodObject<{runId... npmjs.com - Signature changed
SINGLE_ORCHESTRATOR_CONTINUATION_FIELDS
Was const SINGLE_ORCHESTRATOR_CONTINUATION_FIELDS: {readonly runId: "carry"; readonly runContext: "carry"; readonly traceCarrier: "carry"; readonly waitContinuation: "carry"; readonly completeWaits: "carry"; readonly hookInput: "carry"... npmjs.com - Signature changed
Storage.runs
Was runs: {get(id: string, params: GetWorkflowRunParams & {resolveData: 'none';}): Promise<WorkflowRunWithoutData>; get(id: string, params?: GetWorkflowRunParams & {resolveData?: 'all';}): Promise<WorkflowRun>; get(id: string, params?... npmjs.com - Signature changed
WorkflowInvokePayloadSchema
Was const WorkflowInvokePayloadSchema: z.ZodObject<{runId: z.ZodString; runSpecVersion: z.ZodCatch<z.ZodOptional<z.ZodNumber>>; recovery: z.ZodCatch<z.ZodOptional<z.ZodLiteral<true>>>; invoke: z.ZodOptional<z.ZodLiteral<true>>; requestId... npmjs.com
@workflow/world 5.2.2 breaking changes
- Behavior changed
The published packages no longer include declaration maps or TypeScript sources, so debuggers and error overlays no longer show source code for frames inside @workflow/* packages. Code that relies on these files should load the compiled... github.com - Signature changed
EventListResponse
Was type EventListResponse = PaginatedResponse<Event> & {snapshot?: EventLogSnapshot;}; now type EventListResponse = PaginatedResponse<Event> & {snapshot?: EventLogSnapshot; maxEvents?: number;}. npmjs.com
@workflow/world 5.2.1 breaking changes
- Signature changed
Queue.createQueueHandler
Was createQueueHandler(queueNamePrefix: QueuePrefix, handler: (message: unknown, meta: {attempt: number; deliveryCount?: number; createdAt?: Date; queueName: ValidQueueName; messageId: MessageId; requestId?: string; invocationStartedAt?... npmjs.com - Signature changed
Queue.queue
Was queue(queueName: ValidQueueName, message: QueuePayload, opts?: QueueOptions): Promise<{messageId: MessageId | null;}>; now queue(queueName: ValidQueueName, message: QueuePayload, opts?: QueueOptions): Promise<QueueResult>. npmjs.com - Signature changed
WorldCapabilitiesSchema
Was const WorldCapabilitiesSchema: z.ZodCatch<z.ZodOptional<z.ZodObject<{invoke: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>; hookRetention: z.ZodCatch<z.ZodOptional<z.ZodObject<{active: z.ZodBoolean;}, z.core.$strip>>>; atomicStartHook... npmjs.com
@workflow/world 5.2.0 breaking changes
- Removed
SEALED_LOG_ENV_VAR
The export is gone. Set WORKFLOW_SPEC_VERSION=6 to create new runs without the sealed log. github.com - Removed
WORKFLOW_BATCH_TRANSITIONS
The runtime no longer reads this variable and the behavior it could switch off is always on, so code that sets it has no effect. github.com - Removed
WORKFLOW_INLINE_EARLY_ADVANCE
The runtime no longer reads this variable and the behavior it could switch off is always on, so code that sets it has no effect. github.com - Removed
WORKFLOW_LOCAL_RUN_STATUS_POLL_INTERVAL_MS
The Local World no longer reads this variable, so code that sets it has no effect. github.com - Removed
WORKFLOW_MAX_CHUNKS_PER_REQUEST
The Vercel World no longer reads this variable, so code that sets it has no effect. github.com - Removed
WORKFLOW_POSTGRES_RUN_STATUS_POLL_INTERVAL_MS
The Postgres World no longer reads this variable, so code that sets it has no effect. github.com - Removed
WORKFLOW_SEALED_LOG
The runtime no longer reads this variable. Set WORKFLOW_SPEC_VERSION=6 to create new runs without the sealed log. github.com - Removed
WORKFLOW_TEST_LIMIT_OVERRIDES
The Vercel World no longer reads this variable, so code that sets it has no effect. github.com - Signature changed
CreateEventSchema
Was const CreateEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{correlationId: z.ZodOptional<z.ZodString>; specVersion: z.ZodOptional<z.ZodNumber>; eventType: z.ZodLiteral<"run_created">; eventData: z.ZodObject<{deploymentId... npmjs.com - Signature changed
EventSchema
Was const EventSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{correlationId: z.ZodOptional<z.ZodString>; specVersion: z.ZodOptional<z.ZodNumber>; eventType: z.ZodLiteral<"run_created">; eventData... npmjs.com
@workflow/world 5.1.0 breaking changes
- Signature changed
CreateEventSchema
Was const CreateEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{correlationId: z.ZodOptional<z.ZodString>; specVersion: z.ZodOptional<z.ZodNumber>; eventType: z.ZodLiteral<"run_created">; eventData: z.ZodObject<{deploymentId... npmjs.com - Signature changed
EventResult
Was type EventResult<T extends EventType = EventType> = {event?: Event; eventCursor?: string; run?: WorkflowRun; step?: Step; hook?: Hook; wait?: Wait; stepCreated?: true; maxEvents?: number; allocated?: number;} & ({events: Event[]... npmjs.com - Signature changed
EventSchema
Was const EventSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{correlationId: z.ZodOptional<z.ZodString>; specVersion: z.ZodOptional<z.ZodNumber>; eventType: z.ZodLiteral<"run_created">; eventData... npmjs.com - Signature changed
mintedSpecVersion
Was function mintedSpecVersion(env?: Record<string, string | undefined>): SpecVersion; now function mintedSpecVersion(env?: Record<string, string | undefined>, options?: MintedSpecVersionOptions): SpecVersion. npmjs.com - Signature changed
Queue.createQueueHandler
Was createQueueHandler(queueNamePrefix: QueuePrefix, handler: (message: unknown, meta: {attempt: number; deliveryCount?: number; createdAt?: Date; queueName: ValidQueueName; messageId: MessageId; requestId?: string;}) => Promise<unknown>)... npmjs.com - Signature changed
QueuePayloadSchema
Was const QueuePayloadSchema: z.ZodUnion<readonly [z.ZodObject<{__healthCheck: z.ZodLiteral<true>; correlationId: z.ZodString; probeRunId: z.ZodOptional<z.ZodString>; runId: z.ZodOptional<z.ZodString>;}, z.core.$strip>, z.ZodObject<{runId... npmjs.com - Signature changed
reenqueueActiveRuns
Was function reenqueueActiveRuns(runs: Storage['runs'], enqueue: Queue['queue'], label: string, namespace?: string): Promise<void>; now function reenqueueActiveRuns(runs: Storage['runs'], enqueue: Queue['queue'], label: string, namespace?... npmjs.com - Signature changed
RunInputSchema
Was const RunInputSchema: z.ZodObject<{input: z.ZodUnknown; deploymentId: z.ZodString; workflowName: z.ZodString; specVersion: z.ZodNumber; executionContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; dynamicWorkflowCode... npmjs.com - Signature changed
Storage.events
Was events: {create<T extends RunCreatedEventRequest>(runId: string | null, data: T, params?: CreateEventParams): Promise<EventResult<T['eventType']>>; create<T extends CreateEventRequest>(runId: string, data: T, params?... npmjs.com - Signature changed
WorkflowInvokePayloadSchema
Was const WorkflowInvokePayloadSchema: z.ZodObject<{runId: z.ZodString; invoke: z.ZodOptional<z.ZodLiteral<true>>; requestId: z.ZodOptional<z.ZodString>; input: z.ZodOptional<z.ZodUnknown>; traceCarrier... npmjs.com
And 2 more in this version. Sign up to see every change
@workflow/world 5.0.5 breaking changes
- Behavior changed
Replayed runs now remain in the original run's region. Cross-deployment start() calls to 4.x deployments are no longer misread as run invocations. github.com - Behavior changed
QuickJS runs with a positive snapshot threshold are now exempt from the default per-run event limit, matching the Vercel World. github.com - Signature changed
EventResult
Was type EventResult<T extends EventType = EventType> = {event?: Event; run?: WorkflowRun; step?: Step; hook?: Hook; wait?: Wait; stepCreated?: true; maxEvents?: number; allocated?: number;} & ({events: Event[]; cursor: string | null... npmjs.com - Signature changed
HealthCheckPayloadSchema
Was const HealthCheckPayloadSchema: z.ZodObject<{__healthCheck: z.ZodLiteral<true>; correlationId: z.ZodString; runId: z.ZodOptional<z.ZodString>;}, z.core.$strip>; now const HealthCheckPayloadSchema: z.ZodObject<{__healthCheck... npmjs.com - Signature changed
QueuePayloadSchema
Was const QueuePayloadSchema: z.ZodUnion<readonly [z.ZodObject<{__healthCheck: z.ZodLiteral<true>; correlationId: z.ZodString; runId: z.ZodOptional<z.ZodString>;}, z.core.$strip>, z.ZodObject<{runId: z.ZodString; invoke... npmjs.com
Older versions
20 older versions, each with its first changes. Sign up to see every change
Show 20 older versions
@workflow/world 5.0.4 breaking changes
- Signature changed
EventResult
Was type EventResult<T extends EventType = EventType> = {event?: Event; run?: WorkflowRun; step?: Step; hook?: Hook; wait?: Wait; stepCreated?: true; maxEvents?: number;} & ({events: Event[]; cursor: string | null; hasMore: boolean;} |... npmjs.com - Signature changed
Queue.createQueueHandler
Was createQueueHandler(queueNamePrefix: QueuePrefix, handler: (message: unknown, meta: {attempt: number; queueName: ValidQueueName; messageId: MessageId; requestId?: string;}) => Promise<unknown>): (req: Request) => Promise<Response>; now... npmjs.com
And 3 more in this version.
@workflow/world 5.0.2 breaking changes
- Signature changed
HookResumeContextSchema
Was const HookResumeContextSchema: z.ZodObject<{deploymentId: z.ZodString; workflowName: z.ZodString; runSpecVersion: z.ZodOptional<z.ZodNumber>; workflowCoreVersion: z.ZodOptional<z.ZodString>; traceCarrier... npmjs.com - Signature changed
HookSchema
Was const HookSchema: z.ZodObject<{runId: z.ZodString; hookId: z.ZodString; token: z.ZodString; ownerId: z.ZodString; projectId: z.ZodString; environment: z.ZodString; metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown... npmjs.com
@workflow/world 5.0.0 breaking changes
- Removed
CreateEventParams.stateUpdatedAt
CreateEventParams.stateUpdatedAt was removed in @workflow/world 5.0.0 npmjs.com - Removed
EVENT_DATA_REF_FIELDS
EVENT_DATA_REF_FIELDS was removed in @workflow/world 5.0.0 npmjs.com
And 50 more in this version.
@workflow/world 5.0.0-beta.40 breaking changes
- Removed
getBackendCapabilities
Worlds declare dynamic workflow support with capabilities.dynamicWorkflowCode instead of getBackendCapabilities(). github.com
@workflow/world 5.0.0-beta.39 breaking changes
- Behavior changed
resolveData
Replay now reads the event log with resolveData 'skip-step-inputs', leaving input out of step events. github.com
@workflow/world 5.0.0-beta.36 breaking changes
- Behavior changed
runs.list
world-vercel does not support the array form of status and throws INVALID_ARGUMENT for it. github.com
@workflow/world 5.0.0-beta.33 breaking changes
- Behavior changed
analytics
Invalid ids, out-of-range limits, oversized filters or half-open time windows now throw WorkflowWorldError with code INVALID_ARGUMENT. github.com
@workflow/world 5.0.0-beta.32 breaking changes
- Removed
resumeHookDurable
The internal resumeHookDurable() alias is removed; use resumeHook(). github.com - Behavior changed
resumeHook
A resume against an ended run now throws HookNotFoundError instead of resolving, and HTTP 409 conflicts surface as retryable errors. github.com
And 1 more in this version.
@workflow/world 5.0.0-beta.29 breaking changes
- Behavior changed
New runs are created with sealed-log identity; set WORKFLOW_SEALED_LOG=0 to keep the previous scheme. github.com
@workflow/world 5.0.0-beta.27 breaking changes
- Removed
preconditionGuard
The preconditionGuard World capability is removed; Worlds that declared it no longer need to reject stale replay-context writes. github.com - Removed
slotEventIds
The slotEventIds flag is gone; slot-numbered event ids are now required by the World contract. github.com
And 1 more in this version.
@workflow/world 5.0.0-beta.25 breaking changes
- Signature changed
analytics.events.listByCorrelationId
Calls to analytics.events.listByCorrelationId must pass a runId, since correlation ids are unique only within a run. github.com - Signature changed
events.listByCorrelationId
Calls to events.listByCorrelationId must pass a runId, since correlation ids are unique only within a run. github.com
@workflow/world 5.0.0-beta.24 breaking changes
- Signature changed
resumeHook
resumeHook() resolves to a ResumedHook, which is a Hook plus an optional resilientResume flag. Code typed against Hook may need updating. github.com
@workflow/world 5.0.0-beta.23 breaking changes
- Removed
Queued steps now use the workflow topic and combined flow handler. Code relying on the legacy step queue topics or payloads must be updated. github.com - Default changed
streamFlushIntervalMs
The first chunk of an idle stream is dispatched immediately. Set streamFlushIntervalMs above 0 to keep a windowed leading edge. github.com
@workflow/world 5.0.0-beta.22 breaking changes
- Behavior changed
A server-supplied per-run event limit, default 25K, is now enforced. Runs exceeding it may fail. github.com - Default changed
WORKFLOW_PRECONDITION_GUARD
The precondition guard for event creation is enabled by default. Set WORKFLOW_PRECONDITION_GUARD=0 to opt out. github.com
@workflow/world 5.0.0-beta.19 breaking changes
- Renamed
experimental_setAttributes
The helper formerly named experimental_setAttributes is now called setAttributes. Update callers to the new name. github.com
@workflow/world 5.0.0-beta.11 breaking changes
- Behavior changed
SPEC_VERSION_CURRENT
Runs at spec 5 or later may contain gzip-compressed payloads. Older SDKs reject these runs with requiresNewerWorld() instead of failing on individual payloads. github.com
@workflow/world 5.0.0-beta.2 breaking changes
- Behavior changed
WorkflowRunFailedError.cause
Errors are serialized through the workflow pipeline, so WorkflowRunFailedError.cause changes. Failed runs stored before the upgrade in the legacy error column read as undefined. github.com
@workflow/world 5.0.0-beta.1 breaking changes
- Removed
Streamer.closeStream
closeStream is replaced by streams.close. Update callers to the new name. npmjs.com - Removed
Streamer.listStreamsByRunId
listStreamsByRunId is replaced by streams.list, which takes runId. npmjs.com
And 4 more in this version.
@workflow/world 4.5.1 breaking changes
- Signature changed
WorkflowRunSchema
Was const WorkflowRunSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{runId: z.ZodString; deploymentId: z.ZodString; workflowName: z.ZodString; specVersion: z.ZodOptional<z.ZodNumber>; executionContext: z.ZodOptional<z.ZodRecord<z.ZodString... npmjs.com
@workflow/world 4.5.0 breaking changes
- Signature changed
reenqueueActiveRuns
Was function reenqueueActiveRuns(runs: Storage['runs'], enqueue: Queue['queue'], label: string): Promise<void>; now function reenqueueActiveRuns(runs: Storage['runs'], enqueue: Queue['queue'], label: string, namespace?: string)... npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.