Minor Changes
-
#11113
bba0968Thanks @AmirSa12! - Addwrangler completecommand for shell completion scripts (bash, zsh, powershell)Usage:
# Bash wrangler complete bash >> ~/.bashrc # Zsh wrangler complete zsh >> ~/.zshrc # Fish wrangler complete fish >> ~/.config/fish/completions/wrangler.fish # PowerShell wrangler complete powershell > $PROFILE
- Uses
@bomb.sh/tablibrary for cross-shell compatibility - Completions are dynamically generated from
experimental_getWranglerCommands()API
- Uses
-
#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:- Per-environment interfaces (e.g.,
StagingEnv,ProductionEnv) containing only the bindings explicitly declared in each environment, plus inherited secrets - An aggregated
Envinterface with all bindings from all environments (top-level + named environments), where:- Bindings present in all environments are required
- Bindings not present in all environments are optional
- Secrets are always required (since they're inherited everywhere)
- Conflicting binding types across environments produce union types (e.g.,
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:Running
wrangler typeswill generate:declare namespace Cloudflare { interface StagingEnv { SHARED_KV: KVNamespace; STAGING_CACHE: KVNamespace; } interface Env { SHARED_KV: KVNamespace; // Required: in all environments STAGING_CACHE?: KVNamespace; // Optional: only in staging } } interface Env extends Cloudflare.Env {}
- Per-environment interfaces (e.g.,
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:
Dependency From To workerd 1.20260116.0 1.20260120.0 -
#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]:- miniflare@4.20260120.0
- @cloudflare/unenv-preset@2.11.0
- @cloudflare/kv-asset-handler@0.4.2
{ "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" }, ], }, }, }