Wrangler
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
Patch Changes
Patch Changes
- Updated dependencies [
d454ad9]:
Minor Changes
Patch Changes
#8809
09464a6Thanks @dario-piotrowicz! - 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
#8829
62df08aThanks @cmackenzie1! - Add option--cors-origin noneto remove CORS settings on a pipeline
Minor Changes
- #8394
93267cfThanks @edmundhung! - Support Secrets Store Secret bindings
Patch Changes
#8780
4e69fb6Thanks @cmackenzie1! - - Renamewrangler pipelines showtowrangler pipelines get- Replace
--enable-worker-bindingand--enable-httpwith--source workerand--source http(or--source http workerfor both) - Remove
--file-templateand--partition-templateflags fromwrangler pipelines create|update - Add pretty output for
wrangler pipelines get <pipeline>. Existing output is available using--format=json. - Clarify the minimums, maximums, and defaults (if unset) for
wrangler pipelines createcommands.
- Replace
#8596
75b454cThanks @dario-piotrowicz! - 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
#8795
d4c1171Thanks @GregBrimble! - feat: Unhidewrangler pages functions buildcommand.This is already documented for Pages Plugins and by officially documenting it, we can ease the transition to Workers Assets for users of Pages Functions.
Patch Changes
#8763
2650fd3Thanks @garrettgu10! - R2 data catalog URIs now separate account ID and warehouse name with a slash rather than an underscore#8341
196f51dThanks @kotkoroid! - 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.
Patch Changes
#8746
7427004Thanks @emily-shen! - Log whether a command is operating on a remote or local resource#8757
199caa4Thanks @emily-shen! - fix: return actual error onwrangler secret bulk#8750
80ef13cThanks @emily-shen! - fix: include documentation_url in API Errors if provided#8759
55b336fThanks @garvit-gupta! - fix: Minor refactor for the r2 data catalog commands#8753
245cfbdThanks @cmackenzie1! - - Hide--transform-workerflag onwrangler pipelines <create|update>during private beta.- Add
--shard-countoption forwrangler pipelines <create|update>for more control over Pipeline throughput or file size
- Add
Updated dependencies [
007f322]:
Patch Changes
#8758
04ba075Thanks @emily-shen! - fix: return actual error onwrangler secret bulk#8703
ef89e6bThanks @CarmenPopoviciu! - Improve formatting of cache options for hyperdrive list command#8751
e1ef298Thanks @emily-shen! - fix: include documentation_url in API Errors if provided#8713
47bf369Thanks @CarmenPopoviciu! - fix: stop getPlatformProxy crashing when internal DOs are presentInternal DOs still do not work with getPlatformProxy, but warn instead of crashing.
#8683
90d93c9Thanks @CarmenPopoviciu! - RemoveNodeJSCompatModule. This was never fully supported, and never worked for deploying Workers from Wrangler.Updated dependencies [
90d93c9]:
Minor Changes
Patch Changes
#8720
8df60b5Thanks @lukevalenta! - Fix logic to derive resource name from binding by replacing all underscores with dashes#8697
ec1f813Thanks @emily-shen! - fix: stop getPlatformProxy crashing when internal DOs are presentInternal DOs still do not work with getPlatformProxy, but warn instead of crashing.
#8737
624882eThanks @garvit-gupta! - fix: General improvements for the R2 catalog commands
Minor Changes
Patch Changes
#8435
8e3688fThanks @emily-shen! - fix: include assets binding when printing summary of bindings#8675
f043b74Thanks @vicb! - Bump@cloudflare/unenv-presetto 2.3.1Use the workerd native implementation of
createSecureContextandcheckServerIdentityfromnode:tls. The functions have been implemented incloudflare/workerd#3754.
Patch Changes
#8655
7682675Thanks @emily-shen! - fix bug where assets in directories starting with . would crash the dev server#8604
d8c0495Thanks @dario-piotrowicz! - Amendpages deverror message when an environment is requested#8536
e4b76e8Thanks @gabivlj! - wrangler cloudchamber create explicitly sets IPv6 predefinedUpdated dependencies [
7682675,9c844f7,29cb306]:- miniflare@4.20250321.0
- @cloudflare/unenv-preset@2.3.1
Patch Changes
#8662
5e57717Thanks @workers-devprod! - Amendpages deverror message when an environment is requested#8535
6f8e892Thanks @workers-devprod! - improve the error messaging when the user provides neither an entry point nor an asset directory