- #1239 (patch)
Newvarlock/auto-initentry: a single edge-safe import that initializes the runtime from an already-resolved env (decrypting it if needed) and applies all runtime patches, without calling the CLI. The same sequence is available as a function,initVarlockRuntime()fromvarlock/init, for code that has to set up its inputs first. The Next.js integration now injects onevarlock/init-bundlefile into both server and edge runtimes (varlock/init-serverandvarlock/init-edgeremain as aliases of it).varlock/patch-server-responsenow loads node builtins lazily and is a no-op wherenode:httpdoes not exist, so the same init code runs in Node, Bun, Cloudflare Workers and Vercel Edge. The vite, Cloudflare and Astro integrations use it instead of assembling the init sequence module by module; the vite plugin'sssrEdgeRuntimeoption is no longer needed and is ignored.
Published to
- ✅ npm