Migrating Workflow V4 To V5

Upgrades an app from Workflow SDK 4.x to 5.0. Use when bumping the `workflow` / `@workflow/*` dependencies to v5, or when hitting removed v4 APIs — `runStep`, `stepEntrypoint`, `workflow/internal/private`, `@workflow/core/private`, `writeToStream` / `closeStream` / `readFromStream` on a World, `world.steps.get` without a runId, `hook.getConflict()` returning `{ runId }`, `experimental_setAttributes`, `createLocalWorld` / `createVercelWorld`, `NestLocalBuilder` imported from `@workflow/nest`, or an SWC transform invoked with `mode: 'client'`.

vercel ec0153d 18.7 KB Updated

File contents

vercel/workflow/tree/main/skills/migrating-workflow-v4-to-v5 commit ec0153dbc8

Frequently asked questions

npx skillmds add vercel-workflow/migrating-workflow-v4-to-v5