github cloudflare/workers-sdk @cloudflare/vite-plugin@1.72.0

one hour ago

Minor Changes

  • #17315 05a8bed Thanks @petebacondarwin! - Add local development support for /cdn-cgi/image/ URL transformations

    Enable images.url_transformations in the Wrangler configuration to transform images locally, including files served by Vite from public/ 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_origins using the hostname of the first configured route. Projects without a route continue to allow local sources.

  • #17171 e77f312 Thanks @petebacondarwin! - Support oidc_tokens bindings in Vite builds

    Vite 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 e77f312 Thanks @petebacondarwin! - Add RealtimeKit remote bindings during local development

    Configure a RealtimeKit binding with its app_id and remote: true in your Wrangler configuration to use an existing RealtimeKit app through the remote bindings proxy. RealtimeKit has no local simulator.

Patch Changes

  • #17293 a3806f7 Thanks @petebacondarwin! - Update the local runtime to the November 29 release

    Update 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 e77f312 Thanks @petebacondarwin! - Use database_id for D1 bindings in remote preview uploads

    Remote 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 e77f312 Thanks @petebacondarwin! - Expose EmailMessage.raw as a byte stream during local development

    Preserve 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 e77f312 Thanks @petebacondarwin! - Accept fedramp-high in CLOUDFLARE_COMPLIANCE_REGION

    Both fedramp-high and fedramp_high select the FedRAMP High region, including when Vite requests managed Container registry credentials. OAuth login errors now identify CLOUDFLARE_COMPLIANCE_REGION as the setting to remove when using OAuth instead of an API token.

  • #17171 e77f312 Thanks @petebacondarwin! - Handle asset directory symlinks safely in Vite preview

    Upgrade 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.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.