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
#1192
bafa5ac
Thanks @threepointone! - fix: use worker name as a script ID when generating a preview sessionWhen generating a preview session on the edge with
wrangler dev
, for a zoned worker we were using a random id as the script ID. This would make the backend not associate the dev session with any resources that were otherwise assigned to the script (specifically for secrets, but other stuff as well) The fix is simply to use the worker name (when available) as the script ID.Fixes bug: secrets don't populate when there's a route #1003
Fixes 🐛 BUG: Secrets don't seem to exist with wrangler dev? #1172
#1212
101342e
Thanks @petebacondarwin! - fix: do not crash when not logged in and switching to remote dev modePreviously, if you are not logged in when running
wrangler dev
it will only try to log you inif you start in "remote" mode. In "local" mode there is no need to be logged in, so it doesn't
bother to try to login, and then will crash if you switch to "remote" mode interactively.
The problem was that we were only attempting to login once before creating the
<Remote>
component.Now this logic has been moved into a
useEffect()
inside<Remote>
so that it will be run whetherstarting in "remote" or transitioning to "remote" from "local".
The fact that the check is no longer done before creating the components is proven by removing the
mockAccountId()
andmockApiToken()
calls from thedev.test.ts
files.Fixes #18
#1188
b44cc26
Thanks @petebacondarwin! - fix: fallback on old zone-based API when account-based route API failsWhile we wait for changes to the CF API to support API tokens that do not have
"All Zone" permissions, this change provides a workaround for most scenarios.
If the bulk-route request fails with an authorization error, then we fallback
to the Wrangler 1 approach, which sends individual route updates via a zone-based
endpoint.
Fixes 🐛 BUG: Routes do not work if api token is restricted to zone #651
#1203
3b88b9f
Thanks @rozenmd! - fix: differentiate between API and OAuth in whoamiCloses 🐛 BUG: wrangler whoami incorrectly reports that I'm using an OAuth token when using CLOUDFLARE_API_TOKEN #1198
#1199
e64812e
Thanks @sidharthachatterjee! - fix: Refresh JWT in wrangler pages publish when it expires#1209
2d42882
Thanks @petebacondarwin! - fix: ensure wrangler init works with older versions of gitRather than using the recently added
--initial-branch
option, we now just renamed the initial branch usinggit branch -m main
.Fixes 🐛 BUG:Tries to init with
main
branch but fails on older git versions #1168