Minor Changes
-
#10939
d4b4c90
Thanks @danielrs! - Configpreview_urls
defaults toworkers_dev
value.Originally, we were defaulting config.preview_urls to
true
, but we
were accidentally enabling Preview URLs for users that only had
config.workers_dev=false.Then, we set the default value of config.preview_urls to
false
, but we
were accidentally disabling Preview URLs for users that only had
config.workers_dev=true.Rather than defaulting config.preview_urls to
true
orfalse
, we
default to the resolved value of config.workers_dev. Should result in a
clearer user experience. -
#11027
1a2bbf8
Thanks @jamesopstad! - Statically replace the value ofprocess.env.NODE_ENV
withdevelopment
for development builds andproduction
for production builds if it is not set. Else, use the given value. This ensures that libraries, such as React, that branch code based onprocess.env.NODE_ENV
can be properly tree shaken. -
#9705
0ee1a68
Thanks @hiendv! - Add params type to Workflow type generation. E.g.interface Env { MY_WORKFLOW: Workflow< Parameters<import("./src/index").MyWorkflow["run"]>[0]["payload"] >; }
-
#10867
dd5f769
Thanks @austin-mc! - Add media binding support
Patch Changes
-
#11018
5124818
Thanks @dario-piotrowicz! - Improve potential errors thrown bystartRemoteProxySession
by including more information -
#11019
6643bd4
Thanks @dario-piotrowicz! - Fixobservability.logs.persist
being flagged as an unexpected field during the wrangler config file validation -
#10768
8211bc9
Thanks @dario-piotrowicz! - Update logs handling to use the newhandleStructuredLogs
miniflare option -
#10997
3bb034f
Thanks @nikitassharma! - When either WRANGLER_OUTPUT_FILE_PATH or WRANGLER_OUTPUT_FILE_DIRECTORY are set
in the environment, then command failures will append a line to the output file
encoding the error code and message, if present. -
#10986
43503c7
Thanks @emily-shen! - fix: cleanup any running containers again on wrangler dev exit -
#11000
a6de9db
Thanks @jonboulle! - always load container image into local store during buildBuildKit supports different build drivers. When using the more modern
docker-container
driver (which is now the default on some systems, e.g. a standard Docker installation on Fedora Linux), it will not automatically load the built image into the local image store. Since wrangler expects the image to be there (e.g. when callinggetImageRepoTags
), it will thus fail, e.g.:⎔ Preparing container image(s)... [+] Building 0.3s (8/8) FINISHED docker-container:default [...] WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load ✘ [ERROR] failed inspecting image locally: Error response from daemon: failed to find image cloudflare-dev/sandbox:f86e40e4: docker.io/cloudflare-dev/sandbox:f86e40e4: No such image
Explicitly setting the
--load
flag (equivalent to-o type=docker
) during the build fixes this and should make the build a bit more portable without requiring users to change their default build driver configuration. -
#10994
d39c8b5
Thanks @pombosilva! - Make Workflows instances list command cursor based -
#10892
7d0417b
Thanks @dario-piotrowicz! - improve the diffing representation forwrangler deploy
(run under--x-remote-diff-check
) -
Updated dependencies [
36d7054
,dd5f769
,ee7d710
,8211bc9
]:- miniflare@4.20251011.0
- @cloudflare/unenv-preset@2.7.8