Skip to content

@cloudflare/workers-utils@0.60.0

Choose a tag to compare

@workers-devprod workers-devprod released this 01 Dec 12:03
· 2 commits to main since this release
Immutable release. Only release title and notes can be modified.
b1e0183

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.

  • #17299 2a10aff Thanks @edmundhung! - Add a wranglerConfigName option to getWorkerName

    getWorkerName now accepts the name from the project's Wrangler config and returns it as written, because it names an existing Worker. WRANGLER_CI_OVERRIDE_NAME still takes precedence, and the project and folder names it falls back to are still made valid.

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.

  • #16678 7d57524 Thanks @mglewis! - Clarify the images.url_transformations.allowed_origins documentation

    When allowed_origins is set, only the listed origins are allowed. The Worker's own zone isn't included unless it's listed.

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