Wrangler
Minor Changes
#6603
a197460Thanks @taylorlee! - feature: log version preview url when previews existThe version upload API returns a field indicating whether a preview exists for that version. If a preview exists and workers.dev is enabled, wrangler will now log the full URL on version upload.
This does not impact wrangler deploy, which only prints the workers.dev route of the latest deployment.
#6550
8d1d464Thanks @Pedr0Rocha! - feature: add RateLimit type generation to the ratelimit unsafe binding.
Patch Changes
#6615
21a09e0Thanks @RamIdeas! - chore: avoid potential double-install of create-cloudflareWhen
wrangler initdelegates to C3, it did so vianpm create cloudflare@2.5.0. C3's v2.5.0 was the first to include auto-update support to avoidnpx's potentially stale cache. But this also guaranteed a double install for users who do not have 2.5.0 cached. Now, wrangler delegates vianpm create cloudflare@^2.5.0which should use the latest version cached on the user's system or install and use the latest v2.x.x.#6603
a197460Thanks @taylorlee! - chore: fix version upload log orderPreviously deploy prints: upload timings deploy timings current version id
while version upload prints: worker version id upload timings
This change makes version upload more similar to deploy by printing version id after upload, which also makes more sense, as version ID can only be known after upload has finished.
Minor Changes
- #6574
dff8d44Thanks @CarmenPopoviciu! - feat: add support for experimental assets inwrangler devwatch mode
Patch Changes
#6605
c4f0d9eThanks @WalshyDev! - fix: ensure we update non-versioned Worker settings for the new deploy path inwrangler deployUpdated dependencies [
e8975a9]:
Minor Changes
#6571
a7e1bfeThanks @penalosa! - feat: Add deployment http targets to wrangler deploy logs, and add url to pages deploy logs#6497
3bd833cThanks @WalshyDev! - chore: movewrangler versions ...,wrangler deployments ...,wrangler rollbackandwrangler triggers ...out of experimental and open beta. These are now available to use without the --x-versions flag, you can continue to pass this however without issue to keep compatibility with all the usage today.A few of the commands had an output that wasn't guarded by
--x-versionsthose have been updated to use the newer output, we have tried to keep compatibility where possible (for example:wrangler rollbackwill continue to output "Worker Version ID:" so users can continue to grab the ID). If you wish to use the old versions of the commands you can pass the--no-x-versionsflag. Note, these will be removed in the future so please work on migrating.#6586
72ea742Thanks @penalosa! - feat: Inject a 404 response for browser requestedfavicon.icofiles when loading the/__scheduledpage for scheduled-only Workers#6497
3bd833cThanks @WalshyDev! - feat: updatewrangler deployto use the new versions and deployments API. This should have zero user-facing impact but sets up the most used command to deploy Workers to use the new recommended APIs and move away from the old ones. We will still call the old upload path where required (e.g. Durable Object migration or Service Worker format).
Patch Changes
#6563
da48a70Thanks @threepointone! - chore: remove the warning about local mode flag being removed in the future#6595
0a76d7eThanks @vicb! - feat: update unenv to the latest available version#5738
c2460c4Thanks @penalosa! - fix: Prevent spaces in names when validating#6586
72ea742Thanks @penalosa! - chore: Improve Miniflare CRON warning wording#6593
f097cb7Thanks @vicb! - fix: removeexperimental:prefix requirement for nodejs_compat_v2#6572
0d83428Thanks @penalosa! - fix: Show a clearer user error when trying to use a python worker without thepython_workerscompatibility flag specified#6589
f4c8ceaThanks @vicb! - feat: update unenv to the latest available versionUpdated dependencies [
45ad2e0]:- @cloudflare/workers-shared@0.4.1
Patch Changes
#6548
439e63aThanks @garvit-gupta! - fix: Fix Vectorize getVectors, deleteVectors payload in Wrangler Client; VS-271#6554
46aee5dThanks @andyjessop! - fix: nodejs_compat flags no longer error when running wrangler types --x-include-runtime#6548
439e63aThanks @garvit-gupta! - fix: Add content-type header to Vectorize POST operations; #6516/VS-269#6566
669ec1cThanks @penalosa! - fix: Ensure esbuild warnings are logged when running wrangler deployUpdated dependencies [
6c057d1]:- @cloudflare/workers-shared@0.4.0
Patch Changes
#6511
e75c581Thanks @petebacondarwin! - fix: allow Pages projects to use `experimental:nodejs_compat_v2" flagFixes #6288
Updated dependencies [
b0e2f0b,f5bde66]:- miniflare@3.20240821.0
- @cloudflare/workers-shared@0.3.0
Patch Changes
#6530
d0ecc6aThanks @WalshyDev! - fix: fixedwrangler versions uploadprinting bindings twice#6502
a9b4f25Thanks @garvit-gupta! - fix: Fix Vectorize List MetadataIndex Http Method#6508
56a3de2Thanks @petebacondarwin! - fix: move the Windows C++ redistributable warning so it is only shown if there is an actual access violationReplaces #6471, which was too verbose.
Fixes #6170
Minor Changes
#6479
3c24d84Thanks @petebacondarwin! - feat: allow HTTPS custom certificate paths to be provided by a environment variablesAs well as providing paths to custom HTTPS certificate files, it is now possible to use WRANGLER_HTTPS_KEY_PATH and WRANGLER_HTTPS_CERT_PATH environment variables.
Specifying the file paths at the command line overrides specifying in environment variables.
Fixes #5997
Patch Changes
#6471
0d85f24Thanks @petebacondarwin! - fix: add a helpful message on Windows when Miniflare fails to start#6489
34bf393Thanks @GregBrimble! - fix: Upload assets as JSON Lines (application/jsonl) rather than NDJSON (application/x-ndjson)#6482
e24939cThanks @RamIdeas! - fix: reimplement module aliasing so user-defined aliases take precedence over other plugins (eg unenv node.js polyfills)Updated dependencies [
00f340f]:- miniflare@3.20240806.1
- @cloudflare/workers-shared@0.2.0