ReleaseCloudflare (Workers AI)Cloudflare (Workers AI)published Jun 18, 2026seen Jun 26

cloudflare/workers-sdk @cloudflare/vite-plugin@1.42.0

cloudflare/workers-sdk

Open original ↗

Captured source

source ↗
published Jun 18, 2026seen Jun 26captured 4whttp 200method plain

@cloudflare/vite-plugin@1.42.0

Repository: cloudflare/workers-sdk

Tag: @cloudflare/vite-plugin@1.42.0

Published: 2026-06-18T15:13:33Z

Prerelease: no

Release notes:

Minor Changes

cf-vite build runs Vite's full multi-environment app build (via the Builder API) and enables the experimental Build Output API by default, emitting a self-contained .cloudflare/output/v0/ directory. It forces experimental.newConfig and experimental.newConfig.cfBuildOutput on, so a cloudflare.config.ts is required at the project root.

Patch Changes

GHSA-96hv-2xvq-fx4p / CVE-2026-48779 (high severity) reports a remote memory-exhaustion DoS in ws@<8.21.0: a peer sending a high volume of tiny fragments and data chunks over modest network traffic can crash a ws server or client via OOM. The fix shipped in ws@8.21.0 (commit 2b2abd45, released 2026-05-22), which also introduces the maxBufferedChunks and maxFragments options. This change bumps the workspace catalog entry so that miniflare, wrangler, and @cloudflare/vite-plugin all pick up the patched release.

Vitest 4 automatically sets resolve.external to the full list of Node.js built-in modules for non-standard Vite environments via its internal runnerTransform plugin. Previously, the Cloudflare Vite plugin rejected any non-empty resolve.external array, throwing an incompatibility error on startup when used alongside Vitest 4.

The validation check now allows resolve.external arrays that contain only Node.js built-in module names (both bare fs and node:fs forms). The error is only thrown when resolve.external is true or contains non-built-in package names that would prevent user code from being bundled into the Worker.

Notability

notability 3.0/10

Routine plugin release