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
wrangler@0.0.31
Patch Changes
#916
4ef5fbb
Thanks @petebacondarwin! - fix: display and error and help forwrangler init --site
The
--site
option is no longer supported.This change adds information about how to create a new Sites project
by cloning a repository.
It also adds links to the Worker Sites and Cloudflare Pages docs.
#908
f8dd31e
Thanks @threepointone! - fix: fix isolate prewarm logic forwrangler dev
When calling
wrangler dev
, we make a request to a special URL that "prewarms" the isolate running our Worker so that we can attach devtools etc to it before actually making a request. We'd implemented it wrongly, and because we'd silenced its errors, we weren't catching it. This patch fixes the logic (based on wrangler 1.x's implementation) and enables logging errors when the prewarm request fails.As a result, profiling starts working again as expected. Fixes 🐛 BUG: Profiling doesn't work as expected #907
#919
13078e1
Thanks @threepointone! - fix: don't crash when tail event is nullSometime the "event" on a tail can be null. This patch makes sure we don't crash when that happens. Fixes 🐛 BUG: Wrangler tail fails with "Cannot use 'in' operator to search for 'cron' in null #918
#913
dfeed74
Thanks @threepointone! - polish: add a deprecation warning to--inspect
ondev
We have a blogposts and docs that says you need to pass
--inspect
to use devtools and/or profile your Worker. In wrangler v2, we don't need to pass the flag anymore. Using it right now will throw an error, so this patch makes it a simple warning instead.#916
4ef5fbb
Thanks @petebacondarwin! - fix: add some space after the CLI help message when there is an error#920
57cf221
Thanks @threepointone! - chore: don't minify bundlesWhen errors in wrangler happen, it's hard to tell where the error is coming from in a minified bundle. This patch removes the minification. We still set
process.env.NODE_ENV = 'production'
in the bundle so we don't run dev-only paths in things like React.This adds about 2 mb to the bundle, but imo it's worth it.
#916
4ef5fbb
Thanks @petebacondarwin! - fix: update thegenerate
command to provide better deprecation messaging#914
9903526
Thanks @sidharthachatterjee! - fix: Ensure getting git branch doesn't fail on Windows#917
94d3d6d
Thanks @GregBrimble! - fix: Hit correct endpoint for 'wrangler pages publish'#910
fe0344d
Thanks @taylorlee! - fix: support preview buckets for r2 bindingsAllows wrangler2 to perform preview & dev sessions with a different bucket than the published worker's binding.
This matches kv's preview_id behavior, and brings the wrangler2 implementation in sync with wrangler1.