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
#750
b933641
Thanks @mrbbot! - Upgrademiniflare
to2.4.0
#715
9857fbf
Thanks @threepointone! - feat:jest-environment-wrangler
A starting point for a jest environment powered by wrangler. This is just a proxy for
jest-environment-miniflare
right now, but we'll add features as we go along.[email protected]
Patch Changes
#752
6d43e94
Thanks @petebacondarwin! - fix: add a warning ifdev
is defaulting to the latest compatibility-dateFixes with
wrangler dev
, warn ifwrangler.toml
doesn't have acompatibility_date
#741#767
836ad59
Thanks @threepointone! - fix: use cwd for--experiment-enable-local-persistence
This sets up
--experiment-enable-local-persistence
to explicitly useprocess.cwd() + wrangler-local-state
as a path to store values. Without it, local mode uses the temp dir that we use to bundle the worker, which gets wiped out on ending wrangler dev. In the future, based on usage, we may want to make the path configurable as well.Fixes 🐛 BUG: Miniflare KV persistence not working in Wrangler2 --local mode #766
#723
7942936
Thanks @threepointone! - fix: spread tail messages when loggingLogged messages (via console, etc) would previously be logged as an array of values. This spreads it when logging to match what is expected.
#756
8e38442
Thanks @threepointone! - fix: resolve raw file bindings correctly inwrangler dev
local modeFor
wasm_modules
/text_blobs
/data_blobs
in local mode, we need to rewrite the paths as absolute so that they're resolved correctly by miniflare. This also expands some coverage for local modewrangler dev
.Fixes feat: Implement support for
[data_blobs]
/Data modules for service-workers #740Fixes feat: implement
[build.upload.rules]
for both service-worker/modules format workers #416#699
ea8e701
Thanks @JacobMGEvans! - polish: added logout and login to helpstring message.#728
0873049
Thanks @threepointone! - fix: only send durable object migrations when requiredWe had a bug where even if you'd published a script with migrations, we would still send a blank set of migrations on the next round. The api doesn't accept this, so the fix is to not do so. I also expanded test coverage for migrations.
Fixes 🐛 BUG: nonactionable error about migration #705
#750
b933641
Thanks @mrbbot! - Upgrademiniflare
to2.4.0
#763
f72c943
Thanks @JacobMGEvans! - feat: Added the update check that will check the package once a day against the beta release,distTag
can be changed later, then prints the latestbeta version to the user.resolves feat: update checker #762
#695
48fa89b
Thanks @caass! - fix: stop wrangler spamming console after loginIf a user hasn't logged in and then they run a command that needs a login they'll get bounced to the login flow.
The login flow (if completed) would write their shiny new OAuth2 credentials to disk, but wouldn't reload the
in-memory state. This led to issues like 🐛 BUG: npm start after forced login results in a lot of warnings #693, where even though the user was logged in on-disk, wrangler
wouldn't be aware of it.
We now update the in-memory login state each time new credentials are written to disk.
#734
a1dadac
Thanks @threepointone! - fix: exit dev if build fails on first runBecause of Watch mode behavior on failed first builds evanw/esbuild#1037, we can't recover dev if esbuild fails on first run. The workaround is to end the process if it does so, until we have a better fix.
Reported in fix: build/rebuild behaviour #731
#757
13e57cd
Thanks @sidharthachatterjee! - feature: Add wrangler pages project listAdds a new command to list your projects in Cloudflare Pages.
#745
6bc3e85
Thanks @petebacondarwin! - feat: add hotkey to clear the console inwrangler dev
Closes Keybind to clear console #388
#747
db6b830
Thanks @petebacondarwin! - refactor: removeprocess.exit()
from the pages codeThis enables simpler testing, as we do not have to spawn new child processes
to avoid the
process.exit()
from killing the jest process.As part of the refactor, some of the
Error
classes have been moved to ashared
errors.ts
file.#726
c4e5dc3
Thanks @threepointone! - fix: assume a worker is a module worker only if it has adefault
exportThis tweaks the logic that guesses worker formats to check whether a
default
export is defined on an entry point before assuming it's a module worker.#735
c38ae3d
Thanks @threepointone! -text_blobs
/Text module support for service worker format in local modeThis adds support for
text_blobs
/Text module support in local mode. Now that Add support fortext_blobs
miniflare#228 has landed in miniflare (thanks @caass!), we can use that in wrangler as well.#743
ac5c48b
Thanks @threepointone! - feat: implement[data_blobs]
This implements
[data_blobs]
support for service-worker workers, as well as enabling Data module support for service-worker workers.data_blob
is a supported binding type, but we never implemented support for it in v1. This implements support, and utilises it for supporting Data modules in service worker format. Implementation wise, it's incredibly similar to how we implementedtext_blobs
, with relevant changes.Partial fix for feat: Implement support for
[data_blobs]
/Data modules for service-workers #740 pending local mode support.#753
cf432ac
Thanks @petebacondarwin! - fix: distinguish the command hotkeys in wrangler devCloses Improve wording of shortcut hotbar #354
#746
3e25dcb
Thanks @petebacondarwin! - fix: remove superfluous debugger log messages from local devCloses Switching to local mode causes console spam #387
#758
9bd95ce
Thanks @sidharthachatterjee! - feature: Add wrangler pages deployment listRenders a list of deployments in a Cloudflare Pages project
#733
91873e4
Thanks @JacobMGEvans! - polish: improved visualization of the deprecation messages between serious and warnings with emojis. This also improves the delineation between messages.#738
c04791c
Thanks @petebacondarwin! - fix: add support for cron triggers indev --local
modeCurrently, I don't know if there is support for doing this in "remote" dev mode.
Resolves Feature: Schedule tasks from http://localhost:8787/cdn-cgi/mf/scheduled #737
#732
c63ea3d
Thanks @JacobMGEvans! - fix: abort async operations in theRemote
component to avoid unwanted side-effectsWhen the
Remote
component is unmounted, we now signal outstandingfetch()
requests, andwaitForPortToBeAvailable()
tasks to cancel them. This prevents unexpected requests from appearingafter the component has been unmounted, and also allows the process to exit cleanly without a delay.
fixes Error when running ctrl-c in dev mode #375