github cloudflare/workers-sdk wrangler@4.170.0

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.

  • #17266 b9bb1b0 Thanks @dependabot! - Support Analog 3 in wrangler setup

    Configure Analog’s standalone Nitro Vite plugin for Cloudflare Workers. Both wrangler setup and create-cloudflare configure the Minimal starter as a static site. Analog 2 projects continue to use the Nitro options on the Analog Vite plugin. Projects using native Nitro 3 (nitro/vite) should use Nitro’s generated Wrangler configuration instead.

Patch Changes

  • #17258 e96e508 Thanks @irvinebroque! - Show the plan-specific Time Travel retention window in wrangler d1 time-travel restore --help

    Previously, the --timestamp description said every database keeps 30 days of history, but databases on Workers Free only keep 7 days. The help text now lists the window for each plan. The error for a timestamp older than 30 days now lists both windows too.

  • #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.

  • #17284 5b6e6bf Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"

    The following dependency versions have been updated:

    Dependency From To
    @cloudflare/workers-types ^5.20261127.1 ^5.20261129.1
    workerd 1.20261127.1 1.20261129.1
  • #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.

  • #17217 fd54492 Thanks @irvinebroque! - Emit explicit removal warnings for removed type and zone_id configuration fields

    Legacy Wrangler v3 type and zone_id fields now emit explicit removal warnings with migration guidance instead of being flagged as unexpected fields with a misleading "Try upgrading Wrangler" hint.

  • #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, 5b6e6bf, 5b6e6bf, 7d57524, fd54492, 2a10aff]:

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.