github cloudflare/workers-sdk @cloudflare/vite-plugin@2.0.0-beta.v.13

pre-releaseone hour ago

Minor Changes

  • #16599 dee7a1d Thanks @petebacondarwin! - Support CLOUDFLARE_AUTH_PROFILE for shared authentication profile selection

    Cloudflare tooling can pass a selected profile to child processes through CLOUDFLARE_AUTH_PROFILE. Explicit profile arguments take precedence over the variable, followed by directory bindings and the default profile. The cf-wrangler development delegate also initializes cf authentication so it reads the selected cf credentials.

    Experimental cf development delegates inherit the selected profile without additional command-line flags. Vite refreshes remote authentication when the resolved profile changes, and cf-wrangler keeps its authentication scoped to the delegate invocation.

Patch Changes

  • #16608 0d9cf4e Thanks @petebacondarwin! - Preserve the server origin when constructing Worker request URLs

    HTTP requests, WebSocket upgrades, and static routing now consistently treat incoming paths as paths on the selected server origin in dev and preview. Encoded paths and query strings are preserved, and non-origin-form request targets are rejected.

  • #16683 6f29f97 Thanks @jamesopstad! - Stop persisting account selections made by cf and the Cloudflare Vite and Vitest plugins

    Profiles continue to select credentials rather than accounts. If the active credentials can access one account, it is selected automatically. If they can access multiple accounts, cf and the Vite and Vitest plugins reuse the selection while running but ask again the next time they start. Configure accountId in cloudflare.config.ts or set the CLOUDFLARE_ACCOUNT_ID environment variable to avoid repeated prompts.

    Wrangler's existing persistent account selection remains unchanged.

  • #16746 abf924e Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-06

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #16792 de10016 Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-09

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #16413 3ef2afd Thanks @ghostwriternr! - Remove Container networking sidecars and snapshot clone volumes in local development

    Wrangler and the Vite plugin removed only the application containers of Container-enabled Durable Objects, found by image tag, and left behind the networking sidecars and snapshot clone volumes that workerd also creates. They now leave cleanup to Miniflare, which removes all of these when the Container configuration changes, such as after a rebuild, when local development stops, and when the process exits.

  • #16736 245d09f Thanks @edmundhung! - Set the Build Output directories before other plugins read the resolved config

    Plugins that read an environment's build.outDir in their configResolved hook now see the Build Output directory, instead of the directory from before the Cloudflare plugin moved it.

  • Updated dependencies [fea323a, 56459a5, abf924e, de10016, abf924e, de10016, 66bc0d6, c64fdfb]:

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.