Wrangler
Patch Changes
#9257
33daa09Thanks @penalosa! - Relax R2 bucket validation forpages devcommands#9256
3b384e2Thanks @penalosa! - Move the Analytics Engine simulator implementation from JSRPC to a Wrapped binding. This fixes a regression introduced in https://github.com/cloudflare/workers-sdk/pull/8935 that preventing Analytics Engine bindings working in local dev for Workers with a compatibility date prior to JSRPC being enabled.Updated dependencies [
3b384e2]:- miniflare@4.20250508.2
- @cloudflare/unenv-preset@2.3.2
Patch Changes
#9246
d033a7dThanks @edmundhung! - fix: stripCF-Connecting-IPheader withinfetchIn v4.15.0, Miniflare began stripping the
CF-Connecting-IPheader via a global outbound service, which led to a TCP connection regression due to a bug in Workerd. This PR patches thefetchAPI to strip the header during localwrangler devsessions as a temporary workaround until the underlying issue is resolved.Updated dependencies [
f61a08e,ea71df3,d033a7d]:- @cloudflare/unenv-preset@2.3.2
- miniflare@4.20250508.1
Minor Changes
#8794
02f0699Thanks @eastlondoner! - This adds support for more accurate types for service bindings when runningwrangler types. Previously, runningwrangler typeswith a config including a service binding would generate anEnvtype like this:interface Env { SERVICE_BINDING: Fetcher; }This type was "correct", but didn't capture the possibility of using JSRPC to communicate with the service binding. Now, running
wrangler types -c wrangler.json -c ../service/wrangler.json(the first config representing the current Worker, and any additional configs representing service bound Workers) will generate anEnvtype like this:interface Env { SERVICE_BINDING: Service<import("../service/src/index").Entrypoint>; }#8716
63a6504Thanks @ItsWendell! - add --metafile flag to generate esbuild metadata file during build#9122
f17ee08Thanks @avenceslau! - Unhide wrangler workflows delete command
Patch Changes
#9168
6b42c28Thanks @dario-piotrowicz! - remove experimentalMixedModeConnectionStringtyperemove the experimental
MixedModeConnectionStringtype which is now exposed by Miniflare instead#7914
37af035Thanks @andyjessop! - fix(miniflare): strip CF-Connecting-IP header from all outbound requests#9161
53ba97dThanks @lambrospetrou! - Fix d1 info command showing read_replication: [object Object]#9183
f6f1a18Thanks @dario-piotrowicz! - addremoteoption to initial bindingsadd the
remoteoption (initial implementation gated behind--x-mixed-mode) for the following bindings:service,kv,r2,d1,queueandworkflow#9149
415520eThanks @penalosa! - Implement mixed mode proxy server & clientUpdated dependencies [
37af035,ceeb375,349cffc,362cb0b,2cc8197,6b42c28]:
Patch Changes
#9124
d0d62e6Thanks @dario-piotrowicz! - make thatunstable_startWorkercan correctly throw configuration errorsmake sure that
unstable_startWorkercan throw configuration related errors when:- the utility is called
- the worker's
setConfigis called with thethrowErrorsargument set totrue
additionally when an error is thrown when
unstable_startWorkeris called make sure that the worker is properly disposed (since, given the fact that it is not returned by the utility the utility's caller wouldn't have any way to dispose it themselves)
Patch Changes
#9158
826c5e8Thanks @petebacondarwin! - fix CallSite.toString() not to throw#9159
c6b3f10Thanks @petebacondarwin! - bump esbuild version to fix regression in 0.25.0#8985
078c568Thanks @gabivlj! -wrangler deployis able to deploy new container versions#9162
8c3cdc3Thanks @petebacondarwin! - Do not report "d1 execute" command file missing error to Sentry
Patch Changes
#9118
1cd30a5Thanks @dario-piotrowicz! - fix: remove outdated js-doc comment forunstable_startDevWorker'sentrypoint#9120
11aa362Thanks @dario-piotrowicz! - Addexperimental_startMixedModeSessionno-op utilityThis experimental utility has no effect. More details will be shared as we roll out its functionality.
#7423
2be85d7Thanks @penalosa! - Make sure custom build logging output is more clearly signposted, and make sure it doesn't interfere with the interactive dev session output.#9112
3fe85d4Thanks @penalosa! - Warn if the Node.js version is below Node.js 20
Patch Changes
#9085
cdc88d8Thanks @petebacondarwin! - Do not include .wrangler and Wrangler config files in additional modulesPreviously, if you added modules rules such as
**/*.jsor**/*.json, specifiedno_bundle: true, and the entry-point to the Worker was in the project root directory, Wrangler could include files that were not intended, such as.wrangler/tmp/xxx.jsor the Wrangler config file itself. Now these files are automatically skipped when trying to find additional modules by searching the file tree.#9095
508a1a3Thanks @petebacondarwin! - wrangler login put custom callback host and port into the auth URL#9113
82e220eThanks @dario-piotrowicz! - Addx-mixed-modeflagThis experimental flag currently has no effect. More details will be shared as we roll out its functionality.
Updated dependencies [
357d42a]:
Patch Changes
#9086
a2a56c8Thanks @petebacondarwin! - Do not include .wrangler and Wrangler config files in additional modulesPreviously, if you added modules rules such as
**/*.jsor**/*.json, specifiedno_bundle: true, and the entry-point to the Worker was in the project root directory, Wrangler could include files that were not intended, such as.wrangler/tmp/xxx.jsor the Wrangler config file itself. Now these files are automatically skipped when trying to find additional modules by searching the file tree.#9037
d0d0025Thanks @CarmenPopoviciu! - fix: When generating Env types, set type of version metadata binding toWorkerVersionMetadata. This means it now correctly includes thetimestampfield.#9093
2f2f7baThanks @CarmenPopoviciu! - fix: Validate input file for Vectorize inserts
Minor Changes
#8981
3b60131Thanks @Caio-Nogueira! - Adds support for waitForEvent step type#9083
137d2daThanks @penalosa! - Support Tail Workers in local dev
Patch Changes
#8975
9bf55aaThanks @Caio-Nogueira! - Adds missingwaitingstatus on thewrangler workflow instances listcommand#9048
0b4d22aThanks @garvit-gupta! - fix: Validate input file for Vectorize inserts
Patch Changes
- Updated dependencies [
2c50115]:
Patch Changes
#8983
f5ebb33Thanks @Caio-Nogueira! - Remove open-beta disclaimer from workflows commands#8990
6291fa1Thanks @emily-shen! - fix: When generating Env types, set type of version metadata binding toWorkerVersionMetadata. This means it now correctly includes thetimestampfield.#8966
234afaeThanks @penalosa! - Internal refactor to use thecreateCommandutility
Minor Changes
#8640
5ce70bdThanks @kentonv! - Add support for definingpropson a Service binding.In your configuration file, you can define a service binding with props:
{ "services": [ { "binding": "MY_SERVICE", "service": "some-worker", "props": { "foo": 123, "bar": "value" } } ] }These can then be accessed by the callee:
import { WorkerEntrypoint } from "cloudflare:workers"; export default class extends WorkerEntrypoint { fetch() { return new Response(JSON.stringify(this.ctx.props)); } }#8771
0cfcfe0Thanks @dario-piotrowicz! - feat: addconfig.keep_namesoptionAdds a new option to Wrangler to allow developers to opt out of esbuild's
keep_namesoption (https://esbuild.github.io/api/#keep-names). By default, Wrangler sets this totrueThis is something developers should not usually need to care about, but sometimes
keep_namescan create issues, and in such cases they will be now able to opt-out.Example
wrangler.jsonc:{ "name": "my-worker", "main": "src/worker.ts", "keep_names": false }
Patch Changes
Patch Changes
Patch Changes
#8955
b7eba92Thanks @workers-devprod! - When Wrangler encounters an error, if the Bun runtime is detected it will now warn users that Wrangler does not officially support Bun.#8928
8bcb257Thanks @dario-piotrowicz! - fix redirected config env validation breaking wrangler pages commandsa validation check has recently been introduced to make wrangler error on deploy commands when an environment is specified and a redirected configuration is in use (the reason being that redirected configurations should not include any environment), this check is problematic with pages commands where the "production" environment is anyways set by default, to address this the validation check is being relaxed here on pages commands
Minor Changes
- #8316
69864b4Thanks @gnekich! - introduce callback-host and callback-port param for wrangler login command
Patch Changes
Patch Changes
#8950
bab1724Thanks @edmundhung! - fix: include telemetry-related environment variables in release builds#8903
085a565Thanks @emily-shen! - disable eslint in generated types fileUpdated dependencies [
511be3d]:
Minor Changes
#8890
c912b99Thanks @edmundhung! - update esbuild version to 0.25#8711
4cc036dThanks @CarmenPopoviciu! - Add the Pages deployment id to the JSON output forwrangler pages deployment list#8244
84ecfe9Thanks @CarmenPopoviciu! - feat: Add debug logs to capture assets upload status, specifically:- which asset files were read from the file system
- which files were successfully uploaded
Patch Changes
#8885
f2802f9Thanks @CarmenPopoviciu! - Disambiguate the "No files to upload. Proceeding with deployment..." message#8924
d2b44a2Thanks @dario-piotrowicz! - fix redirected config env validation breaking wrangler pages commandsa validation check has recently been introduced to make wrangler error on deploy commands when an environment is specified and a redirected configuration is in use (the reason being that redirected configurations should not include any environment), this check is problematic with pages commands where the "production" environment is anyways set by default, to address this the validation check is being relaxed here on pages commands
Updated dependencies [
f5413c5]:
Patch Changes
#8783
7bcf352Thanks @petebacondarwin! - Improve error message when request to obtain membership info failsWrangler now informs user that specific permission might be not granted when fails to obtain membership info. The same information is provided when Wrangler is unable to fetch user's email.
#8866
db673d6Thanks @edmundhung! - improve error message when redirected config contains environmentsthis change improves that validation error message that users see when a redirected config file contains environments, by:
- cleaning the message formatting and displaying the offending environments in a list
- prompting the user to report the issue to the author of the tool which has generated the config
#8600
91cf028Thanks @workers-devprod! - add validation to redirected configs in regards to environmentsadd the following validation behaviors to wrangler deploy commands, that relate to redirected configs (i.e. config files specified by
.wrangler/deploy/config.jsonfiles):- redirected configs are supposed to be already flattened configurations without any environment (i.e. a build tool should generate redirected configs already targeting specific environments), so if wrangler encounters a redirected config with some environments defined it should error
- given the point above, specifying an environment (
--env=my-env) when using redirected configs is incorrect, so these environments should be ignored and a warning should be presented to the user
Minor Changes
- #8807
dcce2ecThanks @LuisDuarte1! - Promote workflows commands to stable