github cloudflare/workers-sdk wrangler@4.168.0

latest releases: @cloudflare/workers-auth@0.18.8, @cloudflare/pages-shared@0.13.220, @cloudflare/vitest-plugin@1.9.2...
2 hours ago

Minor Changes

  • #16680 96e936c Thanks @mglewis! - Apply images.url_transformations when deploying a Worker

    wrangler deploy and wrangler versions deploy now apply the images.url_transformations setting to the deployed Worker. The setting is applied after the Worker and its triggers have been deployed. If it can't be applied, the command fails with the reason from the API. Removing url_transformations from the configuration leaves the Worker's existing setting in place.

    The setting isn't applied for --dry-run, wrangler versions upload, or Workers deployed to a dispatch namespace.

Patch Changes

  • #17063 6c45ad7 Thanks @sidharthachatterjee! - Request the billing scopes when logging in with cf and Wrangler

    Include billing:write in the default OAuth scopes of cf and Wrangler so they can create account subscriptions, which is how products such as R2 are enabled on an account. cf also requests billing:read. Existing OAuth sessions need a new login to request the scopes.

  • #16947 de6b171 Thanks @umeraamir69! - Fix WRANGLER_LOG_PATH being ignored when set in vite.config.ts after a static import of @cloudflare/vite-plugin

    The debug log filepath is now resolved lazily on first write (memoized), matching how WRANGLER_WRITE_LOGS is read. Setting process.env.WRANGLER_LOG_PATH in the Vite config body after importing the plugin now writes logs to the configured path instead of the global default directory.

  • Updated dependencies [3d228ba]:

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.