@cloudflare/vite-plugin
1.67.0 · 1 Nov 2026MIT6.4M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgrade- 1.x1.67.0Safe from 1.6.0Latest line
- 0.1.x and older0.1.212 open advisories, worst moderate · last release Apr 2025, no longer updatedTo 1.67.0
Latest releases
All 241 releases1.67.0
1 Nov 2026Validate asset ignore files and update local Flagship support
Upgrade Miniflare to 5.20261023.2-beta and Wrangler to 4.155.0. Builds and asset manifest generation now reject
.assetsignorefiles with invalid UTF-8 or null characters instead of silently ignoring their patterns. The Local Explorer also supports Flagship management by app ID, and local flag evaluations retain metadata.Miniflare also waits for temporary file cleanup before disposal completes, so closing or restarting a Vite dev server finishes cleanup before returning.
Support remote Analytics Engine bindings in Vite plugin v1
Set
remote: trueon ananalytics_engine_datasetsentry inwrangler.jsoncto sendwriteDataPoint()calls from local development and preview to the real dataset.Close Vite HMR WebSocket upgrades when Vite WebSockets are disabled
Previously,
server.ws: falseleft the browser's raw upgrade socket pending because no Vite handler claimed it. Worker and Sandbox WebSocket forwarding remains unchanged.
Minor Changes
Validate asset ignore files and update local Flagship support
Upgrade Miniflare to 5.20261023.2-beta and Wrangler to 4.155.0. Builds and asset manifest generation now reject
.assetsignorefiles with invalid UTF-8 or null characters instead of silently ignoring their patterns. The Local Explorer also supports Flagship management by app ID, and local flag evaluations retain metadata.Miniflare also waits for temporary file cleanup before disposal completes, so closing or restarting a Vite dev server finishes cleanup before returning.
Support remote Analytics Engine bindings in Vite plugin v1
Set
remote: trueon ananalytics_engine_datasetsentry inwrangler.jsoncto sendwriteDataPoint()calls from local development and preview to the real dataset.
Patch Changes
Close Vite HMR WebSocket upgrades when Vite WebSockets are disabled
Previously,
server.ws: falseleft the browser's raw upgrade socket pending because no Vite handler claimed it. Worker and Sandbox WebSocket forwarding remains unchanged.Update the v1 local runtime to workerd 1.20261101.1
Upgrade Miniflare to 5.20261101.0-beta with matching Wrangler and shared SDK dependencies. Local development and preview use the November 1 runtime, and Workers without an explicit compatibility date default to 2026-11-01. Update Workers types to match the runtime.
1.66.0
28 Oct 2026Update the development registry to use the canonical Cloudflare path
Upgrade Miniflare to 5.20261023.1-beta and Wrangler to 4.154.0. Vite plugin v1 now uses
CLOUDFLARE_DEV_REGISTRY_PATHor<Cloudflare config directory>/dev-registry/v5for Worker discovery.MINIFLARE_REGISTRY_PATHis no longer read. When mixing Vite and Wrangler development sessions, set the sameCLOUDFLARE_DEV_REGISTRY_PATHfor both because Wrangler retains its legacy default.Support remote Hyperdrive bindings in Vite plugin v1 development and preview
Set
remote: trueon a Hyperdrive binding inwrangler.jsoncto connect to its deployed configuration without a local database connection string. The retained remote proxy exposes the binding's connection string and socket streams, and remote session cleanup preserves startup errors and shares one disposal attempt.Preserve machine-readable error properties from remote bindings
Enable enhanced error serialization on the remote proxy Worker used by Vite plugin v1. Combined with Miniflare 5.20261023.1-beta, remote binding errors retain properties such as
codeandnumericCodeso Worker code can handle them without parsing error messages.
Minor Changes
Update the development registry to use the canonical Cloudflare path
Upgrade Miniflare to 5.20261023.1-beta and Wrangler to 4.154.0. Vite plugin v1 now uses
CLOUDFLARE_DEV_REGISTRY_PATHor<Cloudflare config directory>/dev-registry/v5for Worker discovery.MINIFLARE_REGISTRY_PATHis no longer read. When mixing Vite and Wrangler development sessions, set the sameCLOUDFLARE_DEV_REGISTRY_PATHfor both because Wrangler retains its legacy default.Support remote Hyperdrive bindings in Vite plugin v1 development and preview
Set
remote: trueon a Hyperdrive binding inwrangler.jsoncto connect to its deployed configuration without a local database connection string. The retained remote proxy exposes the binding's connection string and socket streams, and remote session cleanup preserves startup errors and shares one disposal attempt.
Patch Changes
Preserve machine-readable error properties from remote bindings
Enable enhanced error serialization on the remote proxy Worker used by Vite plugin v1. Combined with Miniflare 5.20261023.1-beta, remote binding errors retain properties such as
codeandnumericCodeso Worker code can handle them without parsing error messages.Prevent malformed token-exchange responses from crashing remote binding startup
Update the Undici dependency bundled from the retained remote-bindings package to
7.30.1. Responses with excessive content encodings now reject without a later unhandled stream error when the server closes the connection early.Update the retained asset configuration validator to Zod 4.6.6
The Vite plugin validates
_headersand_redirectsthrough its private workers-shared package. Update that bundled copy to address excessive memory consumption when validating oversized collections.Update Vite plugin v1 to the October 23 Workers runtime
Use Miniflare
5.20261023.0-betaand the matching Wrangler release for local development and preview. Align bundled helpers and Workers types with this runtime, and use2026-10-23as the fallback compatibility date when none is configured. The runtime and helper updates also prevent malformed HTTP responses with excessive content encodings from causing unhandled stream errors. The published helpers also update their bundled Zod validator and fix Windows keyring setup for remote-binding credentials when the configuration path contains spaces.Treat
cloudflare:durable-objectsas a built-in runtime moduleWorkers can import
retryable()fromcloudflare:durable-objectsto mark Durable Object methods as safe to retry. The plugin now leaves that import for the runtime to resolve, as it does forcloudflare:workers, instead of trying to resolve it as a package.Preserve a Worker response's
statusTextin Vite dev and previewResponses such as
new Response(body, { status: 231, statusText: "Custom" })now reach the browser as231 Custominstead of231 unknown. Empty status text is also preserved over HTTP/1.x.Preserve separate
Set-Cookierequest headers in Vite dev and previewWorkers now receive each incoming
Set-Cookievalue separately for HTTP requests and WebSocket upgrades, including values with commas in anExpiresdate. Previously, multiple values could be combined into one header.Fix a dev server failing to start when an earlier dev server in the same process had different Worker exports
The Vite plugin now clears the Worker export types it detected when a dev server closes. A dev server created afterwards in the same process derives them from its own config again, so it no longer fails with
Class extends value undefinedfor a Durable Object the earlier server's Worker did not export.Fix Vite DevTools WebSocket connections closing unexpectedly
Leave upgrades at
/__devtools/__wsto Vite DevTools instead of forwarding them to the Worker. Sandbox preview requests continue to reach the Worker.
1.65.0
23 Oct 2026- removed
Remove the
experimental.newConfigoption from Vite plugin v1Vite plugin v1 now supports Wrangler configuration files only. Projects using
cloudflare.config.tsfor configuration should upgrade to Vite plugin v2 beta. Report unsupported remote bindings under Bun instead of hanging
Starting remote bindings now fails with an actionable error explaining Bun's unsupported request routing. Use Node.js or disable remote bindings to continue local development.
Fix Container setup guidance in Vite development and preview
Container registry instructions now show the Wrangler command and the configuration location, including Wrangler files and inline Vite configuration.
Minor Changes
- removed
Remove the
experimental.newConfigoption from Vite plugin v1Vite plugin v1 now supports Wrangler configuration files only. Projects using
cloudflare.config.tsfor configuration should upgrade to Vite plugin v2 beta.
Patch Changes
Report unsupported remote bindings under Bun instead of hanging
Starting remote bindings now fails with an actionable error explaining Bun's unsupported request routing. Use Node.js or disable remote bindings to continue local development.
Fix Container setup guidance in Vite development and preview
Container registry instructions now show the Wrangler command and the configuration location, including Wrangler files and inline Vite configuration.
Update the local Workers runtime to the October 19 release
Include the fix for nested asset paths during local development on Windows, together with the compatible Wrangler release.
The runtime update also disposes Workflow step results and introspection modifiers after use, preventing undisposed RPC warnings and cancelled local Workflow requests.
Update the local Workflow runtime to use native storage cleanup
Consume the Miniflare fix that queues Workflow persistence deletion with instance recreation, including deletion through the local Explorer. This prevents storage cleanup from racing reuse of the same Workflow instance ID.
Retry remote preview token refreshes after transient failures
Backport the retry fix to the private remote-bindings workspace package and require
wrangler@4.151.1so long-running remote development sessions recover after a network outage.Use published SDK dependencies for Vite plugin v1 maintenance
Pin the plugin's published SDK dependencies to their deployed npm versions. Keep private shared packages as workspace dependencies so their implementation and build tools remain available on the v1 maintenance branch.
Dependency tracking · free for 3 projects
Know when your own dependencies move
@cloudflare/vite-plugin published 133 releases in the last 12 months. inlinr folds the routine ones into a line and keeps the few that need you.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 4 Nov 2026. Releases and advisories last read 4 Nov 2026.