Files
vercel__workflow/.changeset/pre/remove-client-mode.md
2026-09-09 14:44:37 -07:00

761 B

@workflow/swc-plugin, @workflow/builders, @workflow/cli, @workflow/next, @workflow/rollup, @workflow/nest
@workflow/swc-plugin @workflow/builders @workflow/cli @workflow/next @workflow/rollup @workflow/nest
major patch patch patch patch patch

BREAKING CHANGE: Remove client transform mode from SWC plugin. The client and step modes were nearly identical — both preserved step function bodies, replaced workflow bodies with throw stubs, and emitted the same JSON manifest. The only differences were the step registration mechanism (simple property assignment vs. IIFE) and whether DCE ran. Step mode now absorbs all client-mode behaviors: hoisted variable references for object property steps (so .stepId is accessible), and dead code elimination. All integrations that previously used mode: 'client' now use mode: 'step'.