Patch Changes
-
#1410
52fb634
Thanks @petebacondarwin! - feat: add opt-in usage metrics gatheringThis change adds support in Wrangler for sending usage metrics to Cloudflare.
This is an opt-in only feature. We will ask the user for permission only once per device.
The user must grant permission, on a per device basis, before we send usage metrics to Cloudflare.
The permission can also be overridden on a per project basis by settingsend_metrics = false
in thewrangler.toml
.
If Wrangler is running in non-interactive mode (such as in a CI job) and the user has not already given permission
we will assume that we cannot send usage metrics.The aim of this feature is to help us learn what and how features of Wrangler (and also the Cloudflare dashboard)
are being used in order to improve the developer experience. -
#1457
de03f7f
Thanks @rozenmd! - fix: add r2Persist key to miniflare optionsCloses #1454
-
#1463
a7ae733
Thanks @threepointone! - fix: ensure that a helpful error message is shown when on unsupported versions of node.jsOur entrypoint for wrangler (
bin/wrangler.js
) needs to run in older versions of node and log a message to the user that they need to upgrade their version of node. Sometimes we use syntax in this entrypoint that doesn't run in older versions of node. crashing the script and failing to log the message. This fix adds a test in CI to make sure we don't regress on that behaviour (as well as fixing the current newer syntax usage)Fixes #1443
-
#1459
4e425c6
Thanks @sidharthachatterjee! - fix:wrangler pages publish
now more reliably retries an upload in case of a failureWhen
wrangler pages publish
is run, we make calls to an upload endpoint which could be rate limited and therefore fail. We currently retry those calls after a linear backoff. This change makes that backoff exponential which should reduce the likelihood of subsequent calls being rate limited.