Releases: cloudflare/workers-sdk
wrangler@4.59.2
Patch Changes
-
#11908
e78186dThanks @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
fe4faa3Thanks @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
- Connection timeouts to Cloudflare's API (
-
#11882
695b043Thanks @GregBrimble! - Improve the error message forwrangler secret putwhen using Worker versions or gradual deployments.wrangler versions secret putshould be used instead, or ensure to deploy the latest version before usingwrangler secret put.wrangler secret putalone 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
Minor Changes
-
#11883
4714ca1Thanks @dario-piotrowicz! - AddMF-Original-Hostnameheader when using theupstreamoptionWhen using the
upstreamoption in Miniflare, theHostheader is rewritten to match the upstream server, which means the original hostname is lost. This change adds a newMF-Original-Hostnameheader 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
e78186dThanks @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
c17e971Thanks @petebacondarwin! - Bundle more third-party dependencies to reduce supply chain riskPreviously, 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
- miniflare:
@cloudflare/vitest-pool-workers@0.12.4
Patch Changes
-
#11898
c17e971Thanks @petebacondarwin! - Bundle more third-party dependencies to reduce supply chain riskPreviously, 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
- miniflare:
-
Updated dependencies [
e78186d,fe4faa3,4714ca1,c17e971,695b043]:- miniflare@4.20260114.0
- wrangler@4.59.2
@cloudflare/vite-plugin@1.21.0
Minor Changes
-
#11879
5c8ff05Thanks @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
childEnvironmentsoption 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
c17e971Thanks @petebacondarwin! - Bundle more third-party dependencies to reduce supply chain riskPreviously, 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
- miniflare:
-
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
Minor Changes
-
#11701
fec8f5bThanks @petebacondarwin! - Add support for nativenode:dgrammodule when theenable_nodejs_dgram_modulecompatibility flag is enabled. This feature is currently experimental and requires both theenable_nodejs_dgram_moduleandexperimentalcompatibility flags to be set. -
#11799
d39777fThanks @petebacondarwin! - Add support for nativenode:_stream_wrapmodule when theenable_nodejs_stream_wrap_modulecompatibility flag is enabled. This feature is currently experimental and requiresnodejs_compat,experimental, andenable_nodejs_stream_wrap_modulecompatibility flags to be set.
@cloudflare/pages-shared@0.13.99
@cloudflare/kv-asset-handler@0.4.2
Patch Changes
-
#11898
c17e971Thanks @petebacondarwin! - Bundle more third-party dependencies to reduce supply chain riskPreviously, 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
- miniflare:
wrangler@4.59.1
Patch Changes
-
#11889
99b1f32Thanks @emily-shen! - Use argument array when executing git commands withwrangler pages deployPass user provided values from
--commit-hashsafely to underlying git command.
wrangler@4.59.0
Minor Changes
-
#11852
ad65efaThanks @NuroDev! - Add--checkflag towrangler typescommandThe new
--checkflag 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
43d5363Thanks @matthewdavidrodgers! - Add ability to enable higher asset count limits for Pages deploymentsWrangler 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
0f8d69dThanks @nikitassharma! - Users can now specifyconstraints.tiersfor their container applications.tieris deprecated in favor oftiers.
If left unset, we will default totiers: [1, 2].
Note thatconstraintsis an experimental feature.
Patch Changes
-
#11820
b0e54b2Thanks @MattieTK! - Add AI agent detection to analytics eventsWrangler now detects when commands are executed by AI coding agents (such as Claude Code, Cursor, GitHub Copilot, etc.) using the
am-i-vibinglibrary. This information is included as anagentproperty in all analytics events, helping Cloudflare understand how developers interact with Wrangler through AI assistants.The
agentproperty will contain the agent ID (e.g.,"claude-code","cursor-agent") when detected, ornullwhen running outside an agentic environment. -
#11494
ed60c4fThanks @jalmonter! - Fix scheduled trigger warning showingundefinedportWhen running
wrangler devwith a worker that has cron triggers, the warning message displayed an invalid URL likecurl "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
faa5753Thanks @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
e574ef3Thanks @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
b6148edThanks @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
ab3859cThanks @dario-piotrowicz! - Update the Wrangler autoconfig logic to work with the latest version of WakuThe latest version of Waku (
0.12.5-1.0.0-alpha.1-0) requires asrc/waku.server.tsxfile instead of asrc/server-entry.tsxone, so the Wrangler autoconfig logic (the logic being run as part ofwrangler setupandwrangler deploy --x-autoconfigthat 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
0eb973dThanks @petebacondarwin! - Fix incorrect warning about multiple environments when using redirected configPreviously, when using a redirected config (via
configPathin 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
Patch Changes
-
#11891
6d5557bThanks @emily-shen! - Use argument array when executing git commands withwrangler pages deployPass user provided values from
--commit-hashsafely to underlying git command.