Wrangler
Minor Changes
#6408
3fa846eThanks @RamIdeas! - feat: update the--experimental-dev-env(shorthand:--x-dev-env) flag to on-by-defaultIf you experience any issues, you can disable the flag with
--x-dev-env=false. Please also let us know by opening an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose.
Patch Changes
#6854
04a8fedThanks @penalosa! - chore: Include serialisedFormDatain debug logs#6879
b27d8cbThanks @petebacondarwin! - fix: the docs command should not crash if given search termsFixes a regression accidentally introduced by #3735.
#6873
b123f43Thanks @zwily! - fix: reduce logging noise during wrangler dev with static assetsUpdates to static assets are accessible by passing in --log-level="debug" but otherwise hidden.
#6881
7ca37bcThanks @RamIdeas! - fix: custom builds outputting files in assets watched directory no longer cause the custom build to run again in an infinite loop#6872
b2d094eThanks @petebacondarwin! - fix: render a helpful build error if a Service Worker mode Worker has importsA common mistake is to forget to export from the entry-point of a Worker, which causes Wrangler to infer that we are in "Service Worker" mode.
In this mode, imports to external modules are not allowed. Currently this only fails at runtime, because our esbuild step converts these imports to an internal
__require()call that throws an error. The error message is misleading and does not help the user identify the cause of the problem. This is particularly tricky where the external imports are added by a library or our own node.js polyfills.Fixes #6648
#6792
27e8385Thanks @penalosa! - fix: Handle more module declaration cases#6838
7dbd0c8Thanks @GregBrimble! - fix: Improve static asset upload messaging
Patch Changes
- #6840 
5bfb75dThanks @a-robinson! - chore: update warning inwrangler dev --remotewhen using Queues to not mention beta status 
Patch Changes
- #6819 
7ede181Thanks @CarmenPopoviciu! - fix: Validate[routes]on configuration file changes 
Patch Changes
#6753
4e33f2cThanks @bluwy! - refactor: prevent bundling entirepackage.jsonin built code#6812
f700d37Thanks @CarmenPopoviciu! - fix: Validate additional config properties for[observability]#6751
638a550Thanks @bluwy! - refactor: simplify date calculation and remove date-fns dependency#6809
28cb0d7Thanks @smellercf! - fix: Remove Beta tag from r2 event notification wrangler command descriptions#6802
17eb8a9Thanks @CarmenPopoviciu! - chore: renameexperimental_assetstoassets#6781
0792fa0Thanks @mikenomitch! - chore: tweaks warning when using node_compat
Patch Changes
#6824
1c58a74Thanks @petebacondarwin! - fix: tidy up error messaging for unexpected use of Node.js APIsFixes #6822
Patch Changes
#6791
74d719fThanks @penalosa! - fix: Add missing binding toinit --from-dash#6728
1ca313fThanks @emily-shen! - fix: remove filepath encoding on asset upload and handle sometimes-encoded charactersSome characters like [ ] @ are encoded by encodeURIComponent() but are often requested at an unencoded URL path. This change will make assets with filenames with these characters accessible at both the encoded and unencoded paths, but to use the encoded path as the canonical one, and to redirect requests to the canonical path if necessary.
#6798
7d7f19aThanks @emily-shen! - fix: error if an asset binding is provided without a Worker scriptUpdated dependencies [
1ca313f]:- @cloudflare/workers-shared@0.5.4
 - miniflare@3.20240909.5
 
Patch Changes
#6775
ecd82e8Thanks @CarmenPopoviciu! - fix: Support switching between static and dynamic WorkersThis commit fixes the current behaviour of watch mode for Workers with assets, and adds support for switching between static and dynamic Workers within a single
wrangler devsession.#6762
2840b9fThanks @petebacondarwin! - fix: error if a user inadvertently uploads a Pages_workers.jsfile or directory as an asset#6778
61dd93aThanks @CarmenPopoviciu! - fix: Error if Workers + Assets are run in remote modeWorkers + Assets are currently supported only in local mode. We should throw an error if users attempt to use Workers with assets in remote mode.
#6782
7655505Thanks @vicb! - chore: update unenv dependency version#6777
9649dbcThanks @penalosa! - chore: Update CI messaging#6779
3e75612Thanks @emily-shen! - fix: include asset binding inwrangler types
Patch Changes
#6743
b45e326Thanks @petebacondarwin! - fix: ability to build tricky Node.js compat scenario WorkersAdds support for non-default build conditions and platform via the WRANGLER_BUILD_CONDITIONS and WRANGLER_BUILD_PLATFORM flags.
#6776
02de103Thanks @zebp! - fix: disable observability on deploy if not explicitly defined in configWhen deploying a Worker that has observability enabled in the deployed version but not specified in the
wrangler.tomlWrangler will now set observability to disabled for the new version to match thewrangler.tomlas the source of truth.Updated dependencies [
2ddbb65]: