github cloudflare/workers-sdk @cloudflare/vite-plugin@2.0.0-rc.8

Minor Changes

  • #16678 7d57524 Thanks @mglewis! - Add local development support for /cdn-cgi/image/ URL transformations

    When images.url_transformations (or images.urlTransformations in cloudflare.config.ts) is enabled, Miniflare now handles /cdn-cgi/image/<options>/<source> requests locally before they reach your Worker. Requests return a 404 when URL transformations aren't enabled for the Worker, and a 403 when the source image isn't allowed by allowed_origins. Transforms use the same low-fidelity Sharp-backed mock as cf.image fetches, so only resize, rotate, format conversion and a small set of options are applied.

    This is a change in behaviour: previously /cdn-cgi/image/ requests were passed through to the Worker during local development.

    Requests made through SELF in @cloudflare/vitest-plugin bypass Miniflare's routing and are not intercepted.

Patch Changes

  • #17284 5b6e6bf Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-29

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

  • #17211 b91cef9 Thanks @jamesopstad! - Keep remote bindings working after a failed change to the account or API token is reverted

    Previously, changing the account ID or API token to credentials that failed to start a remote session (for example, a malformed account ID) disposed the existing session first. Reverting the change then reused that disposed session, so remote bindings stayed offline until the development server was restarted. The existing session is now disposed only once its replacement is ready, so it keeps working if the new credentials fail to start a session.

  • #17244 a332568 Thanks @dario-piotrowicz! - Explain where misplaced fields belong in cloudflare.config.ts validation errors

    Errors for top-level fields such as accountId placed under worker now explain that they belong at the top level. Worker fields placed at the top level also include a hint to move them inside worker.

  • Updated dependencies [7d57524, 97bb683, 5b6e6bf, 5b6e6bf, 7d57524, 97bb683, a332568]:

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.