chore(deps): update dependency wrangler to v4.61.1 #585
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.59.2→4.61.1Release Notes
cloudflare/workers-sdk (wrangler)
v4.61.1Compare Source
Patch Changes
#12189
eb8a415Thanks @NuroDev! - Fixed Durable Object missing migrations warning message.If a Workers project includes some
durable_objectsin it but nomigrationswe show a warning to the user to addmigrationsto their config. However, this warning recommendednew_classesfor their migrations, but we instead now recommend all users usenew_sqlite_classesinstead.#11804
3b06b18Thanks @emily-shen! - fix: allowd1 execute,d1 export, andd1 migrationsto work locally withoutdatabase_idin config.#12183
17961bbThanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#12196
52fdfe7Thanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#12199
6d8d9cdThanks @petebacondarwin! - Preventwrangler logoutfrom failing when the Wrangler configuration file is invalidPreviously, if your
wrangler.tomlorwrangler.jsonfile contained syntax errors or invalid values, thewrangler logoutcommand would fail. Now, configuration parsing errors are caught and logged at debug level, allowing you to log out regardless of the state of your configuration file.#12153
cb72c11Thanks @petebacondarwin! - Sanitize commands and arguments in telemetry to prevent accidentally capturing sensitive information.Changes:
command/argstosanitizedCommand/sanitizedArgsto distinguish from historical fields that may have contained sensitive data in older versionsCOMMAND_ARG_ALLOW_LISTUpdated dependencies [
8a210af,17961bb,52fdfe7,5f060c9]:v4.61.0Compare Source
Minor Changes
#12008
e414f05Thanks @penalosa! - Add support for customising the inspector IP addressAdds a new
--inspector-ipCLI flag anddev.inspector_ipconfiguration option to allow customising the IP address that the inspector server listens on. Previously, the inspector was hardcoded to listen only on127.0.0.1.Example usage:
# CLI flag wrangler dev --inspector-ip 0.0.0.0#12034
05714f8Thanks @emily-shen! - Add a no-op local explorer worker, which is gated by the experimental flagX_LOCAL_EXPLORER.Patch Changes
#12134
a0a9ef6Thanks @NuroDev! - Fixed Fish shell tab completions.The
wranglertab completions are powered by@bomb.sh/tabwhich has been upgraded to version0.0.12which includes a fix for the Fish shell which was previously not working at all.#12006
ad4666cThanks @penalosa! - Remove--use-remoteoption fromwrangler hyperdrive createcommandHyperdrive does not support remote bindings during local development - it requires a
localConnectionStringto connect to a local database. This change removes the confusing "remote resource" prompt that was shown when creating a Hyperdrive config.Fixes #11674
#11853
014e7aaThanks @43081j! - Use built-in stripVTControlCharacters utility rather than thestrip-ansipackage.#12040
77e82d2Thanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#12061
f08ef21Thanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#12088
0641e6cThanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#12044
eacedbaThanks @edmundhung! - Fixwrangler secret listto error when the Worker is not foundPreviously, running
wrangler secret listagainst a non-existent Worker would silently return an empty array, making it difficult to diagnose issues like being logged into the wrong account. It now returns an error with suggestions for common causes.#12150
e8b2ef5Thanks @dario-piotrowicz! - Emit autoconfig summary as a separate output entryMove the autoconfig summary from the
deployoutput entry to a dedicatedautoconfigoutput entry type. This entry is now emitted by bothwrangler deployandwrangler setupcommands when autoconfig runs, making it easier to track autoconfig results independently of deployments.Updated dependencies [
014e7aa,e414f05,77e82d2,f08ef21,0641e6c,05714f8,bbd8a5e]:v4.60.0Compare Source
Minor Changes
#11113
bba0968Thanks @AmirSa12! - Addwrangler completecommand for shell completion scripts (bash, zsh, powershell)Usage:
@bomb.sh/tablibrary for cross-shell compatibilityexperimental_getWranglerCommands()API#11893
f9e8a45Thanks @NuroDev! -wrangler typesnow generates per-environment TypeScript interfaces when named environments exist in your configuration.When your configuration has named environments (an
envobject),wrangler typesnow generates both:StagingEnv,ProductionEnv) containing only the bindings explicitly declared in each environment, plus inherited secretsEnvinterface with all bindings from all environments (top-level + named environments), where:KVNamespace | R2Bucket)However, if your config does not contain any environments, or you manually specify an environment via
--env,wrangler typeswill continue to generate a single interface as before.Example:
Given the following
wrangler.jsonc:{ "name": "my-worker", "kv_namespaces": [ { "binding": "SHARED_KV", "id": "abc123", }, ], "env": { "staging": { "kv_namespaces": [ { "binding": "SHARED_KV", "id": "staging-kv" }, { "binding": "STAGING_CACHE", "id": "staging-cache" }, ], }, }, }Running
wrangler typeswill generate:Patch Changes
#12030
614bbd7Thanks @jbwcloudflare! - Fixwrangler pages project validateto respect file count limits fromCF_PAGES_UPLOAD_JWT#11993
788bf78Thanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#12039
1375577Thanks @dimitropoulos! - Fixed the flag casing for the time period flag for thed1 insightscommand.#12026
c3407adThanks @dario-piotrowicz! - Fixwrangler setupnot automatically selectingworkersas the target for new SvelteKit appsThe Sveltekit
adapter:cloudflareadapter now accepts two different targetsworkersorpages. Since the wrangler auto configuration only targets workers, wrangler should instruct the adapter to use theworkersvariant. (The auto configuration process would in any case not work if the user were to targetpages.)Updated dependencies [
788bf78,ae108f0]:v4.59.3Compare Source
Patch Changes
#9396
75386b1Thanks @gnekich! - Fixwrangler loginwith customcallback-host/callback-portThe Cloudflare OAuth API always requires the
redirect_urito belocalhost:8976. However, sometimes the Wrangler OAuth server needed to listen on a different host/port, for example when running from inside a container. We were previously incorrectly setting theredirect_urito the configured callback host/port, but it needs to be up to the user to maplocalhost:8976to the Wrangler OAuth server in the container.Example:
You might run Wrangler inside a docker container like this:
docker run -p 8989:8976 <image>, which forwards port 8976 on your host to 8989 inside the container.Then inside the container, run
wrangler login --callback-host=0.0.0.0 --callback-port=8989The OAuth link still has a
redirect_uriset tolocalhost:8976. For examplehttps://dash.cloudflare.com/oauth2/auth?...&redirect_uri=http%3A%2F%2Flocalhost%3A8976%2Foauth%2Fcallback&...However the redirect to
localhost:8976is then forwarded to the Wrangler OAuth server inside your container, allowing the login to complete.#11925
8e4a0e5Thanks @dependabot! - chore: update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#11942
133bf95Thanks @penalosa! - chore: update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#11922
93d8d78Thanks @dario-piotrowicz! - Improve telemetry errors being sent to Sentry bywrangler initwhen it delegates to C3 by ensuring that they contain the output of the C3 execution.#11940
69ff962Thanks @penalosa! - Show helpful messages for file not found errors (ENOENT)When users encounter file not found errors, Wrangler now displays a helpful message with the missing file path and common causes, instead of reporting to Sentry.
#11904
22727c2Thanks @danielrs! - Fix false positive infinite loop detection for exact path redirectsFixed an issue where the redirect validation incorrectly flagged exact path redirects like
/ /index.html 200as infinite loops. This was particularly problematic whenhtml_handlingis set to "none", where such redirects are valid.The fix makes the validation more specific to only block wildcard patterns (like
/* /index.html) that would actually cause infinite loops, while allowing exact path matches that are valid in certain configurations.Fixes: #11824
#11946
fa39a73Thanks @MattieTK! - FixconfigFileNamereturning wrong filename for.jsoncconfig filesPreviously, users with a
wrangler.jsoncconfig file would see error messages and hints referring towrangler.jsoninstead ofwrangler.jsonc. This was because theconfigFormatfunction collapsed both.jsonand.jsoncfiles into a single"jsonc"value, losing the distinction between them.Now
configFormatreturns"json"for.jsonfiles and"jsonc"for.jsoncfiles, allowingconfigFileNameto return the correct filename for each format.#11968
4ac7c82Thanks @MattieTK! - fix: include version components in command event metricsAdds
wranglerMajorVersion,wranglerMinorVersion, andwranglerPatchVersionto command events (wrangler command started,wrangler command completed,wrangler command errored). These properties were previously only included in adhoc events.#11940
69ff962Thanks @penalosa! - Improve error message when creating duplicate KV namespaceWhen attempting to create a KV namespace with a title that already exists, Wrangler now provides a clear, user-friendly error message instead of the generic API error. The new message explains that the namespace already exists and suggests running
wrangler kv namespace listto see existing namespaces with their IDs, or choosing a different namespace name.#11962
029531aThanks @dario-piotrowicz! - Cache chosen account in memory to avoid repeated promptsWhen users have multiple accounts and no
node_modulesdirectory exists for file caching, Wrangler (run vianpxand equivalent commands) would prompt for account selection multiple times during a single command. Now the selected account is also stored in process memory, preventing duplicate prompts and potential issues from inconsistent account choices.#11964
d58fbd1Thanks @dario-piotrowicz! - Makenamethe positional argument forwrangler deleteinstead ofscriptThe
scriptargument was meaningless for the delete command since it deletes by worker name, not by entry point path. Thenameargument is now accepted as a positional argument, allowing users to runwrangler delete my-workerinstead ofwrangler delete --name my-worker. Thescriptargument is now hidden but still accepted for backwards compatibility.#11967
202c59eThanks @emily-shen! - chore: update undiciThe following dependency versions have been updated:
#11940
69ff962Thanks @penalosa! - Improve error handling for Vite config transformationsReplace assertions with proper error handling when transforming Vite configs. When Wrangler encounters a Vite config that uses a function or lacks a plugins array, it now provides clear, actionable error messages instead of crashing with assertion failures. The check function gracefully skips incompatible configs with debug logging.
Updated dependencies [
8e4a0e5,133bf95,202c59e,133bf95,25e2c60]:Configuration
📅 Schedule: Branch creation - "before 3am" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.