Skip to content

Releases: cloudflare/workers-sdk

wrangler@4.59.2

15 Jan 11:22
bca7114

Choose a tag to compare

Patch Changes

  • #11908 e78186d Thanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20260111.0 1.20260114.0
  • #11880 fe4faa3 Thanks @penalosa! - Show helpful messages for errors outside of Wrangler's control. This prevents unnecessary Sentry reports.

    Errors now handled with user-friendly messages:

    • Connection timeouts to Cloudflare's API (UND_ERR_CONNECT_TIMEOUT) - typically due to slow networks or connectivity issues
    • File system permission errors (EPERM, EACCES) - caused by insufficient permissions, locked files, or antivirus software
    • DNS resolution failures (ENOTFOUND) - caused by network connectivity issues or DNS configuration problems
  • #11882 695b043 Thanks @GregBrimble! - Improve the error message for wrangler secret put when using Worker versions or gradual deployments. wrangler versions secret put should be used instead, or ensure to deploy the latest version before using wrangler secret put. wrangler secret put alone will add the new secret to the latest version (possibly undeployed) and immediately deploy that which is usually not intended.

  • Updated dependencies [e78186d, fec8f5b, d39777f, 4714ca1, c17e971]:

    • miniflare@4.20260114.0
    • @cloudflare/unenv-preset@2.10.0
    • @cloudflare/kv-asset-handler@0.4.2

miniflare@4.20260114.0

15 Jan 11:22
bca7114

Choose a tag to compare

Minor Changes

  • #11883 4714ca1 Thanks @dario-piotrowicz! - Add MF-Original-Hostname header when using the upstream option

    When using the upstream option in Miniflare, the Host header is rewritten to match the upstream server, which means the original hostname is lost. This change adds a new MF-Original-Hostname header that preserves the original hostname from the incoming request.

    This allows Workers to access the original hostname when proxying requests through an upstream server:

    export default {
    	async fetch(request) {
    		const originalHostname = request.headers.get("MF-Original-Hostname");
    		// originalHostname contains the hostname before it was rewritten
    	},
    };

Patch Changes

  • #11908 e78186d Thanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20260111.0 1.20260114.0
  • #11898 c17e971 Thanks @petebacondarwin! - Bundle more third-party dependencies to reduce supply chain risk

    Previously, several small utility packages were listed as runtime dependencies and
    installed separately. These are now bundled directly into the published packages,
    reducing the number of external dependencies users need to trust.

    Bundled dependencies:

    • miniflare: acorn, acorn-walk, exit-hook, glob-to-regexp, stoppable
    • kv-asset-handler: mime
    • vite-plugin-cloudflare: @remix-run/node-fetch-server, defu, get-port, picocolors, tinyglobby
    • vitest-pool-workers: birpc, devalue, get-port, semver

@cloudflare/vitest-pool-workers@0.12.4

15 Jan 11:22
bca7114

Choose a tag to compare

Patch Changes

  • #11898 c17e971 Thanks @petebacondarwin! - Bundle more third-party dependencies to reduce supply chain risk

    Previously, several small utility packages were listed as runtime dependencies and
    installed separately. These are now bundled directly into the published packages,
    reducing the number of external dependencies users need to trust.

    Bundled dependencies:

    • miniflare: acorn, acorn-walk, exit-hook, glob-to-regexp, stoppable
    • kv-asset-handler: mime
    • vite-plugin-cloudflare: @remix-run/node-fetch-server, defu, get-port, picocolors, tinyglobby
    • vitest-pool-workers: birpc, devalue, get-port, semver
  • Updated dependencies [e78186d, fe4faa3, 4714ca1, c17e971, 695b043]:

    • miniflare@4.20260114.0
    • wrangler@4.59.2

@cloudflare/vite-plugin@1.21.0

15 Jan 11:22
bca7114

Choose a tag to compare

Minor Changes

  • #11879 5c8ff05 Thanks @jamesopstad! - Add support for child environments.

    This is to support React Server Components via @vitejs/plugin-rsc and frameworks that build on top of it. A childEnvironments option is now added to the plugin config to enable using multiple environments within a single Worker. The parent environment can import modules from a child environment in order to access a separate module graph. For a typical RSC use case, the plugin might be configured as in the following example:

    export default defineConfig({
    	plugins: [
    		cloudflare({
    			viteEnvironment: {
    				name: "rsc",
    				childEnvironments: ["ssr"],
    			},
    		}),
    	],
    });

Patch Changes

  • #11898 c17e971 Thanks @petebacondarwin! - Bundle more third-party dependencies to reduce supply chain risk

    Previously, several small utility packages were listed as runtime dependencies and
    installed separately. These are now bundled directly into the published packages,
    reducing the number of external dependencies users need to trust.

    Bundled dependencies:

    • miniflare: acorn, acorn-walk, exit-hook, glob-to-regexp, stoppable
    • kv-asset-handler: mime
    • vite-plugin-cloudflare: @remix-run/node-fetch-server, defu, get-port, picocolors, tinyglobby
    • vitest-pool-workers: birpc, devalue, get-port, semver
  • Updated dependencies [e78186d, fe4faa3, fec8f5b, d39777f, 4714ca1, c17e971, 695b043]:

    • miniflare@4.20260114.0
    • wrangler@4.59.2
    • @cloudflare/unenv-preset@2.10.0

@cloudflare/unenv-preset@2.10.0

15 Jan 11:22
bca7114

Choose a tag to compare

Minor Changes

  • #11701 fec8f5b Thanks @petebacondarwin! - Add support for native node:dgram module when the enable_nodejs_dgram_module compatibility flag is enabled. This feature is currently experimental and requires both the enable_nodejs_dgram_module and experimental compatibility flags to be set.

  • #11799 d39777f Thanks @petebacondarwin! - Add support for native node:_stream_wrap module when the enable_nodejs_stream_wrap_module compatibility flag is enabled. This feature is currently experimental and requires nodejs_compat, experimental, and enable_nodejs_stream_wrap_module compatibility flags to be set.

@cloudflare/pages-shared@0.13.99

15 Jan 11:22
bca7114

Choose a tag to compare

Patch Changes

@cloudflare/kv-asset-handler@0.4.2

15 Jan 11:22
bca7114

Choose a tag to compare

Patch Changes

  • #11898 c17e971 Thanks @petebacondarwin! - Bundle more third-party dependencies to reduce supply chain risk

    Previously, several small utility packages were listed as runtime dependencies and
    installed separately. These are now bundled directly into the published packages,
    reducing the number of external dependencies users need to trust.

    Bundled dependencies:

    • miniflare: acorn, acorn-walk, exit-hook, glob-to-regexp, stoppable
    • kv-asset-handler: mime
    • vite-plugin-cloudflare: @remix-run/node-fetch-server, defu, get-port, picocolors, tinyglobby
    • vitest-pool-workers: birpc, devalue, get-port, semver

wrangler@4.59.1

13 Jan 15:45
37a8607

Choose a tag to compare

Patch Changes

  • #11889 99b1f32 Thanks @emily-shen! - Use argument array when executing git commands with wrangler pages deploy

    Pass user provided values from --commit-hash safely to underlying git command.

wrangler@4.59.0

13 Jan 12:34
e98c95a

Choose a tag to compare

Minor Changes

  • #11852 ad65efa Thanks @NuroDev! - Add --check flag to wrangler types command

    The new --check flag allows you to verify that your generated types file is up-to-date without regenerating it. This is useful for CI/CD pipelines, pre-commit hooks, or any scenario where you want to ensure types have been committed after configuration changes.

    When types are up-to-date, the command exits with code 0:

    $ wrangler types --check
    ✨ Types at worker-configuration.d.ts are up to date.

    When types are out-of-date, the command exits with code 1:

    $ wrangler types --check
    ✘ [ERROR] Types at worker-configuration.d.ts are out of date. Run `wrangler types` to regenerate.

    You can also use it with a custom output path:

    $ wrangler types ./custom-types.d.ts --check
  • #11529 43d5363 Thanks @matthewdavidrodgers! - Add ability to enable higher asset count limits for Pages deployments

    Wrangler can now read asset count limits from JWT claims during Pages deployments,
    allowing users to be enabled for higher limits (up to 100,000 assets) on a per-account
    basis. The default limit remains at 20,000 assets.

  • #11755 0f8d69d Thanks @nikitassharma! - Users can now specify constraints.tiers for their container applications. tier is deprecated in favor of tiers.
    If left unset, we will default to tiers: [1, 2].
    Note that constraints is an experimental feature.

Patch Changes

  • #11820 b0e54b2 Thanks @MattieTK! - Add AI agent detection to analytics events

    Wrangler now detects when commands are executed by AI coding agents (such as Claude Code, Cursor, GitHub Copilot, etc.) using the am-i-vibing library. This information is included as an agent property in all analytics events, helping Cloudflare understand how developers interact with Wrangler through AI assistants.

    The agent property will contain the agent ID (e.g., "claude-code", "cursor-agent") when detected, or null when running outside an agentic environment.

  • #11494 ed60c4f Thanks @jalmonter! - Fix scheduled trigger warning showing undefined port

    When running wrangler dev with a worker that has cron triggers, the warning message displayed an invalid URL like curl "http://localhost:undefined/cdn-cgi/handler/scheduled" because the port wasn't yet determined when the warning was logged.

    Moved the warning to after the proxy server is fully ready, where the actual public URL and port are known.

  • #11831 faa5753 Thanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20260107.1 1.20260108.0
  • #11844 e574ef3 Thanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20260108.0 1.20260109.0
  • #11872 b6148ed Thanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20260109.0 1.20260111.0
  • #11843 ab3859c Thanks @dario-piotrowicz! - Update the Wrangler autoconfig logic to work with the latest version of Waku

    The latest version of Waku (0.12.5-1.0.0-alpha.1-0) requires a src/waku.server.tsx file instead of a src/server-entry.tsx one, so the Wrangler autoconfig logic (the logic being run as part of wrangler setup and wrangler deploy --x-autoconfig that configures a project to be deployable on Cloudflare) has been updated accordingly.

    Also the way the worker needs to handle static assets has been updated as recommended from the Waku team.

  • #11848 0eb973d Thanks @petebacondarwin! - Fix incorrect warning about multiple environments when using redirected config

    Previously, when using a redirected config (via configPath in another config file) that originated from a config with multiple environments, wrangler would incorrectly warn about missing environment specification. This fix ensures the warning is only shown when the actual config being used has multiple environments defined, not when the original config did.

  • Updated dependencies [ed60c4f, 5c59217, faa5753, e574ef3, b6148ed, beb96af, 5c59217, fc96e5f]:

    • miniflare@4.20260111.0
    • @cloudflare/unenv-preset@2.9.0

wrangler@3.114.17

13 Jan 15:41
f21ee75

Choose a tag to compare

Patch Changes

  • #11891 6d5557b Thanks @emily-shen! - Use argument array when executing git commands with wrangler pages deploy

    Pass user provided values from --commit-hash safely to underlying git command.