JacobLinCool / LeetCode-Stats-Card

Show your dynamically generated LeetCode stats on your GitHub profile or your website!
https://leetcard.jacoblin.cool
MIT License
663 stars 82 forks source link

chore(deps): update dependency wrangler to v3 - autoclosed #91

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
wrangler ^2.14.0 -> ^3.0.0 age adoption passing confidence

Release Notes

cloudflare/workers-sdk (wrangler) ### [`v3.2.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#320) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.1.2...wrangler@3.2.0) ##### Minor Changes - [#​3583](https://togithub.com/cloudflare/workers-sdk/pull/3583) [`78ddb8de`](https://togithub.com/cloudflare/workers-sdk/commit/78ddb8de78152b2cb4180f23b51ee5478637d92d) Thanks [@​penalosa](https://togithub.com/penalosa)! - Upgrade Miniflare (and hence `workerd`) to `v3.20230710.0`. - [#​3426](https://togithub.com/cloudflare/workers-sdk/pull/3426) [`5a74cb55`](https://togithub.com/cloudflare/workers-sdk/commit/5a74cb559611b1035fe97ebbe870d7061f3b41d0) Thanks [@​matthewdavidrodgers](https://togithub.com/matthewdavidrodgers)! - Prefer non-force deletes unless a Worker is a dependency of another. If a Worker is used as a service binding, a durable object namespace, an outbounds for a dynamic dispatch namespace, or a tail consumer, then deleting that Worker will break those existing ones that depend upon it. Deleting with ?force=true allows you to delete anyway, which is currently the default in Wrangler. Force deletes are not often necessary, however, and using it as the default has unfortunate consequences in the API. To avoid them, we check if any of those conditions exist, and present the information to the user. If they explicitly acknowledge they're ok with breaking their other Workers, fine, we let them do it. Otherwise, we'll always use the much safer non-force deletes. We also add a "--force" flag to the delete command to skip the checks and confirmation and proceed with ?force=true ##### Patch Changes - [#​3585](https://togithub.com/cloudflare/workers-sdk/pull/3585) [`e33bb44a`](https://togithub.com/cloudflare/workers-sdk/commit/e33bb44a6a5a243db08835a965bf4918824d4fb7) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: register middleware once for module workers Ensure middleware is only registered on the first request when using module workers. This should prevent stack overflows and slowdowns when making large number of requests to `wrangler dev` with infrequent reloads. - [#​3547](https://togithub.com/cloudflare/workers-sdk/pull/3547) [`e16d0272`](https://togithub.com/cloudflare/workers-sdk/commit/e16d0272986f3e0c8a5ba908127dc93cf8c670bc) Thanks [@​jspspike](https://togithub.com/jspspike)! - Fixed issue with wrangler dev not finding imported files. Previously when wrangler dev would automatically reload on any file changes, it would fail to find any imported files. ### [`v3.1.2`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#312) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.1.1...wrangler@3.1.2) ##### Patch Changes - [#​3529](https://togithub.com/cloudflare/workers-sdk/pull/3529) [`bcdc1fe5`](https://togithub.com/cloudflare/workers-sdk/commit/bcdc1fe5684f325c86ff0f2c57af781ecba5b621) Thanks [@​jspspike](https://togithub.com/jspspike)! - Support https in wrangler dev local mode - [#​3541](https://togithub.com/cloudflare/workers-sdk/pull/3541) [`09f317d4`](https://togithub.com/cloudflare/workers-sdk/commit/09f317d4c42d1787bdc636f13b4a303fa9a5b4b0) Thanks [@​GregBrimble](https://togithub.com/GregBrimble)! - chore: Bump miniflare@3.0.2 - [#​3497](https://togithub.com/cloudflare/workers-sdk/pull/3497) [`c5f3bf45`](https://togithub.com/cloudflare/workers-sdk/commit/c5f3bf45c0b7dd632ce63d0c4df846a2b8695021) Thanks [@​evanderkoogh](https://togithub.com/evanderkoogh)! - Refactor dev-only checkedFetch check from a method substitution to a JavaScript Proxy to be able to support Proxied global fetch function. - [#​3403](https://togithub.com/cloudflare/workers-sdk/pull/3403) [`8d1521e9`](https://togithub.com/cloudflare/workers-sdk/commit/8d1521e9ce77136f6da6a1313748e597b3622f8b) Thanks [@​Cherry](https://togithub.com/Cherry)! - fix: wrangler generate will now work cross-device. This is very common on Windows install that use C:/ for the OS and another drive for user files. ### [`v3.1.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#311) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.1.0...wrangler@3.1.1) ##### Patch Changes - [#​3498](https://togithub.com/cloudflare/workers-sdk/pull/3498) [`fddffdf0`](https://togithub.com/cloudflare/workers-sdk/commit/fddffdf0c23d2ca56f2139a2c6bc278052594cba) Thanks [@​GregBrimble](https://togithub.com/GregBrimble)! - fix: Prevent `wrangler pages dev` from serving asset files outside of the build output directory - [#​3431](https://togithub.com/cloudflare/workers-sdk/pull/3431) [`68ba49a8`](https://togithub.com/cloudflare/workers-sdk/commit/68ba49a8c5bde2e9847e9599d71b9a501866c54b) Thanks [@​Cherry](https://togithub.com/Cherry)! - fix: allow context.data to be overriden in Pages Functions - [#​3414](https://togithub.com/cloudflare/workers-sdk/pull/3414) [`6b1870ad`](https://togithub.com/cloudflare/workers-sdk/commit/6b1870ad46eb8557a01fcfae0d3f948b804387a0) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - fix: in D1, lift error.cause into the error message Prior to this PR, folks *had* to console.log the `error.cause` property to understand why their D1 operations were failing. With this PR, `error.cause` will continue to work, but we'll also lift the cause into the error message. - [#​3483](https://togithub.com/cloudflare/workers-sdk/pull/3483) [`a9349a89`](https://togithub.com/cloudflare/workers-sdk/commit/a9349a89296dc98ac8fc52dbb013f298c9596d8f) Thanks [@​petebacondarwin](https://togithub.com/petebacondarwin)! - fix: ensure that the script name is passed through to C3 from `wrangler init` - [#​3359](https://togithub.com/cloudflare/workers-sdk/pull/3359) [`5eef992f`](https://togithub.com/cloudflare/workers-sdk/commit/5eef992f2c9f71a4c9d5e0cc2820aad24b7ef382) Thanks [@​RamIdeas](https://togithub.com/RamIdeas)! - `wrangler init ... -y` now delegates to C3 without prompts (respects the `-y` flag) - [#​3434](https://togithub.com/cloudflare/workers-sdk/pull/3434) [`4beac418`](https://togithub.com/cloudflare/workers-sdk/commit/4beac41818b89727cd991848a8c643d744bc1703) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - fix: add the number of read queries and write queries in the last 24 hours to the `d1 info` command - [#​3454](https://togithub.com/cloudflare/workers-sdk/pull/3454) [`a2194043`](https://togithub.com/cloudflare/workers-sdk/commit/a2194043c6c755e9308b3ffc1e9afb0d1544f6b9) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - chore: upgrade `miniflare` to `3.0.1` This version ensures root CA certificates are trusted on Windows. It also loads extra certificates from the `NODE_EXTRA_CA_CERTS` environment variable, allowing `wrangler dev` to be used with Cloudflare WARP enabled. - [#​3485](https://togithub.com/cloudflare/workers-sdk/pull/3485) [`e8df68ee`](https://togithub.com/cloudflare/workers-sdk/commit/e8df68eefede860f4217e3a398a0f3064f5cce38) Thanks [@​GregBrimble](https://togithub.com/GregBrimble)! - feat: Allow setting a D1 database ID when using `wrangler pages dev` by providing an optional `=` suffix to the argument like `--d1 BINDING_NAME=database-id` ### [`v3.1.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#310) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.0.1...wrangler@3.1.0) ##### Minor Changes - [#​3293](https://togithub.com/cloudflare/workers-sdk/pull/3293) [`4a88db32`](https://togithub.com/cloudflare/workers-sdk/commit/4a88db32c8962a55bbcad82048a858fbce3f8e93) Thanks [@​petebacondarwin](https://togithub.com/petebacondarwin)! - feat: add `wrangler pages project delete` command ##### Patch Changes - [#​3399](https://togithub.com/cloudflare/workers-sdk/pull/3399) [`d8a9995b`](https://togithub.com/cloudflare/workers-sdk/commit/d8a9995b3748893057b4cb657abd8f658b1f5875) Thanks [@​Skye-31](https://togithub.com/Skye-31)! - Fix: wrangler pages dev --script-path argument when using a proxy command instead of directory mode Fixes a regression in wrangler@3.x, where `wrangler pages dev --script-path= -- ` would start throwing esbuild errors. - [#​3311](https://togithub.com/cloudflare/workers-sdk/pull/3311) [`116d3fd9`](https://togithub.com/cloudflare/workers-sdk/commit/116d3fd92fd4a2352202ebcb9b5c4e4c4f49c74b) Thanks [@​Maximo-Guk](https://togithub.com/Maximo-Guk)! - Fix: Avoid unnecessary rebuilding pages functions in wrangler pages dev - [#​3314](https://togithub.com/cloudflare/workers-sdk/pull/3314) [`d5a230f1`](https://togithub.com/cloudflare/workers-sdk/commit/d5a230f1e74c1d8c619491291a6e2408cc8ec8d1) Thanks [@​elithrar](https://togithub.com/elithrar)! - Fixed `wrangler d1 migrations` to use `--experimental-backend` and not `--experimentalBackend` so that it is consistent with `wrangler d1 create`. - [#​3373](https://togithub.com/cloudflare/workers-sdk/pull/3373) [`55703e52`](https://togithub.com/cloudflare/workers-sdk/commit/55703e52da35b15f5c11f9e3936cc5b1ad5836dc) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - fix: wrangler rollback shouldn't print its warning in the global menu - [#​3124](https://togithub.com/cloudflare/workers-sdk/pull/3124) [`2956c31d`](https://togithub.com/cloudflare/workers-sdk/commit/2956c31d6c310e8fcfe6b68a0ace1f6e7bf7bf4c) Thanks [@​verokarhu](https://togithub.com/verokarhu)! - fix: failed d1 migrations not treated as errors This PR teaches wrangler to return a non-success exit code when a set of migrations fails. It also cleans up `wrangler d1 migrations apply` output significantly, to only log information relevant to migrations. - [#​3390](https://togithub.com/cloudflare/workers-sdk/pull/3390) [`b5b46b4a`](https://togithub.com/cloudflare/workers-sdk/commit/b5b46b4a52a309d0b15d1424e35eaae2877c5cb9) Thanks [@​shahsimpson](https://togithub.com/shahsimpson)! - Prevents uploads with both cron triggers and smart placement enabled - [#​3358](https://togithub.com/cloudflare/workers-sdk/pull/3358) [`27b5aec5`](https://togithub.com/cloudflare/workers-sdk/commit/27b5aec5484a4b4de4f49a73eec0535a8574c518) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - This PR implements a trimmer that removes BEGIN TRANSACTION/COMMIT from SQL files sent to the API (since the D1 API already wraps SQL in a transaction for users). - [#​3324](https://togithub.com/cloudflare/workers-sdk/pull/3324) [`ed9fbf79`](https://togithub.com/cloudflare/workers-sdk/commit/ed9fbf79988b694dc4fd8f2347d85b3f8aa19a4b) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - add `d1 info` command for people to check DB size This PR adds a `d1 info ` command for getting information about a D1 database, including the current database size and state. Usage: > npx wrangler d1 info northwind ┌───────────────────┬──────────────────────────────────────┐ │ │ d5b1d127-xxxx-xxxx-xxxx-cbc69f0a9e06 │ ├───────────────────┼──────────────────────────────────────┤ │ name │ northwind │ ├───────────────────┼──────────────────────────────────────┤ │ version │ beta │ ├───────────────────┼──────────────────────────────────────┤ │ num_tables │ 13 │ ├───────────────────┼──────────────────────────────────────┤ │ file_size │ 33.1 MB │ ├───────────────────┼──────────────────────────────────────┤ │ running_in_region │ WEUR │ └───────────────────┴──────────────────────────────────────┘ > npx wrangler d1 info northwind --json { "uuid": "d5b1d127-xxxx-xxxx-xxxx-cbc69f0a9e06", "name": "northwind", "version": "beta", "num_tables": 13, "file_size": 33067008, "running_in_region": "WEUR" } - [#​3317](https://togithub.com/cloudflare/workers-sdk/pull/3317) [`3dae2585`](https://togithub.com/cloudflare/workers-sdk/commit/3dae25857bc9674209db5d4997ac9ae691fd473e) Thanks [@​jculvey](https://togithub.com/jculvey)! - Add the `--compatibility-flags` and `--compatibility-date` options to the `pages project create` command ### [`v3.0.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#301) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.0.0...wrangler@3.0.1) ##### Patch Changes - [#​3277](https://togithub.com/cloudflare/workers-sdk/pull/3277) [`99e6ccf5`](https://togithub.com/cloudflare/workers-sdk/commit/99e6ccf504f66e4885cddf91b7a09d2e256b2d11) Thanks [@​RamIdeas](https://togithub.com/RamIdeas)! - fix: remove extraneous arg when wrangler delegates to c3 ### [`v3.0.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#300) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@2.20.0...wrangler@3.0.0) ##### Major Changes - [#​3197](https://togithub.com/cloudflare/workers-sdk/pull/3197) [`3b3fadfa`](https://togithub.com/cloudflare/workers-sdk/commit/3b3fadfa16009c6eac2f0aa747db8b06eb80a391) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - feature: rename `wrangler publish` to `wrangler deploy` This ensures consistency with other messaging, documentation and our dashboard, which all refer to deployments. This also avoids confusion with the similar but very different `npm publish` command. `wrangler publish` will remain a deprecated alias for now, but will be removed in the next major version of Wrangler. - [#​3197](https://togithub.com/cloudflare/workers-sdk/pull/3197) [`bac9b5de`](https://togithub.com/cloudflare/workers-sdk/commit/bac9b5de31210e57760ecaec599fe921a426f921) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - feature: enable local development with Miniflare 3 and `workerd` by default `wrangler dev` now runs fully-locally by default, using the open-source Cloudflare Workers runtime [`workerd`](https://togithub.com/cloudflare/workerd). To restore the previous behaviour of running on a remote machine with access to production data, use the new `--remote` flag. The `--local` and `--experimental-local` flags have been deprecated, as this behaviour is now the default, and will be removed in the next major version. - [#​3197](https://togithub.com/cloudflare/workers-sdk/pull/3197) [`02a672ed`](https://togithub.com/cloudflare/workers-sdk/commit/02a672ed39921a75f32d6d2665d5a0080a71e34f) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - feature: enable persistent storage in local mode by default Wrangler will now persist local KV, R2, D1, Cache and Durable Object data in the `.wrangler` folder, by default, between reloads. This persistence directory can be customised with the `--persist-to` flag. The `--persist` flag has been removed, as this is now the default behaviour. - [#​3197](https://togithub.com/cloudflare/workers-sdk/pull/3197) [`dc755fdc`](https://togithub.com/cloudflare/workers-sdk/commit/dc755fdc885a4e8d35338e65e7e54156499e4454) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - feature: remove delegation to locally installed versions Previously, if Wrangler was installed globally *and* locally within a project, running the global Wrangler would instead invoke the local version. This behaviour was contrary to most other JavaScript CLI tools and has now been removed. We recommend you use `npx wrangler` instead, which will invoke the local version if installed, or install globally if not. - [#​3197](https://togithub.com/cloudflare/workers-sdk/pull/3197) [`24e1607a`](https://togithub.com/cloudflare/workers-sdk/commit/24e1607a5257d68da2beee90bbc61e8d04cf8742) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - chore: remove unused files from published package Specifically, the `src` and `miniflare-config-stubs` directories have been removed. ##### Minor Changes - [#​3200](https://togithub.com/cloudflare/workers-sdk/pull/3200) [`f1b8a1cc`](https://togithub.com/cloudflare/workers-sdk/commit/f1b8a1cccc47396047656cab540abdb4ec0be19a) Thanks [@​matthewdavidrodgers](https://togithub.com/matthewdavidrodgers)! - Support outbounds for dispatch_namespace bindings - [#​3197](https://togithub.com/cloudflare/workers-sdk/pull/3197) [`b7c590b5`](https://togithub.com/cloudflare/workers-sdk/commit/b7c590b54e595fa5386762b9235bce625daade4e) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - feature: warn when a new major version is available - [#​3197](https://togithub.com/cloudflare/workers-sdk/pull/3197) [`e1e5d782`](https://togithub.com/cloudflare/workers-sdk/commit/e1e5d782c059dcd8343a6d2776a34f16e9d2b735) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - feature: add warning when trying to use `wrangler dev` inside a WebContainer - [#​3230](https://togithub.com/cloudflare/workers-sdk/pull/3230) [`41fc45c2`](https://togithub.com/cloudflare/workers-sdk/commit/41fc45c225f0d269a1bb06d89754a2a14ba7d517) Thanks [@​matthewdavidrodgers](https://togithub.com/matthewdavidrodgers)! - Support tail_consumers in script upload - [#​3157](https://togithub.com/cloudflare/workers-sdk/pull/3157) [`4d7781f7`](https://togithub.com/cloudflare/workers-sdk/commit/4d7781f78ace94d3f627ba0b8ea7e5662a0cbe1f) Thanks [@​edevil](https://togithub.com/edevil)! - \[wrangler] feat: Support for Constellation bindings Added support for a new type of safe bindings called "Constellation" that allows interacting with uploaded models in the context of these projects. ```toml [[constellation]] binding = 'AI' project_id = '9d478427-dea6-4988-9b16-f6f8888d974c' ``` - [#​3135](https://togithub.com/cloudflare/workers-sdk/pull/3135) [`cc2adc2e`](https://togithub.com/cloudflare/workers-sdk/commit/cc2adc2e8b28d1e38563bf72085d44e330563b08) Thanks [@​edevil](https://togithub.com/edevil)! - \[wrangler] feat: Support for Browser Workers These bindings allow one to use puppeteer to control a browser in a worker script. - [#​3150](https://togithub.com/cloudflare/workers-sdk/pull/3150) [`7512d4cc`](https://togithub.com/cloudflare/workers-sdk/commit/7512d4cc3cb3a0d3d6d766aeb1f912fdb8493d0b) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - chore: upgrade `miniflare` to [`2.14.0`](https://togithub.com/cloudflare/miniflare/releases/tag/v2.14.0) ##### Patch Changes - [#​3175](https://togithub.com/cloudflare/workers-sdk/pull/3175) [`561b962f`](https://togithub.com/cloudflare/workers-sdk/commit/561b962f8e051ede6ce16ba189ab2088910e9cf4) Thanks [@​GregBrimble](https://togithub.com/GregBrimble)! - fix: `_worker.js/` directory support for dynamically imported chunks in `wrangler pages dev` - [#​3186](https://togithub.com/cloudflare/workers-sdk/pull/3186) [`3050ce7f`](https://togithub.com/cloudflare/workers-sdk/commit/3050ce7f9d28067c1a5e3189f42d7a9e335569cb) Thanks [@​petebacondarwin](https://togithub.com/petebacondarwin)! - fix: ensure pages \_routes.json emulation in dev command handles .s and \*s Fixes [#​3184](https://togithub.com/cloudflare/workers-sdk/issues/3184) - [#​3048](https://togithub.com/cloudflare/workers-sdk/pull/3048) [`6ccc4fa6`](https://togithub.com/cloudflare/workers-sdk/commit/6ccc4fa672204ec671a1c99db04b4acbd52d5f20) Thanks [@​oustn](https://togithub.com/oustn)! - Fix: fix local registry server closed Closes [#​1920](https://togithub.com/cloudflare/workers-sdk/issues/1920). Sometimes start the local dev server will kill the devRegistry server so that the devRegistry server can't be used. We can listen the devRegistry server close event and reset server to `null`. When registerWorker is called, we can check if the server is `null` and start a new server. - [#​3001](https://togithub.com/cloudflare/workers-sdk/pull/3001) [`f9722873`](https://togithub.com/cloudflare/workers-sdk/commit/f9722873def41d21c3a90d9bb14747e76d2e01e1) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - fix: make it possible to create a D1 database backed by the experimental backend, and make `d1 execute`'s batch size configurable With this PR, users will be able to run `wrangler d1 create --experimental-backend` to create new D1 dbs that use an experimental backend. You can also run `wrangler d1 migrations apply experimental-backend` to run migrations against an experimental database. On top of that, both `wrangler d1 migrations apply ` and `wrangler d1 execute ` now have a configurable `batch-size` flag, as the experimental backend can handle more than 10000 statements at a time. - [#​3153](https://togithub.com/cloudflare/workers-sdk/pull/3153) [`1b67a405`](https://togithub.com/cloudflare/workers-sdk/commit/1b67a405b7777efc401a44f59389ef00654b439d) Thanks [@​edevil](https://togithub.com/edevil)! - \[wrangler] fix: constellation command help Changed `name` to `projectName` in some Constellation commands that interacted with projects. Also added the possibility to specify a model description when uploading it. - [#​3214](https://togithub.com/cloudflare/workers-sdk/pull/3214) [`ce04aac0`](https://togithub.com/cloudflare/workers-sdk/commit/ce04aac04b473ad0074f0102bb15ebd4da42e55a) Thanks [@​jspspike](https://togithub.com/jspspike)! - Add message for when `wrangler tail` exits sampling mode - [#​3168](https://togithub.com/cloudflare/workers-sdk/pull/3168) [`88ff9d7d`](https://togithub.com/cloudflare/workers-sdk/commit/88ff9d7d848a4f2bb0f836c3b2758434334d5144) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - feat: (alpha) - make it possible to give D1 a hint on where it should create the database - [#​3175](https://togithub.com/cloudflare/workers-sdk/pull/3175) [`561b962f`](https://togithub.com/cloudflare/workers-sdk/commit/561b962f8e051ede6ce16ba189ab2088910e9cf4) Thanks [@​GregBrimble](https://togithub.com/GregBrimble)! - fix: `_worker.js/` directory support for D1 bindings ### [`v2.20.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#2200) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@2.19.0...wrangler@2.20.0) ##### Minor Changes - [#​2966](https://togithub.com/cloudflare/workers-sdk/pull/2966) [`e351afcf`](https://togithub.com/cloudflare/workers-sdk/commit/e351afcff4f265f85ff3e4674cc3083eb5cd5027) Thanks [@​GregBrimble](https://togithub.com/GregBrimble)! - feat: Add support for the undocumented `_worker.js/` directory in Pages - [#​3095](https://togithub.com/cloudflare/workers-sdk/pull/3095) [`133c0423`](https://togithub.com/cloudflare/workers-sdk/commit/133c0423ccb4c2b35a1dd26157ce9a24c6a743bb) Thanks [@​zebp](https://togithub.com/zebp)! - feat: add support for placement in wrangler config Allows a `placement` object in the wrangler config with a mode of `off` or `smart` to configure [Smart placement](https://developers.cloudflare.com/workers/platform/smart-placement/). Enabling Smart Placement can be done in your `wrangler.toml` like: ```toml [placement] mode = "smart" ``` - [#​3140](https://togithub.com/cloudflare/workers-sdk/pull/3140) [`5fd080c8`](https://togithub.com/cloudflare/workers-sdk/commit/5fd080c88ee7991cde107f8723f06ea2fd2c651d) Thanks [@​penalosa](https://togithub.com/penalosa)! - feat: Support sourcemaps in DevTools Intercept requests from DevTools in Wrangler to inject sourcemaps and enable folders in the Sources Panel of DevTools. When errors are thrown in your Worker, DevTools should now show your source file in the Sources panel, rather than Wrangler's bundled output. ##### Patch Changes - [#​2912](https://togithub.com/cloudflare/workers-sdk/pull/2912) [`5079f476`](https://togithub.com/cloudflare/workers-sdk/commit/5079f4767f862cb7c42f4b2b5484b0391fbe5fae) Thanks [@​petebacondarwin](https://togithub.com/petebacondarwin)! - fix: do not render "value of stdout.lastframe() is undefined" if the output is an empty string Fixes [#​2907](https://togithub.com/cloudflare/workers-sdk/issues/2907) - [#​3133](https://togithub.com/cloudflare/workers-sdk/pull/3133) [`d0788008`](https://togithub.com/cloudflare/workers-sdk/commit/d078800804899c3c8e083260f8cfdfc0397d6110) Thanks [@​dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - fix pages building not taking into account the nodejs_compat flag (and improve the related error message) - [#​3146](https://togithub.com/cloudflare/workers-sdk/pull/3146) [`5b234cfd`](https://togithub.com/cloudflare/workers-sdk/commit/5b234cfd554aff08d065b96d7d49dfb36f40caa3) Thanks [@​jspspike](https://togithub.com/jspspike)! - Added output for tail being in "sampling mode" ### [`v2.19.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#2190) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@2.18.0...wrangler@2.19.0) ##### Minor Changes - [#​3091](https://togithub.com/cloudflare/workers-sdk/pull/3091) [`c32f514c`](https://togithub.com/cloudflare/workers-sdk/commit/c32f514ca40e8b13dc9e86fdc76577b9adeb70f5) Thanks [@​edevil](https://togithub.com/edevil)! - Added initial commands for integrating with Constellation AI. ### [`v2.18.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#2180) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@2.17.0...wrangler@2.18.0) ##### Minor Changes - [#​3098](https://togithub.com/cloudflare/workers-sdk/pull/3098) [`8818f551`](https://togithub.com/cloudflare/workers-sdk/commit/8818f5516ca909cc941deb953b6359030a8c0301) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: improve Workers Sites asset upload reliability - Wrangler no longer buffers all assets into memory before uploading. This should prevent out-of-memory errors when publishing sites with many large files. - Wrangler now limits the number of in-flight asset upload requests to 5, fixing the `Too many bulk operations already in progress` error. - Wrangler now correctly logs upload progress. Previously, the reported percentage was per upload request group, not across all assets. - Wrangler no longer logs all assets to the console by default. Instead, it will just log the first 100. The rest can be shown by setting the `WRANGLER_LOG=debug` environment variable. A splash of colour has also been added. ### [`v2.17.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#2170) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@2.16.0...wrangler@2.17.0) ##### Minor Changes - [#​3004](https://togithub.com/cloudflare/workers-sdk/pull/3004) [`6d5000a7`](https://togithub.com/cloudflare/workers-sdk/commit/6d5000a7b80b29eb57139c6334f40c564c9ad0c9) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - feat: teach `wrangler docs` to use algolia search index This PR lets you search Cloudflare's entire docs via `wrangler docs [search term here]`. By default, if the search fails to find what you're looking for, you'll get an error like this: ✘ [ERROR] Could not find docs for: . Please try again with another search term. If you provide the `--yes` or `-y` flag, wrangler will open the docs to https://developers.cloudflare.com/workers/wrangler/commands/, even if the search fails. ### [`v2.16.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#2160) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@2.15.1...wrangler@2.16.0) ##### Minor Changes - [#​3058](https://togithub.com/cloudflare/workers-sdk/pull/3058) [`1bd50f56`](https://togithub.com/cloudflare/workers-sdk/commit/1bd50f56a7215bb9a9480a8e8560862acef9e326) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - chore: upgrade `miniflare@3` to [`3.0.0-next.13`](https://togithub.com/cloudflare/miniflare/releases/tag/v3.0.0-next.13) Notably, this adds native support for Windows to `wrangler dev --experimental-local`, logging for incoming requests, and support for a bunch of newer R2 features. ##### Patch Changes - [#​3058](https://togithub.com/cloudflare/workers-sdk/pull/3058) [`1bd50f56`](https://togithub.com/cloudflare/workers-sdk/commit/1bd50f56a7215bb9a9480a8e8560862acef9e326) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: disable persistence without `--persist` in `--experimental-local` This ensures `--experimental-local` doesn't persist data on the file-system, unless the `--persist` flag is set. Data is still always persisted between reloads. - [#​3055](https://togithub.com/cloudflare/workers-sdk/pull/3055) [`5f48c405`](https://togithub.com/cloudflare/workers-sdk/commit/5f48c405c663de0c6b2bfc27005246f1fdec6987) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - fix: Teach D1 commands to read auth configuration from wrangler.toml This PR fixes a bug in how D1 handles a user's accounts. We've updated the D1 commands to read from config (typically via wrangler.toml) before trying to run commands. This means if an `account_id` is defined in config, we'll use that instead of erroring out when there are multiple accounts to pick from. Fixes [#​3046](https://togithub.com/cloudflare/workers-sdk/issues/3046) - [#​3058](https://togithub.com/cloudflare/workers-sdk/pull/3058) [`1bd50f56`](https://togithub.com/cloudflare/workers-sdk/commit/1bd50f56a7215bb9a9480a8e8560862acef9e326) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: disable route validation when using `--experimental-local` This ensures `wrangler dev --experimental-local` doesn't require a login or an internet connection if a `route` is configured. ### [`v2.15.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#2151) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@2.15.0...wrangler@2.15.1) ##### Patch Changes - [#​2783](https://togithub.com/cloudflare/workers-sdk/pull/2783) [`4c55baf9`](https://togithub.com/cloudflare/workers-sdk/commit/4c55baf9cd0e3d8915272471476017e0d379a988) Thanks [@​GregBrimble](https://togithub.com/GregBrimble)! - feat: Add `**/*.wasm?module` as default module rule (alias of `**/*.wasm`) - [#​2989](https://togithub.com/cloudflare/workers-sdk/pull/2989) [`86e942bb`](https://togithub.com/cloudflare/workers-sdk/commit/86e942bbb943750ee57e209a214e08926fb32ac5) Thanks [@​GregBrimble](https://togithub.com/GregBrimble)! - fix: Durable Object proxying websockets over local dev registry ### [`v2.15.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#2150) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@2.14.0...wrangler@2.15.0) ##### Minor Changes - [#​2769](https://togithub.com/cloudflare/workers-sdk/pull/2769) [`0a779904`](https://togithub.com/cloudflare/workers-sdk/commit/0a77990457652af36c60c52bf9c38c3a69945de4) Thanks [@​penalosa](https://togithub.com/penalosa)! - feature: Support modules with `--no-bundle` When the `--no-bundle` flag is set, Wrangler now has support for uploading additional modules alongside the entrypoint. This will allow modules to be imported at runtime on Cloudflare's Edge. This respects Wrangler's [module rules](https://developers.cloudflare.com/workers/wrangler/configuration/#bundling) configuration, which means that only imports of non-JS modules will trigger an upload by default. For instance, the following code will now work with `--no-bundle` (assuming the `example.wasm` file exists at the correct path): ```js // index.js import wasm from './example.wasm' export default { async fetch() { await WebAssembly.instantiate(wasm, ...) ... } } ``` For JS modules, it's necessary to specify an additional [module rule](https://developers.cloudflare.com/workers/wrangler/configuration/#bundling) (or rules) in your `wrangler.toml` to configure your modules as ES modules or Common JS modules. For instance, to upload additional JavaScript files as ES modules, add the following module rule to your `wrangler.toml`, which tells Wrangler that all `**/*.js` files are ES modules. ```toml rules = [ { type = "ESModule", globs = ["**/*.js"]}, ] ``` If you have Common JS modules, you'd configure Wrangler with a CommonJS rule (the following rule tells Wrangler that all `.cjs` files are Common JS modules): ```toml rules = [ { type = "CommonJS", globs = ["**/*.cjs"]}, ] ``` In most projects, adding a single rule will be sufficient. However, for advanced usecases where you're mixing ES modules and Common JS modules, you'll need to use multiple rule definitions. For instance, the following set of rules will match all `.mjs` files as ES modules, all `.cjs` files as Common JS modules, and the `nested/say-hello.js` file as Common JS. ```toml rules = [ { type = "CommonJS", globs = ["nested/say-hello.js", "**/*.cjs"]}, { type = "ESModule", globs = ["**/*.mjs"]} ] ``` If multiple rules overlap, Wrangler will log a warning about the duplicate rules, and will discard additional rules that matches a module. For example, the following rule configuration classifies `dep.js` as both a Common JS module and an ES module: ```toml rules = [ { type = "CommonJS", globs = ["dep.js"]}, { type = "ESModule", globs = ["dep.js"]} ] ``` Wrangler will treat `dep.js` as a Common JS module, since that was the first rule that matched, and will log the following warning: ▲ [WARNING] Ignoring duplicate module: dep.js (esm) This also adds a new configuration option to `wrangler.toml`: `base_dir`. Defaulting to the directory of your Worker's main entrypoint, this tells Wrangler where your additional modules are located, and determines the module paths against which your module rule globs are matched. For instance, given the following directory structure: - wrangler.toml - src/ - index.html - vendor/ - dependency.js - js/ - index.js If your `wrangler.toml` had `main = "src/js/index.js"`, you would need to set `base_dir = "src"` in order to be able to import `src/vendor/dependency.js` and `src/index.html` from `src/js/index.js`. ##### Patch Changes - [#​2957](https://togithub.com/cloudflare/workers-sdk/pull/2957) [`084b2c58`](https://togithub.com/cloudflare/workers-sdk/commit/084b2c58ba051811afe4adf1518cab033ba62872) Thanks [@​esimons](https://togithub.com/esimons)! - fix: Respect querystring params when calling `.fetch` on a worker instantiated with `unstable_dev` Previously, querystring params would be stripped, causing issues for test cases that depended on them. For example, given the following worker script: ```js export default { fetch(req) { const url = new URL(req.url); const name = url.searchParams.get("name"); return new Response("Hello, " + name); } }; ``` would fail the following test case: ```js const worker = await unstable_dev("script.js"); const res = await worker.fetch("http://worker?name=Walshy"); const text = await res.text(); // Following fails, as returned text is 'Hello, null' expect(text).toBe("Hello, Walshy"); ``` - [#​2840](https://togithub.com/cloudflare/workers-sdk/pull/2840) [`e311bbbf`](https://togithub.com/cloudflare/workers-sdk/commit/e311bbbf64343badd4bba7eb017b796a89eaf9fe) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: make `WRANGLER_LOG` case-insensitive, warn on unexpected values, and fallback to `log` if invalid Previously, levels set via the `WRANGLER_LOG` environment-variable were case-sensitive. If an unexpected level was set, Wrangler would fallback to `none`, hiding all logs. The fallback has now been switched to `log`, and lenient case-insensitive matching is used when setting the level. - [#​2044](https://togithub.com/cloudflare/workers-sdk/pull/2044) [`eebad0d9`](https://togithub.com/cloudflare/workers-sdk/commit/eebad0d9e593237b4db61047c94e2ec5b47a7b3c) Thanks [@​kuba-orlik](https://togithub.com/kuba-orlik)! - fix: allow programmatic dev workers to be stopped and started in a single session - [#​2735](https://togithub.com/cloudflare/workers-sdk/pull/2735) [`3f7a75cc`](https://togithub.com/cloudflare/workers-sdk/commit/3f7a75ccc252567be3e9062ff0c6fd7e00201d0e) Thanks [@​JacobMGEvans](https://togithub.com/JacobMGEvans)! - Fix: Generate Remote URL Previous URL was pointing to the old cloudflare/templates repo, updated the URL to point to templates in the workers-sdk monorepo.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

stackblitz[bot] commented 1 year ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: f2d2ab25e121f476d24db777d876d71bd3c6c7c8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR