Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
[email protected]
Patch Changes
#1229
e273e09
Thanks @timabb031! - fix: parsing of node inspector urlThis fixes the parsing of the url returned by Node Inspector via stderr which could be received partially in multiple chunks or in a single chunk.
Closes 🐛 BUG:
wrangler dev --local
occasionally emits 'Waiting for connection...' continuously #1226#1255
2d806dc
Thanks @f5io! - fix: kv:key put binary file uploadAs raised in 🐛 BUG: kv:key put no longer able to upload binary files #1254, it was discovered that binary uploads were being mangled by wrangler 2, whereas they worked in wrangler 1. This is because they were read into a string by providing an explicit encoding of
utf-8
. This fix reads provided files into a nodeBuffer
that is then passed directly to the request.#1248
db8a0bb
Thanks @threepointone! - fix: instruct api to exclude script content on worker uploadWhen we upload a script bundle, we get the actual content of the script back in the response. Sometimes that script can be large (depending on whether the upload was large), and currently it may even be a badly escaped string. We can pass a queryparam
excludeScript
that, as it implies, exclude the script content in the response. This fix does that.Fixes 🐛 BUG: Received a malformed response from the API #1222
#1250
e3278fa
Thanks @rozenmd! - fix: pass localProtocol to miniflare for https serverCloses 🐛 BUG: local-protocol flag fails to start a https dev server in local mode #1247
#1253
eee5c78
Thanks @threepointone! - fix: resolve asset handler for--experimental-path
In use
@cloudflare/kv-asset-handler
for--experimental-public
#1241, we removed the vendored version of@cloudflare/kv-asset-handler
, as well as the build configuration that would point to the vendored version when compiling a worker using--experimental-public
. However, wrangler can be used where it's not installed in thepackage.json
for the worker, or even when there's no package.json at all (like when wrangler is installed globally, or used withnpx
). In this situation, if the user doesn't have@cloudflare/kv-asset-handler
installed, then building the worker will fail. We don't want to make the user install this themselves, so instead we point to a barrel import for the library in the facade for the worker.#1234
3e94bc6
Thanks @threepointone! - feat: support--experimental-public
in local mode--experimental-public
is an abstraction over Workers Sites, and we can leverage miniflare's inbuilt support for Sites to serve assets in local mode.#1236
891d128
Thanks @threepointone! - fix: generate site assets manifest relative tosite.bucket
We had a bug where we were generating asset manifest keys incorrectly if we ran wrangler from a different path to
wrangler.toml
. This fixes the generation of said keys, and adds a test for it.Fixes 🐛 BUG: site manifest isn't generated correctly when wrangler dev/publish is run in a non-root directory #1235
#1216
4eb70f9
Thanks @JacobMGEvans! - feat: reload server on configuration changes, the values passed into the server during restart will bebindings
resolves wrangler dev should reload when wrangler.toml is changed #439
#1231
5206c24
Thanks @threepointone! - feat:build.watch_dir
can be an array of pathsIn projects where:
...we'd like to be able to specify multiple paths for custom builds, (the config
build.watch_dir
config). This patch enables such behaviour. It now accepts a single path as before, or optionally an array of strings/paths.Fixes Rebuild the project on changes in multiple directories? #1095
#1241
471cfef
Thanks @threepointone! - use@cloudflare/kv-asset-handler
for--experimental-public
We'd previously vendored in
@cloudflare/kv-asset-handler
andmime
for--experimental-public
. We've since updated@cloudflare/kv-asset-handler
to support module workers correctly, and don't need the vendored versions anymore. This patch uses the lib as a dependency, and deletes thevendor
folder.