Repository navigation
Releases
@cloudflare/vite-plugin@1.72.1
Patch Changes
-
#17380
f51bd35Thanks @workers-devprod! - Bumpwsto 8.23.1 to address GHSA-37g9-w4hg-h9qrGHSA-37g9-w4hg-h9qr (high severity) reports a memory-exhaustion DoS in
ws@>=8.0.0 <8.23.0: a malicious peer can flood the other side with ping frames while not reading, forcing it to buffer the automatic pong replies until the process runs out of memory. The plugin pinswsexactly, so this updates it to the patched 8.23.1. -
#17380
f51bd35Thanks @workers-devprod! - Forward HTTP responses to rejected WebSocket upgrades invite devandvite previewPreviously, the connection could close before clients received an HTTP response. When Vite receives a rejection response from the local Workers runtime, it now sends the status code, headers, and body to the client before closing the connection.
-
#17380
f51bd35Thanks @workers-devprod! - Apply the headers of every_headersblock for a repeated Workers Static Assets pathWorkers Static Assets local development now merges repeated path blocks like production: repeated header names are combined in file order, and
!unsets are applied before all assignments for that path, even when the unset appears in a later block.When multiple distinct paths match a request, local development now applies those rules in sorted path-key order rather than file order, matching the production deploy pipeline. This also applies to the experimental
_headerssupport in Vite dev, so it agrees with Vite preview. -
#17380
f51bd35Thanks @workers-devprod! - Update to the December 3 Workers SDK releaseThe plugin now uses Wrangler 4.171.0 (and requires at least that version as a peer dependency), Miniflare 5.20261201.0-beta with workerd 1.20261201.1, and
@cloudflare/workers-utils0.61.0. This brings in the 2026-12-01 compatibility date, local Workflowcreate()andcreateBatch()errors that match production, and theContent-Encodingand connection cleanup fixes for rejected WebSocket upgrades.
wrangler@4.171.0
Minor Changes
-
#16694
ae8bcf3Thanks @skepticfx! - Warn when deploying Containers with the deprecated default scheduling policyDeploying a Worker or uploading a new version now displays a nonblocking deprecation warning for Container applications configured with the
defaultscheduling policy, including when the policy is omitted. The warning identifies affected applications and links to migration instructions for Durable Object scheduling. Existing applications require code changes and a replacement application; changing the policy setting alone does not migrate them. -
#17319
2e19c17Thanks @danlapid! - Include Worker source maps by default only when observability is enabledSource maps are only used to show readable stack traces, so Wrangler now uploads them by default only when the Worker's config enables
observability(logs, traces or Issues). This applies towrangler deploy,wrangler versions upload,wrangler previewandwrangler build --experimental-cf-build-output. The Cloudflare Vite plugin likewise emits Worker source maps by default only whenobservabilityis enabled.Set
upload_source_maps = true(or Vite'sbuild.sourcemap) to always include them, for example to get source-mapped stack traces inwrangler tailor Tail Workers without enabling observability. Set it tofalseto never include them.
Patch Changes
-
#17346
8a8df5cThanks @DEY-code-007! - Bumpwsfrom 8.21.0 to 8.23.1 to address GHSA-37g9-w4hg-h9qrGHSA-37g9-w4hg-h9qr (high severity) reports a memory-exhaustion DoS in
ws@>=8.0.0 <8.23.0: a malicious peer can flood the other side with ping frames while not reading, forcing it to buffer the automatic pong replies until the process runs out of memory. The fix shipped in ws@8.23.0 (commitace7248f, which also adds themaxPendingAutoPongsoption); this bumps the workspace catalog entry to the latest patch release, 8.23.1, so thatminiflare,wrangler,@cloudflare/vite-pluginand@cloudflare/deploy-helpersall pick up the patched version. Becauseminiflarepinswsexactly, downstream projects cannot clear thenpm auditfinding with a lockfile update alone. -
#17334
265616bThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-12-01Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
#17334
265616bThanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
Dependency From To @cloudflare/workers-types ^5.20261129.1 ^5.20261201.1 workerd 1.20261129.1 1.20261201.1 -
#17305
222f836Thanks @edmundhung! - Keep the final newline and line-ending style of config files edited during setupSetup used to drop the trailing newline from every config file it edited, such as
vite.config.ts, even when nothing else changed, and rewrote its line endings to the operating system's. Edited files now keep their final newline and use the LF or CRLF style of their first line. -
#17086
9df88dcThanks @iglesiasbrandon! - Make local Workflowcreate()andcreateBatch()errors match productionIn local development,
create()andcreateBatch()now reject invalid options, IDs and params as production does, with the same error codes. They reject with a plainErrorwhose message starts with the code, such as(body)or(instance.invalid_id). Previously they threw aWorkflowError, which arrived as anErrorwhose message began withWorkflowError:unless the Worker listed theenhanced_error_serializationcompatibility flag explicitly.- Invalid options, such as a non-string
id, an unparseableretentionduration or an unknownlocationHint, reject with(body)followed by each problem.createBatch()checks every entry's options before any ID, and accepts zero and negativeretentiondurations, ascreate()and production do. - IDs that are too long, use unsupported characters, or are reserved (
batch,terminate,terminateAll, orcf_followed by 64 lowercase hexadecimal characters) reject with(instance.invalid_id). - Params that Durable Object storage cannot clone, such as functions, RPC targets and streams, no longer create an instance that stays queued forever.
create()rejects with(body) Provided instance parameters are not serializable.createBatch()reports the entry inerrorswith code10002and the ID the instance would have had. An entry whose ID already exists or repeats in the batch is still reported with10405or10415. create(null)creates an instance with a generated ID instead of throwing aTypeError, andcreate({ params: null })gives the Workflow{}as its payload.- The deprecated array form of
createBatch()gets the same checks as the object form. It leaves out entries whose params cannot be stored, as it does entries with an existing or repeated ID.
- Invalid options, such as a non-string
-
#17353
b2d3840Thanks @petebacondarwin! - Render terminal control characters as visible text inwrangler devlogs and runtime errorsMake local log formatting consistent with
wrangler tail. Tabs and line breaks remain readable, and programmatic runtime error events retain their original values. -
Updated dependencies [
8a8df5c,265616b,265616b,77a77a1,1f95502,2e19c17,1f95502,9df88dc]:- miniflare@5.20261201.0-beta
- @cloudflare/workers-utils@0.61.0
create-cloudflare@2.75.4
Patch Changes
-
#17334
265616bThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-12-01Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
#17305
222f836Thanks @edmundhung! - Keep the final newline and line-ending style of config files edited during setupSetup used to drop the trailing newline from every config file it edited, such as
vite.config.ts, even when nothing else changed, and rewrote its line endings to the operating system's. Edited files now keep their final newline and use the LF or CRLF style of their first line.
@cloudflare/workers-utils@0.61.0
Minor Changes
-
#17319
2e19c17Thanks @danlapid! - Include Worker source maps by default only when observability is enabledSource maps are only used to show readable stack traces, so Wrangler now uploads them by default only when the Worker's config enables
observability(logs, traces or Issues). This applies towrangler deploy,wrangler versions upload,wrangler previewandwrangler build --experimental-cf-build-output. The Cloudflare Vite plugin likewise emits Worker source maps by default only whenobservabilityis enabled.Set
upload_source_maps = true(or Vite'sbuild.sourcemap) to always include them, for example to get source-mapped stack traces inwrangler tailor Tail Workers without enabling observability. Set it tofalseto never include them.
Patch Changes
-
#17334
265616bThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-12-01Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
@cloudflare/workers-auth@0.19.3
Patch Changes
-
#17334
265616bThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-12-01Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
Updated dependencies [
265616b,2e19c17]:- @cloudflare/workers-utils@0.61.0
@cloudflare/vitest-plugin@1.10.3
Patch Changes
-
#17334
265616bThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-12-01Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
Updated dependencies [
8a8df5c,265616b,265616b,77a77a1,1f95502,1f95502,9df88dc]:
@cloudflare/vite-plugin@1.72.0
Minor Changes
-
#17315
05a8bedThanks @petebacondarwin! - Add local development support for/cdn-cgi/image/URL transformationsEnable
images.url_transformationsin the Wrangler configuration to transform images locally, including files served by Vite frompublic/and through a parent server in middleware mode. Local transforms use the low-fidelity Sharp mock: resize, rotate, format conversion and a small set of options. Requests return 404 when transformations are disabled and 403 for disallowed origins, instead of reaching the Worker.Same-host image sources are checked against
allowed_originsusing the hostname of the first configured route. Projects without a route continue to allow local sources. -
#17171
e77f312Thanks @petebacondarwin! - Supportoidc_tokensbindings in Vite buildsVite validates OIDC audiences and preserves the binding's audience and optional signing algorithm in the generated Wrangler configuration. OIDC tokens identify the deployed Worker; signing tokens remains unsupported in local development.
-
#17171
e77f312Thanks @petebacondarwin! - Add RealtimeKit remote bindings during local developmentConfigure a RealtimeKit binding with its
app_idandremote: truein your Wrangler configuration to use an existing RealtimeKit app through the remote bindings proxy. RealtimeKit has no local simulator.
Patch Changes
-
#17293
a3806f7Thanks @petebacondarwin! - Update the local runtime to the November 29 releaseUpdate Miniflare to 5.20261129.0-beta and require Wrangler 4.170.0 or newer. Projects without an explicit compatibility date default to November 29, 2026. Local Artifacts keeps its Git port reserved during startup and stable across configuration reloads, avoiding intermittent address-in-use failures.
-
#17171
e77f312Thanks @petebacondarwin! - Usedatabase_idfor D1 bindings in remote preview uploadsRemote D1 bindings can connect to the configured database because preview uploads now use the field expected by the Workers API. Existing D1 binding configuration continues to use
database_id. -
#17171
e77f312Thanks @petebacondarwin! - ExposeEmailMessage.rawas a byte stream during local developmentPreserve string and stream email inputs as readable byte streams, including Unicode content. Keep the remote email proxy compatible with legacy string payloads and the updated runtime payload format.
-
#17171
e77f312Thanks @petebacondarwin! - Acceptfedramp-highinCLOUDFLARE_COMPLIANCE_REGIONBoth
fedramp-highandfedramp_highselect the FedRAMP High region, including when Vite requests managed Container registry credentials. OAuth login errors now identifyCLOUDFLARE_COMPLIANCE_REGIONas the setting to remove when using OAuth instead of an API token. -
#17171
e77f312Thanks @petebacondarwin! - Handle asset directory symlinks safely in Vite previewUpgrade Miniflare so preview skips ignored directories, serves directory aliases using their URL paths, and stops following symlinks back to an ancestor instead of failing with too many symbolic links.
@cloudflare/vite-plugin@1.71.0
Minor Changes
-
86813c9Thanks @danlapid! - Emit Worker source maps by default only when observability is enabledSource maps are only used to show readable stack traces, so the plugin now generates Worker source maps by default only when the Worker's config enables
observability(logs, traces or Issues). Vite'sbuild.sourcemapor the Worker'supload_source_mapsstill override the default, so set either totrueto always emit source maps, for example to get source-mapped stack traces inwrangler tailor Tail Workers without enabling observability.