Wrangler
Patch Changes
#6927
2af75ed
Thanks @emily-shen! - fix: respectCLOUDFLARE_ACCOUNT_ID
withwrangler pages project
commandsFixes #4947
#6894
eaf71b8
Thanks @petebacondarwin! - fix: improve the rendering of build errors when bundling#6920
2e64968
Thanks @vicb! - chore: update unenv dependency versionPulls in feat(node/net): implement Server mock.
#6932
4c6aad0
Thanks @vicb! - fix: allowrequire
ing unenv aliased packagesBefore this PR
require
ing packages aliased in unenv would fail. That's becauserequire
would load the mjs file.This PR adds wraps the mjs file in a virtual ES module to allow
require
ing it.
Patch Changes
- #6923
1320f20
Thanks @andyjessop! - chore: adds eslint-disable for ESLint error on empty typescript interface in workers-configuration.d.ts
Patch Changes
#6908
d696850
Thanks @penalosa! - fix: debounce restarting worker on assets dir file changes when--x-dev-env
is enabled.#6902
dc92af2
Thanks @threepointone! - fix: enable esbuild's keepNames: true to set .name on functions/classes#6909
82180a7
Thanks @penalosa! - fix: Various fixes for logging in--x-dev-env
, primarily to ensure the hotkeys don't wipe useful output and are cleaned up correctly#6903
54924a4
Thanks @petebacondarwin! - fix: ensure thatalias
config gets passed through to the bundler when using new--x-dev-env
Fixes #6898
#6911
30b7328
Thanks @emily-shen! - fix: infer experimentalJsonConfig from file extensionFixes #5768 - issue with vitest and Pages projects with wrangler.toml
Updated dependencies [
5c50949
]:
Minor Changes
#6408
3fa846e
Thanks @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
04a8fed
Thanks @penalosa! - chore: Include serialisedFormData
in debug logs#6879
b27d8cb
Thanks @petebacondarwin! - fix: the docs command should not crash if given search termsFixes a regression accidentally introduced by #3735.
#6873
b123f43
Thanks @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
7ca37bc
Thanks @RamIdeas! - fix: custom builds outputting files in assets watched directory no longer cause the custom build to run again in an infinite loop#6872
b2d094e
Thanks @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
27e8385
Thanks @penalosa! - fix: Handle more module declaration cases#6838
7dbd0c8
Thanks @GregBrimble! - fix: Improve static asset upload messaging
Patch Changes
- #6840
5bfb75d
Thanks @a-robinson! - chore: update warning inwrangler dev --remote
when using Queues to not mention beta status
Patch Changes
- #6819
7ede181
Thanks @CarmenPopoviciu! - fix: Validate[routes]
on configuration file changes
Patch Changes
#6753
4e33f2c
Thanks @bluwy! - refactor: prevent bundling entirepackage.json
in built code#6812
f700d37
Thanks @CarmenPopoviciu! - fix: Validate additional config properties for[observability]
#6751
638a550
Thanks @bluwy! - refactor: simplify date calculation and remove date-fns dependency#6809
28cb0d7
Thanks @smellercf! - fix: Remove Beta tag from r2 event notification wrangler command descriptions#6802
17eb8a9
Thanks @CarmenPopoviciu! - chore: renameexperimental_assets
toassets
#6781
0792fa0
Thanks @mikenomitch! - chore: tweaks warning when using node_compat
Patch Changes
#6824
1c58a74
Thanks @petebacondarwin! - fix: tidy up error messaging for unexpected use of Node.js APIsFixes #6822
Patch Changes
#6791
74d719f
Thanks @penalosa! - fix: Add missing binding toinit --from-dash
#6728
1ca313f
Thanks @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
7d7f19a
Thanks @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