mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
f5aeaa869c
Co-authored-by: Peter Wielander <peter.wielander@vercel.com>
554 B
554 B
@workflow/core, @workflow/world, @workflow/ai, @workflow/nest
| @workflow/core | @workflow/world | @workflow/ai | @workflow/nest |
|---|---|---|---|
| patch | patch | patch | patch |
Hold process-wide state on globalThis rather than at module scope in the packages that get bundled into the host application's server build, where a bundler compiles one copy of each module per layer. Covers warn-once latches, lazy caches, the VM script and QuickJS asset caches, the dev-server port cache, and step single-flight, whose per-copy map was not actually single-flight. State that is deliberately per-copy is annotated with the reason.