pi0 / nitro-cloudflare-dev

POC module to enable access to the Cloudflare runtime bindings in development server of Nitro and Nuxt
MIT License
62 stars 2 forks source link

chore(deps): update devdependency wrangler to v3 #2

Closed renovate[bot] closed 5 months ago

renovate[bot] commented 5 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
wrangler (source) 0.0.0-fa09f4a2 -> 3.23.0 age adoption passing confidence

Release Notes

cloudflare/workers-sdk (wrangler) ### [`v3.23.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3230) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.22.5...wrangler@3.23.0) ##### Minor Changes - [#​4310](https://togithub.com/cloudflare/workers-sdk/pull/4310) [`dae30015`](https://togithub.com/cloudflare/workers-sdk/commit/dae30015c646502819d79bf8b8ae032c4aa0669d) Thanks [@​gabivlj](https://togithub.com/gabivlj)! - Added `wrangler cloudchamber` commands See [#​4310](https://togithub.com/cloudflare/workers-sdk/pull/4310) for more details. ##### Patch Changes - [#​4674](https://togithub.com/cloudflare/workers-sdk/pull/4674) [`54ea6a53`](https://togithub.com/cloudflare/workers-sdk/commit/54ea6a53bd1f222308135ed96bbb16a019302382) Thanks [@​matthewdavidrodgers](https://togithub.com/matthewdavidrodgers)! - Fix usage of patch API in bulk secrets update Only specifying the name and type of a binding instructs the patch API to copy the existing binding over - but we were including the contents of the binding as well. Normally that's OK, but there are some subtle differences between what you specify to *create* a binding vs what it looks like once it's *created*, specifically for Durable Objects. So instead, we just use the simpler inheritance. - [#​4772](https://togithub.com/cloudflare/workers-sdk/pull/4772) [`4a9f03cf`](https://togithub.com/cloudflare/workers-sdk/commit/4a9f03cf56c3041b5ad77a7d66f6458777d1e655) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: ensure dev server doesn't change request URLs Previously, Wrangler's dev server could change incoming request URLs unexpectedly (e.g. rewriting `http://localhost:8787//test` to `http://localhost:8787/test`). This change ensures URLs are passed through without modification. Fixes [#​4743](https://togithub.com/cloudflare/workers-sdk/issues/4743). ### [`v3.22.5`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3225) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.22.4...wrangler@3.22.5) ##### Patch Changes - [#​4707](https://togithub.com/cloudflare/workers-sdk/pull/4707) [`96a27f3d`](https://togithub.com/cloudflare/workers-sdk/commit/96a27f3d8a250c995907773d1aa695f80d43d9d0) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: only offer to report unknown errors Previously, Wrangler would offer to report any error to Cloudflare. This included errors caused by misconfigurations or invalid commands. This change ensures those types of errors aren't reported. - [#​4676](https://togithub.com/cloudflare/workers-sdk/pull/4676) [`078cf84d`](https://togithub.com/cloudflare/workers-sdk/commit/078cf84dcdd8bfce3f80f0ccaf6d2afa714245c4) Thanks [@​dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - make sure the script path is correctly resolved in `pages dev` when no directory is specified - [#​4722](https://togithub.com/cloudflare/workers-sdk/pull/4722) [`5af6df13`](https://togithub.com/cloudflare/workers-sdk/commit/5af6df1371166886ce16d8f0cdea04a1bc401cae) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: don't require auth for `wrangler r2 object --local` operations Previously, Wrangler would ask you to login when reading or writing from local R2 buckets. This change ensures no login prompt is displayed, as authentication isn't required for these operations. - [#​4719](https://togithub.com/cloudflare/workers-sdk/pull/4719) [`c37d94b5`](https://togithub.com/cloudflare/workers-sdk/commit/c37d94b51f4d5517c244f8a4178be6a266d2362e) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: ensure `miniflare` and `wrangler` can source map in the same process Previously, if in a `wrangler dev` session you called `console.log()` and threw an unhandled error you'd see an error like `[ERR_ASSERTION]: The expression evaluated to a falsy value`. This change ensures you can do both of these things in the same session. - [#​4683](https://togithub.com/cloudflare/workers-sdk/pull/4683) [`24147166`](https://togithub.com/cloudflare/workers-sdk/commit/24147166a3cb8f5ca2612646a494dc80cb399f79) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: ensure logs containing `at` not truncated to `at [object Object]` Previously, logs containing `at` were always treated as stack trace call sites requiring source mapping. This change updates the call site detection to avoid false positives. - [#​4748](https://togithub.com/cloudflare/workers-sdk/pull/4748) [`3603a60d`](https://togithub.com/cloudflare/workers-sdk/commit/3603a60d4b06801cf5ce9ee693d467426afa997f) Thanks [@​Cherry](https://togithub.com/Cherry)! - fix: resolve imports in a more node-like fashion for packages that do not declare exports Previously, trying to import a file that wasn't explicitly exported from a module would result in an error, but now, better attempts are made to resolve the import using node's module resolution algorithm. It's now possible to do things like this: ```js import JPEG_DEC_WASM from "@​jsquash/jpeg/codec/dec/mozjpeg_dec.wasm"; ``` This works even if the `mozjpeg_dec.wasm` file isn't explicitly exported from the `@jsquash/jpeg` module. Fixes [#​4726](https://togithub.com/cloudflare/workers-sdk/issues/4726) - [#​4687](https://togithub.com/cloudflare/workers-sdk/pull/4687) [`0a488f66`](https://togithub.com/cloudflare/workers-sdk/commit/0a488f6616618ce67ee22a4402d4b7477669b075) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: remove confusing `--local` messaging from `wrangler pages dev` Running `wrangler pages dev` would previously log a warning saying `--local is no longer required` even though `--local` was never set. This change removes this warning. - Updated dependencies \[[`4f6999ea`](https://togithub.com/cloudflare/workers-sdk/commit/4f6999eacd591d0d65180f805f2abc3c8a2c06c4), [`c37d94b5`](https://togithub.com/cloudflare/workers-sdk/commit/c37d94b51f4d5517c244f8a4178be6a266d2362e)]: - miniflare@3.20231218.2 ### [`v3.22.4`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3224) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.22.3...wrangler@3.22.4) ##### Patch Changes - [#​4699](https://togithub.com/cloudflare/workers-sdk/pull/4699) [`4b4c1416`](https://togithub.com/cloudflare/workers-sdk/commit/4b4c1416fec5f0de74a8abadbf5103b40b9929ea) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: prevent repeated reloads with circular service bindings `wrangler@3.19.0` introduced a bug where starting multiple `wrangler dev` sessions with service bindings to each other resulted in a reload loop. This change ensures Wrangler only reloads when dependent `wrangler dev` sessions start/stop. ### [`v3.22.3`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3223) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.22.2...wrangler@3.22.3) ##### Patch Changes - [#​4693](https://togithub.com/cloudflare/workers-sdk/pull/4693) [`93e88c43`](https://togithub.com/cloudflare/workers-sdk/commit/93e88c433fdd82db63b332559efaabef6c482e88) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: ensure `wrangler dev` exits with code `0` on clean exit Previously, `wrangler dev` would exit with a non-zero exit code when pressing CTRL+C or x. This change ensures `wrangler` exits with code `0` in these cases. - [#​4630](https://togithub.com/cloudflare/workers-sdk/pull/4630) [`037de5ec`](https://togithub.com/cloudflare/workers-sdk/commit/037de5ec77efc8261860c6d625bc90cd1f2fdd41) Thanks [@​petebacondarwin](https://togithub.com/petebacondarwin)! - fix: ensure User Worker gets the correct Host header in wrangler dev local mode Some full-stack frameworks, such as Next.js, check that the Host header for a server side action request matches the host where the application is expected to run. In `wrangler dev` we have a Proxy Worker in between the browser and the actual User Worker. This Proxy Worker is forwarding on the request from the browser, but then the actual User Worker is running on a different host:port combination than that which the browser thinks it should be on. This was causing the framework to think the request is malicious and blocking it. Now we update the request's Host header to that passed from the Proxy Worker in a custom `MF-Original-Url` header, but only do this if the request also contains a shared secret between the Proxy Worker and User Worker, which is passed via the `MF-Proxy-Shared-Secret` header. This last feature is to prevent a malicious website from faking the Host header in a request directly to the User Worker. Fixes [https://github.com/cloudflare/next-on-pages/issues/588](https://togithub.com/cloudflare/next-on-pages/issues/588) - [#​4695](https://togithub.com/cloudflare/workers-sdk/pull/4695) [`0f8a03c0`](https://togithub.com/cloudflare/workers-sdk/commit/0f8a03c06aa3180799cf03b1e60c348620115600) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: ensure API failures without additional messages logged correctly - [#​4693](https://togithub.com/cloudflare/workers-sdk/pull/4693) [`93e88c43`](https://togithub.com/cloudflare/workers-sdk/commit/93e88c433fdd82db63b332559efaabef6c482e88) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: ensure `wrangler pages dev` exits cleanly Previously, pressing CTRL+C or x when running `wrangler pages dev` wouldn't actually exit `wrangler`. You'd need to press CTRL+C a second time to exit the process. This change ensures `wrangler` exits the first time. - [#​4696](https://togithub.com/cloudflare/workers-sdk/pull/4696) [`624084c4`](https://togithub.com/cloudflare/workers-sdk/commit/624084c447a4898c4273c26e3ea24ea069a2900b) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: include additional modules in `largest dependencies` warning If your Worker fails to deploy because it's too large, Wrangler will display of list of your Worker's largest dependencies. Previously, this just included JavaScript dependencies. This change ensures additional module dependencies (e.g. WebAssembly, text blobs, etc.) are included when computing this list. - Updated dependencies \[[`037de5ec`](https://togithub.com/cloudflare/workers-sdk/commit/037de5ec77efc8261860c6d625bc90cd1f2fdd41)]: - miniflare@3.20231218.1 ### [`v3.22.2`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3222) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.22.1...wrangler@3.22.2) ##### Patch Changes - [#​4600](https://togithub.com/cloudflare/workers-sdk/pull/4600) [`4233e514`](https://togithub.com/cloudflare/workers-sdk/commit/4233e5149d7dafe44c22a59b33310744fc02efc6) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: apply source mapping to deployment validation errors Previously if a Worker failed validation during `wrangler deploy`, the displayed error would reference locations in built JavaScript files. This made it more difficult to debug validation errors. This change ensures these errors are now source mapped, referencing locations in source files instead. - [#​4440](https://togithub.com/cloudflare/workers-sdk/pull/4440) [`15717333`](https://togithub.com/cloudflare/workers-sdk/commit/157173338a9f6a0701fd47711ff321be0dcbb037) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: automatically create required directories for `wrangler r2 object get` Previously, if you tried to use `wrangler r2 object get` with an object name containing a `/` or used the `--file` flag with a path containing a `/`, and the specified directory didn't exist, Wrangler would throw an `ENOENT` error. This change ensures Wrangler automatically creates required parent directories if they don't exist. - [#​4592](https://togithub.com/cloudflare/workers-sdk/pull/4592) [`20da658e`](https://togithub.com/cloudflare/workers-sdk/commit/20da658ee3cc2c6684b68fd7b7da389dd5de6a0f) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: throw helpful error if email validation required Previously, Wrangler would display the raw API error message and code if email validation was required during `wrangler deploy`. This change ensures a helpful error message is displayed instead, prompting users to check their emails or visit the dashboard for a verification link. - [#​4597](https://togithub.com/cloudflare/workers-sdk/pull/4597) [`e1d50407`](https://togithub.com/cloudflare/workers-sdk/commit/e1d504077ab6b0bd996df58ebda76918c2fee076) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: suggest checking permissions on authentication error with API token set - [#​4593](https://togithub.com/cloudflare/workers-sdk/pull/4593) [`c370026d`](https://togithub.com/cloudflare/workers-sdk/commit/c370026d3f07f7214e33aa44ad507fe1e97bdfdd) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: include messages from API in errors - [#​4588](https://togithub.com/cloudflare/workers-sdk/pull/4588) [`4e5ed0b2`](https://togithub.com/cloudflare/workers-sdk/commit/4e5ed0b28383602db9aa48658811a01ccfb8e5c2) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: require worker name for rollback Previously, Wrangler would fail with a cryptic error if you tried to run `wrangler rollback` outside of a directory containing a Wrangler configuration file with a `name` defined. This change validates that a worker name is defined, and allows you to set it from the command line using the `--name` flag. - Updated dependencies \[[`c410ea14`](https://togithub.com/cloudflare/workers-sdk/commit/c410ea141f02f808ff3dddfa9ee21ccbb530acec)]: - miniflare@3.20231218.0 ### [`v3.22.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3221) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.22.0...wrangler@3.22.1) ##### Patch Changes - [#​4635](https://togithub.com/cloudflare/workers-sdk/pull/4635) [`5bc2699d`](https://togithub.com/cloudflare/workers-sdk/commit/5bc2699d9ec8b591b294df342bf12ac0b16eb814) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: prevent zombie `workerd` processes Previously, running `wrangler dev` would leave behind "zombie" `workerd` processes. These processes prevented the same port being bound if `wrangler dev` was restarted and sometimes consumed lots of CPU time. This change ensures all `workerd` processes are killed when `wrangler dev` is shutdown. To clean-up existing zombie processes, run `pkill -KILL workerd` on macOS/Linux or `taskkill /f /im workerd.exe` on Windows. ### [`v3.22.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3220) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.21.0...wrangler@3.22.0) ##### Minor Changes - [#​4632](https://togithub.com/cloudflare/workers-sdk/pull/4632) [`a6a4e8a4`](https://togithub.com/cloudflare/workers-sdk/commit/a6a4e8a4981f390709ae7519225a02cd981059b4) Thanks [@​G4brym](https://togithub.com/G4brym)! - Deprecate constellation commands and add a warning when using the constellation binding - [#​4130](https://togithub.com/cloudflare/workers-sdk/pull/4130) [`e8a2a1d9`](https://togithub.com/cloudflare/workers-sdk/commit/e8a2a1d9ddded5b4c472750e80011895f14b9315) Thanks [@​vkrasnov](https://togithub.com/vkrasnov)! - Added support for R2 Sippy incremental migration - [#​4621](https://togithub.com/cloudflare/workers-sdk/pull/4621) [`98dee932`](https://togithub.com/cloudflare/workers-sdk/commit/98dee932811aef5e50065d8d9d9ba9728ad84c20) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - feat: add rows written/read in the last 24 hours to `wrangler d1 info` output - [#​4426](https://togithub.com/cloudflare/workers-sdk/pull/4426) [`c628de59`](https://togithub.com/cloudflare/workers-sdk/commit/c628de591a0d436b5496dac53d771d92ee5d406a) Thanks [@​OilyLime](https://togithub.com/OilyLime)! - Improve queues list displaying as table, update queues API types ### [`v3.21.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3210) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.20.0...wrangler@3.21.0) ##### Minor Changes - [#​4423](https://togithub.com/cloudflare/workers-sdk/pull/4423) [`a94ef570`](https://togithub.com/cloudflare/workers-sdk/commit/a94ef5700ade9d96e4060dd590a7b3f0bd2e28c1) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - feat: apply source mapping to logged strings Previously, Wrangler would only apply source mapping to uncaught exceptions. This meant if you caught an exception and logged its stack trace, the call sites would reference built JavaScript files as opposed to source files. This change looks for stack traces in logged messages, and tries to source map them. Note source mapping is only applied when outputting logs. `Error#stack` does not return a source mapped stack trace. This means the actual runtime value of `new Error().stack` and the output from `console.log(new Error().stack)` may be different. ##### Patch Changes - [#​4511](https://togithub.com/cloudflare/workers-sdk/pull/4511) [`66394681`](https://togithub.com/cloudflare/workers-sdk/commit/66394681d99b8afa7c56274388eb7085afb41916) Thanks [@​huw](https://togithub.com/huw)! - Add 'took recursive isolate lock' warning to workerd output exceptions ### [`v3.20.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3200) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.19.0...wrangler@3.20.0) ##### Minor Changes - [#​4522](https://togithub.com/cloudflare/workers-sdk/pull/4522) [`c10bf0fd`](https://togithub.com/cloudflare/workers-sdk/commit/c10bf0fd2f24681cfcb78c6bf700a2e4acf41f30) Thanks [@​G4brym](https://togithub.com/G4brym)! - Add support for Workers AI in local mode - [#​4571](https://togithub.com/cloudflare/workers-sdk/pull/4571) [`3314dbde`](https://togithub.com/cloudflare/workers-sdk/commit/3314dbdea2eeacb2d26d9bae867cbd3649ac73b3) Thanks [@​penalosa](https://togithub.com/penalosa)! - feat: When Wrangler crashes, send an error report to Sentry to aid in debugging. When Wrangler's top-level exception handler catches an error thrown from Wrangler's application, it will offer to report the error to Sentry. This requires opt-in from the user every time. ##### Patch Changes - [#​4577](https://togithub.com/cloudflare/workers-sdk/pull/4577) [`4c85fe99`](https://togithub.com/cloudflare/workers-sdk/commit/4c85fe9976a3a2d60cf8508b9a090331027baf37) Thanks [@​dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - During the R2 validation, show `MAX_UPLOAD_SIZE` errors using MiB (consistently with the Cloudflare docs) - [#​4577](https://togithub.com/cloudflare/workers-sdk/pull/4577) [`4c85fe99`](https://togithub.com/cloudflare/workers-sdk/commit/4c85fe9976a3a2d60cf8508b9a090331027baf37) Thanks [@​dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - During the Pages validation, show `MAX_UPLOAD_SIZE` errors using MiB (consistently with the Cloudflare docs) - Updated dependencies \[[`eb08e2dc`](https://togithub.com/cloudflare/workers-sdk/commit/eb08e2dc3c0f09d16883f85201fbeb892e6f5a5b)]: - miniflare@3.20231030.4 ### [`v3.19.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3190) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.18.0...wrangler@3.19.0) ##### Minor Changes - [#​4547](https://togithub.com/cloudflare/workers-sdk/pull/4547) [`86c81ff0`](https://togithub.com/cloudflare/workers-sdk/commit/86c81ff0d59e79d2d33f176f69a7c2d1dcd91e02) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: listen on IPv4 loopback only by default on Windows Due to a [known issue](https://togithub.com/cloudflare/workerd/issues/1408), `workerd` will only listen on the IPv4 loopback address `127.0.0.1` when it's asked to listen on `localhost`. On Node.js > 17, `localhost` will resolve to the IPv6 loopback address, meaning requests to `workerd` would fail. This change switches to using the IPv4 loopback address throughout Wrangler on Windows, while [workerd#1408](https://togithub.com/cloudflare/workerd/issues/1408) gets fixed. - [#​4535](https://togithub.com/cloudflare/workers-sdk/pull/4535) [`29df8e17`](https://togithub.com/cloudflare/workers-sdk/commit/29df8e17545bf3926b6d61678b596be809d40c6d) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - Reintroduces some internal refactorings of wrangler dev servers (including `wrangler dev`, `wrangler dev --remote`, and `unstable_dev()`). These changes were released in 3.13.0 and reverted in 3.13.1 -- we believe the changes are now more stable and ready for release again. There are no changes required for developers to opt-in. Improvements include: - fewer 'address in use' errors upon reloads - upon config/source file changes, requests are buffered to guarantee the response is from the new version of the Worker ##### Patch Changes - [#​4521](https://togithub.com/cloudflare/workers-sdk/pull/4521) [`6c5bc704`](https://togithub.com/cloudflare/workers-sdk/commit/6c5bc704c5a13aab58b765c57b700204bc0830bf) Thanks [@​zebp](https://togithub.com/zebp)! - fix: init from dash specifying explicit usage model in wrangler.toml for standard users - [#​4550](https://togithub.com/cloudflare/workers-sdk/pull/4550) [`63708a94`](https://togithub.com/cloudflare/workers-sdk/commit/63708a94fb7a055bf15fa963f2d598b47b11d3c0) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: validate `Host` and `Orgin` headers where appropriate `Host` and `Origin` headers are now checked when connecting to the inspector and Miniflare's magic proxy. If these don't match what's expected, the request will fail. - Updated dependencies \[[`71fb0b86`](https://togithub.com/cloudflare/workers-sdk/commit/71fb0b86cf0ed81cc29ad71792edbba3a79ba87c), [`63708a94`](https://togithub.com/cloudflare/workers-sdk/commit/63708a94fb7a055bf15fa963f2d598b47b11d3c0)]: - miniflare@3.20231030.3 ### [`v3.18.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3180) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.17.1...wrangler@3.18.0) ##### Minor Changes - [#​4532](https://togithub.com/cloudflare/workers-sdk/pull/4532) [`311ffbd5`](https://togithub.com/cloudflare/workers-sdk/commit/311ffbd5064f8301ac6f0311bbe5630897923b93) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: change `wrangler (pages) dev` to listen on `localhost` by default Previously, Wrangler listened on all interfaces (`*`) by default. This change switches `wrangler (pages) dev` to just listen on local interfaces. Whilst this is technically a breaking change, we've decided the security benefits outweigh the potential disruption caused. If you need to access your dev server from another device on your network, you can use `wrangler (pages) dev --ip *` to restore the previous behaviour. ##### Patch Changes - Updated dependencies \[[`1b348782`](https://togithub.com/cloudflare/workers-sdk/commit/1b34878287e3c98e8743e0a9c30b860107d4fcbe)]: - miniflare@3.20231030.2 ### [`v3.17.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3171) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.17.0...wrangler@3.17.1) ##### Patch Changes - [#​4474](https://togithub.com/cloudflare/workers-sdk/pull/4474) [`382ef8f5`](https://togithub.com/cloudflare/workers-sdk/commit/382ef8f580ab755d2706692e865b619953ef5671) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: open browser to correct url pressing `b` in `--remote` mode This change ensures Wrangler doesn't try to open `http://*` when `*` is used as the dev server's hostname. Instead, Wrangler will now open `http://127.0.0.1`. - [#​4488](https://togithub.com/cloudflare/workers-sdk/pull/4488) [`3bd57238`](https://togithub.com/cloudflare/workers-sdk/commit/3bd5723852c8340d04930e056ef1e8f97dc316ae) Thanks [@​RamIdeas](https://togithub.com/RamIdeas)! - Changes the default directory for log files to workaround frameworks that are watching the entire `.wrangler` directory in the project root for changes Also includes a fix for commands with `--json` where the log file location message would cause stdout to not be valid JSON. That message now goes to stderr. ### [`v3.17.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3170) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.16.0...wrangler@3.17.0) ##### Minor Changes - [#​4341](https://togithub.com/cloudflare/workers-sdk/pull/4341) [`d9908743`](https://togithub.com/cloudflare/workers-sdk/commit/d99087433814e4f1fb98cd61b03b6e2f606b1a15) Thanks [@​RamIdeas](https://togithub.com/RamIdeas)! - Wrangler now writes all logs to a .log file in the `.wrangler` directory. Set a directory or specific .log filepath to write logs to with `WRANGLER_LOG_PATH=../Desktop/my-logs/` or `WRANGLER_LOG_PATH=../Desktop/my-logs/my-log-file.log`. When specifying a directory or using the default location, a filename with a timestamp is used. Wrangler now filters workerd stdout/stderr and marks unactionable messages as debug logs. These debug logs are still observable in the debug log file but will no longer show in the terminal by default without the user setting the env var `WRANGLER_LOG=debug`. ##### Patch Changes - [#​4469](https://togithub.com/cloudflare/workers-sdk/pull/4469) [`d5e1966b`](https://togithub.com/cloudflare/workers-sdk/commit/d5e1966b24e65aa5591739c0b950e4635ac5fa19) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: report correct line and column numbers when source mapping errors with `wrangler dev --remote` - [#​4455](https://togithub.com/cloudflare/workers-sdk/pull/4455) [`1747d215`](https://togithub.com/cloudflare/workers-sdk/commit/1747d215e7113909edf0596e713b808024c36c70) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - fix: make it possible to ignore hyperdrive warnings - [#​4456](https://togithub.com/cloudflare/workers-sdk/pull/4456) [`805d5241`](https://togithub.com/cloudflare/workers-sdk/commit/805d5241ac7831ed46e5e2bc8bb4ffc062160d56) Thanks [@​dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - add warnings about ai and verctorize bindings not being supported locally - [#​4478](https://togithub.com/cloudflare/workers-sdk/pull/4478) [`7b54350b`](https://togithub.com/cloudflare/workers-sdk/commit/7b54350b6d21c836f16f9942da982f5d361727cf) Thanks [@​penalosa](https://togithub.com/penalosa)! - Don't log sensitive data to the Wrangler debug log file by default. This includes API request headers and responses. - Updated dependencies \[[`be2b9cf5`](https://togithub.com/cloudflare/workers-sdk/commit/be2b9cf5a9395cf7385f59d2e1ec3131dae3d87f), [`d9908743`](https://togithub.com/cloudflare/workers-sdk/commit/d99087433814e4f1fb98cd61b03b6e2f606b1a15)]: - miniflare@3.20231030.1 ### [`v3.16.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3160) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.15.0...wrangler@3.16.0) ##### Minor Changes - [#​4347](https://togithub.com/cloudflare/workers-sdk/pull/4347) [`102e15f9`](https://togithub.com/cloudflare/workers-sdk/commit/102e15f9e735ff7506cfff457046137ee7b03c32) Thanks [@​Skye-31](https://togithub.com/Skye-31)! - Feat(unstable_dev): Provide an option for unstable_dev to perform the check that prompts users to update wrangler, defaulting to false. This will prevent unstable_dev from sending a request to NPM on startup to determine whether it needs to be updated. - [#​4179](https://togithub.com/cloudflare/workers-sdk/pull/4179) [`dd270d00`](https://togithub.com/cloudflare/workers-sdk/commit/dd270d0065159150ff318f2f06607ddecba6ee9b) Thanks [@​matthewdavidrodgers](https://togithub.com/matthewdavidrodgers)! - Simplify secret:bulk api via script settings Firing PUTs to the secret api in parallel has never been a great solution - each request independently needs to lock the script, so running in parallel is at best just as bad as running serially. Luckily, we have the script settings PATCH api now, which can update the settings for a script (including secret bindings) at once, which means we don't need any parallelization. However this api doesn't work with a partial list of bindings, so we have to fetch the current bindings and merge in with the new secrets before PATCHing. We can however just omit the value of the binding (i.e. only provide the name and type) which instructs the config service to inherit the existing value, which simplifies this as well. Note that we don't use the bindings in your current wrangler.toml, as you could be in a draft state, and it makes sense as a user that a bulk secrets update won't update anything else. Instead, we use script settings api again to fetch the current state of your bindings. This simplified implementation means the operation can only fail or succeed, rather than succeeding in updating some secrets but failing for others. In order to not introduce breaking changes for logging output, the language around "${x} secrets were updated" or "${x} secrets failed" is kept, even if it doesn't make much sense anymore. ##### Patch Changes - [#​4402](https://togithub.com/cloudflare/workers-sdk/pull/4402) [`baa76e77`](https://togithub.com/cloudflare/workers-sdk/commit/baa76e774038393fb6b491e2c371da53b8b2a676) Thanks [@​rozenmd](https://togithub.com/rozenmd)! - This PR adds a fetch handler that uses `page`, assuming `result_info` provided by the endpoint contains `page`, `per_page`, and `total` This is needed as the existing `fetchListResult` handler for fetching potentially paginated results doesn't work for endpoints that don't implement `cursor`. Fixes [#​4349](https://togithub.com/cloudflare/workers-sdk/issues/4349) - [#​4337](https://togithub.com/cloudflare/workers-sdk/pull/4337) [`6c8f41f8`](https://togithub.com/cloudflare/workers-sdk/commit/6c8f41f8e76890d6027fd97eaf4e88dccb509fc8) Thanks [@​Skye-31](https://togithub.com/Skye-31)! - Improve the error message when a script isn't exported a Durable Object class Previously, wrangler would error with a message like `Uncaught TypeError: Class extends value undefined is not a constructor or null`. This improves that messaging to be more understandable to users. - [#​4307](https://togithub.com/cloudflare/workers-sdk/pull/4307) [`7fbe1937`](https://togithub.com/cloudflare/workers-sdk/commit/7fbe1937b311f36077c92814207bbb15ef3878d6) Thanks [@​jspspike](https://togithub.com/jspspike)! - Change local dev server default ip to `*` instead of `0.0.0.0`. This will cause the dev server to listen on both ipv4 and ipv6 interfaces - [#​4222](https://togithub.com/cloudflare/workers-sdk/pull/4222) [`f867e01c`](https://togithub.com/cloudflare/workers-sdk/commit/f867e01ca2967a11a8d5eda32da42941383753a8) Thanks [@​tmthecoder](https://togithub.com/tmthecoder)! - Support for hyperdrive bindings in local wrangler dev - [#​4149](https://togithub.com/cloudflare/workers-sdk/pull/4149) [`7e05f38e`](https://togithub.com/cloudflare/workers-sdk/commit/7e05f38e04e40125c9c5352b7ff1c95616c1baf0) Thanks [@​jspspike](https://togithub.com/jspspike)! - Fixed issue with `tail` not using proxy - [#​4219](https://togithub.com/cloudflare/workers-sdk/pull/4219) [`0453b447`](https://togithub.com/cloudflare/workers-sdk/commit/0453b447251cc670310be6a2067c84074f6a515b) Thanks [@​maxwellpeterson](https://togithub.com/maxwellpeterson)! - Allows uploads with both cron triggers and smart placement enabled - [#​4437](https://togithub.com/cloudflare/workers-sdk/pull/4437) [`05b1bbd2`](https://togithub.com/cloudflare/workers-sdk/commit/05b1bbd2f5b8e60268e30c276067c3a3ae1239cf) Thanks [@​jspspike](https://togithub.com/jspspike)! - Change dev registry and inspector server to listen on 127.0.0.1 instead of all interfaces - Updated dependencies \[[`4f8b3420`](https://togithub.com/cloudflare/workers-sdk/commit/4f8b3420f93197d331491f012ff6f4626411bfc5), [`16cc2e92`](https://togithub.com/cloudflare/workers-sdk/commit/16cc2e923733b3c583b5bf6c40384c52fea04991), [`3637d97a`](https://togithub.com/cloudflare/workers-sdk/commit/3637d97a99c9d5e8d0d2b5f3adaf4bd9993265f0), [`29a59d4e`](https://togithub.com/cloudflare/workers-sdk/commit/29a59d4e72e3ae849474325c5c93252a3f84af0d), [`7fbe1937`](https://togithub.com/cloudflare/workers-sdk/commit/7fbe1937b311f36077c92814207bbb15ef3878d6), [`76787861`](https://togithub.com/cloudflare/workers-sdk/commit/767878613eda535d125539a478d488d1a42feaa1), [`8a25b7fb`](https://togithub.com/cloudflare/workers-sdk/commit/8a25b7fba94c8e9989412bc266ada307975f182d)]: - miniflare@3.20231030.0 ### [`v3.15.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3150) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.14.0...wrangler@3.15.0) ##### Minor Changes - [#​4201](https://togithub.com/cloudflare/workers-sdk/pull/4201) [`0cac2c46`](https://togithub.com/cloudflare/workers-sdk/commit/0cac2c4681852709883ea91f5b73c5af1f70088a) Thanks [@​penalosa](https://togithub.com/penalosa)! - Callout `--minify` when script size is too large - [#​4209](https://togithub.com/cloudflare/workers-sdk/pull/4209) [`24d1c5cf`](https://togithub.com/cloudflare/workers-sdk/commit/24d1c5cf3b810e780df865a0f76f1c3ae8ed5fbe) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: suppress compatibility date fallback warnings if no `wrangler` update is available If a compatibility date greater than the installed version of `workerd` was configured, a warning would be logged. This warning was only actionable if a new version of `wrangler` was available. The intent here was to warn if a user set a new compatibility date, but forgot to update `wrangler` meaning changes enabled by the new date wouldn't take effect. This change hides the warning if no update is available. It also changes the default compatibility date for `wrangler dev` sessions without a configured compatibility date to the installed version of `workerd`. This previously defaulted to the current date, which may have been unsupported by the installed runtime. - [#​4135](https://togithub.com/cloudflare/workers-sdk/pull/4135) [`53218261`](https://togithub.com/cloudflare/workers-sdk/commit/532182610087dffda04cc2091baeceb96e7fdb26) Thanks [@​Cherry](https://togithub.com/Cherry)! - feat: resolve npm exports for file imports Previously, when using wasm (or other static files) from an npm package, you would have to import the file like so: ```js import wasm from "../../node_modules/svg2png-wasm/svg2png_wasm_bg.wasm"; ``` This update now allows you to import the file like so, assuming it's exposed and available in the package's `exports` field: ```js import wasm from "svg2png-wasm/svg2png_wasm_bg.wasm"; ``` This will look at the package's `exports` field in `package.json` and resolve the file using [`resolve.exports`](https://www.npmjs.com/package/resolve.exports). - [#​4232](https://togithub.com/cloudflare/workers-sdk/pull/4232) [`69b43030`](https://togithub.com/cloudflare/workers-sdk/commit/69b43030b99a21a3e4cad5285aa8253ebee8a392) Thanks [@​romeupalos](https://togithub.com/romeupalos)! - fix: use `zone_name` to determine a zone when the pattern is a custom hostname In Cloudflare for SaaS, custom hostnames of third party domain owners can be used in Cloudflare. Workers are allowed to intercept these requests based on the routes configuration. Before this change, the same logic used by `wrangler dev` was used in `wrangler deploy`, which caused wrangler to fail with: ✘ \[ERROR] Could not find zone for \[partner-saas-domain.com] - [#​4198](https://togithub.com/cloudflare/workers-sdk/pull/4198) [`b404ab70`](https://togithub.com/cloudflare/workers-sdk/commit/b404ab707b324685235b522ee66bd6e8351f62be) Thanks [@​penalosa](https://togithub.com/penalosa)! - When uploading additional modules with your worker, Wrangler will now report the (uncompressed) size of each individual module, as well as the aggregate size of your Worker ##### Patch Changes - [#​4215](https://togithub.com/cloudflare/workers-sdk/pull/4215) [`950bc401`](https://togithub.com/cloudflare/workers-sdk/commit/950bc4015fa408bfcd4fbf771cf1c3a062783d96) Thanks [@​RamIdeas](https://togithub.com/RamIdeas)! - fix various logging of shell commands to correctly quote args when needed - [#​4274](https://togithub.com/cloudflare/workers-sdk/pull/4274) [`be0c6283`](https://togithub.com/cloudflare/workers-sdk/commit/be0c62834af0692785785cec8a0d7bc9dcfaa61a) Thanks [@​jspspike](https://togithub.com/jspspike)! - chore: bump `miniflare` to [`3.20231025.0`](https://togithub.com/cloudflare/miniflare/releases/tag/v3.20231025.0) This change enables Node-like `console.log()`ing in local mode. Objects with lots of properties, and instances of internal classes like `Request`, `Headers`, `ReadableStream`, etc will now be logged with much more detail. - [#​4127](https://togithub.com/cloudflare/workers-sdk/pull/4127) [`3d55f965`](https://togithub.com/cloudflare/workers-sdk/commit/3d55f9656ddb28c7cbe1c03a9409be7af30d6f7d) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: store temporary files in `.wrangler` As Wrangler builds your code, it writes intermediate files to a temporary directory that gets cleaned up on exit. Previously, Wrangler used the OS's default temporary directory. On Windows, this is usually on the `C:` drive. If your source code was on a different drive, our bundling tool would generate invalid source maps, breaking breakpoint debugging. This change ensures intermediate files are always written to the same drive as sources. It also ensures unused build outputs are cleaned up when running `wrangler pages dev`. This change also means you no longer need to set `cwd` and `resolveSourceMapLocations` in `.vscode/launch.json` when creating an `attach` configuration for breakpoint debugging. Your `.vscode/launch.json` should now look something like... ```jsonc { "configurations": [ { "name": "Wrangler", "type": "node", "request": "attach", "port": 9229, // These can be omitted, but doing so causes silent errors in the runtime "attachExistingChildren": false, "autoAttachChildProcesses": false } ] } ``` - [#​4189](https://togithub.com/cloudflare/workers-sdk/pull/4189) [`05798038`](https://togithub.com/cloudflare/workers-sdk/commit/05798038c85a83afb2c0e8ea9533c31a6fbe3e91) Thanks [@​gabivlj](https://togithub.com/gabivlj)! - Move helper cli files of C3 into [@​cloudflare/cli](https://togithub.com/cloudflare/cli) and make Wrangler and C3 depend on it - [#​4235](https://togithub.com/cloudflare/workers-sdk/pull/4235) [`46cd2df5`](https://togithub.com/cloudflare/workers-sdk/commit/46cd2df5745ef90f4d9577504f203d2753ca56e9) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: ensure `console.log()`s during startup are displayed Previously, `console.log()` calls before the Workers runtime was ready to receive requests wouldn't be shown. This meant any logs in the global scope likely weren't visible. This change ensures startup logs are shown. In particular, this should [fix Remix's HMR](https://togithub.com/remix-run/remix/issues/7616), which relies on startup logs to know when the Worker is ready. ### [`v3.14.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3140) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.13.2...wrangler@3.14.0) ##### Minor Changes - [#​4204](https://togithub.com/cloudflare/workers-sdk/pull/4204) [`38fdbe9b`](https://togithub.com/cloudflare/workers-sdk/commit/38fdbe9b75af6a588fe4bc8387be45610149c2f3) Thanks [@​matthewdavidrodgers](https://togithub.com/matthewdavidrodgers)! - Support user limits for CPU time User limits provided via script metadata on upload Example configuration: [limits] cpu_ms = 20000 - [#​2162](https://togithub.com/cloudflare/workers-sdk/pull/2162) [`a1f212e6`](https://togithub.com/cloudflare/workers-sdk/commit/a1f212e6423fd251612b1b3c2ac9f254daa8fa4c) Thanks [@​WalshyDev](https://togithub.com/WalshyDev)! - add support for service bindings in `wrangler pages dev` by providing the new `--service`|`-s` flag which accepts an array of `BINDING_NAME=SCRIPT_NAME` where `BINDING_NAME` is the name of the binding and `SCRIPT_NAME` is the name of the worker (as defined in its `wrangler.toml`), such workers need to be running locally with with `wrangler dev`. For example if a user has a worker named `worker-a`, in order to locally bind to that they'll need to open two different terminals, in each navigate to the respective worker/pages application and then run respectively `wrangler dev` and `wrangler pages ./publicDir --service MY_SERVICE=worker-a` this will add the `MY_SERVICE` binding to pages' worker `env` object. Note: additionally after the `SCRIPT_NAME` the name of an environment can be specified, prefixed by an `@` (as in: `MY_SERVICE=SCRIPT_NAME@PRODUCTION`), this behavior is however experimental and not fully properly defined. ### [`v3.13.2`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3132) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.13.1...wrangler@3.13.2) ##### Patch Changes - [#​4206](https://togithub.com/cloudflare/workers-sdk/pull/4206) [`8e927170`](https://togithub.com/cloudflare/workers-sdk/commit/8e927170c4b6ce4310e563ce528c2ea20d3de9e7) Thanks [@​1000hz](https://togithub.com/1000hz)! - chore: bump `miniflare` to [`3.20231016.0`](https://togithub.com/cloudflare/miniflare/releases/tag/v3.20231016.0) - [#​4144](https://togithub.com/cloudflare/workers-sdk/pull/4144) [`54800f6f`](https://togithub.com/cloudflare/workers-sdk/commit/54800f6f2dc52b921e7dd1d9a57bb437e2094bb0) Thanks [@​a-robinson](https://togithub.com/a-robinson)! - Log a warning when using a Hyperdrive binding in local wrangler dev ### [`v3.13.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3131) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.13.0...wrangler@3.13.1) ##### Patch Changes - [#​4171](https://togithub.com/cloudflare/workers-sdk/pull/4171) [`88f15f61`](https://togithub.com/cloudflare/workers-sdk/commit/88f15f61cad2a69c07e26203cc84ddb2da42deb3) Thanks [@​penalosa](https://togithub.com/penalosa)! - patch: This release fixes some regressions related to running `wrangler dev` that were caused by internal refactoring of the dev server architecture ([#​3960](https://togithub.com/cloudflare/workers-sdk/pull/3960)). The change has been reverted, and will be added back in a future release. ### [`v3.13.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3130) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.12.0...wrangler@3.13.0) ##### Minor Changes - [#​4161](https://togithub.com/cloudflare/workers-sdk/pull/4161) [`403bc25c`](https://togithub.com/cloudflare/workers-sdk/commit/403bc25c4fa56a3ddf8a6af166d99919f565c497) Thanks [@​RamIdeas](https://togithub.com/RamIdeas)! - Fix wrangler generated types to match runtime exports - [#​3960](https://togithub.com/cloudflare/workers-sdk/pull/3960) [`c36b78b4`](https://togithub.com/cloudflare/workers-sdk/commit/c36b78b4109c05f47556972e66673f64ec0baa3b) Thanks [@​RamIdeas](https://togithub.com/RamIdeas)! - Refactoring the internals of wrangler dev servers (including `wrangler dev`, `wrangler dev --remote` and `unstable_dev()`). There are no changes required for developers to opt-in. Improvements include: - fewer 'address in use' errors upon reloads - upon config/source file changes, requests are buffered to guarantee the response is from the new version of the Worker ##### Patch Changes - [#​3590](https://togithub.com/cloudflare/workers-sdk/pull/3590) [`f4ad634a`](https://togithub.com/cloudflare/workers-sdk/commit/f4ad634af86c49ade427af23e3853c656e30250a) Thanks [@​penalosa](https://togithub.com/penalosa)! - fix: When a middleware is configured which doesn't support your Worker's script format, fail early with a helpful error message ### [`v3.12.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3120) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.11.0...wrangler@3.12.0) ##### Minor Changes - [#​4071](https://togithub.com/cloudflare/workers-sdk/pull/4071) [`f880a009`](https://togithub.com/cloudflare/workers-sdk/commit/f880a009ad7c7ec26a85c51f577164522a307217) Thanks [@​matthewdavidrodgers](https://togithub.com/matthewdavidrodgers)! - Support TailEvent messages in Tail sessions When tailing a tail worker, messages previously had a null event property. Following [https://github.com/cloudflare/workerd/pull/1248](https://togithub.com/cloudflare/workerd/pull/1248), these events have a valid event, specifying which scripts produced events that caused your tail worker to run. As part of rolling this out, we're filtering out tail events in the internal tail infrastructure, so we control when these new messages are forward to tail sessions, and can merge this freely. One idiosyncracy to note, however, is that tail workers always report an "OK" status, even if they run out of memory or throw. That is being tracked and worked on separately. - [#​2397](https://togithub.com/cloudflare/workers-sdk/pull/2397) [`93833f04`](https://togithub.com/cloudflare/workers-sdk/commit/93833f0418443232bb29daf46559c8e1db754dde) Thanks [@​a-robinson](https://togithub.com/a-robinson)! - feature: Support Queue consumer events in tail So that it's less confusing when tailing a worker that consumes events from a Queue. ##### Patch Changes - [#​2687](https://togithub.com/cloudflare/workers-sdk/pull/2687) [`3077016f`](https://togithub.com/cloudflare/workers-sdk/commit/3077016f6112754585c05b7952e456be44b9d8cd) Thanks [@​jrf0110](https://togithub.com/jrf0110)! - Fixes large Pages projects failing to complete direct upload due to expiring JWTs For projects which are slow to upload - either because of client bandwidth or large numbers of files and sizes - It's possible for the JWT to expire multiple times. Since our network request concurrency is set to 3, it's possible that each time the JWT expires we get 3 failed attempts. This can quickly exhaust our upload attempt count and cause the entire process to bail. This change makes it such that jwt refreshes do not count as a failed upload attempt. - [#​4069](https://togithub.com/cloudflare/workers-sdk/pull/4069) [`f4d28918`](https://togithub.com/cloudflare/workers-sdk/commit/f4d28918c566c72782db9dadae12b95a376d082c) Thanks [@​a-robinson](https://togithub.com/a-robinson)! - Default new Hyperdrive configs for PostgreSQL databases to port 5432 if the port is not specified ### [`v3.11.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3110) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.10.1...wrangler@3.11.0) ##### Minor Changes - [#​3726](https://togithub.com/cloudflare/workers-sdk/pull/3726) [`7d20bdbd`](https://togithub.com/cloudflare/workers-sdk/commit/7d20bdbd4ed7c5003b327a58af8d5c402df9fe2b) Thanks [@​petebacondarwin](https://togithub.com/petebacondarwin)! - feat: support partial bundling with configurable external modules Setting `find_additional_modules` to `true` in your configuration file will now instruct Wrangler to look for files in your `base_dir` that match your configured `rules`, and deploy them as unbundled, external modules with your Worker. `base_dir` defaults to the directory containing your `main` entrypoint. Wrangler can operate in two modes: the default bundling mode and `--no-bundle` mode. In bundling mode, dynamic imports (e.g. `await import("./large-dep.mjs")`) would be bundled into your entrypoint, making lazy loading less effective. Additionally, variable dynamic imports (e.g. ``await import(`./lang/${language}.mjs`)``) would always fail at runtime, as Wrangler would have no way of knowing which modules to upload. The `--no-bundle` mode sought to address these issues by disabling Wrangler's bundling entirely, and just deploying code as is. Unfortunately, this also disabled Wrangler's code transformations (e.g. TypeScript compilation, `--assets`, `--test-scheduled`, etc). With this change, we now additionally support *partial bundling*. Files are bundled into a single Worker entry-point file unless `find_additional_modules` is `true`, and the file matches one of the configured `rules`. See https://developers.cloudflare.com/workers/wrangler/bundling/ for more details and examples. - [#​4093](https://togithub.com/cloudflare/workers-sdk/pull/4093) [`c71d8a0f`](https://togithub.com/cloudflare/workers-sdk/commit/c71d8a0f73c0abbf76434d7aa7634af53ce7b29b) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - chore: bump `miniflare` to [`3.20231002.0`](https://togithub.com/cloudflare/miniflare/releases/tag/v3.20231002.0) ##### Patch Changes - [#​3726](https://togithub.com/cloudflare/workers-sdk/pull/3726) [`7d20bdbd`](https://togithub.com/cloudflare/workers-sdk/commit/7d20bdbd4ed7c5003b327a58af8d5c402df9fe2b) Thanks [@​petebacondarwin](https://togithub.com/petebacondarwin)! - fix: ensure that additional modules appear in the out-dir When using `find_additional_modules` (or `no_bundle`) we find files that will be uploaded to be deployed alongside the Worker. Previously, if an `outDir` was specified, only the Worker code was output to this directory. Now all additional modules are also output there too. - [#​4067](https://togithub.com/cloudflare/workers-sdk/pull/4067) [`31270711`](https://togithub.com/cloudflare/workers-sdk/commit/31270711fe3f48ff94138cf1626f44b8b052d698) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: generate valid source maps with `wrangler pages dev` on macOS On macOS, `wrangler pages dev` previously generated source maps with an incorrect number of `../`s in relative paths. This change ensures paths are always correct, improving support for breakpoint debugging. - [#​4084](https://togithub.com/cloudflare/workers-sdk/pull/4084) [`9a7559b6`](https://togithub.com/cloudflare/workers-sdk/commit/9a7559b67c1afe9c583b1255d5404385b4d7b9fc) Thanks [@​RamIdeas](https://togithub.com/RamIdeas)! - fix: respect the options.local value in unstable_dev (it was being ignored) - [#​4107](https://togithub.com/cloudflare/workers-sdk/pull/4107) [`807ab931`](https://togithub.com/cloudflare/workers-sdk/commit/807ab9316f1ce984f76302c9d9d5627c81617262) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - chore: bump `miniflare` to [`3.20231002.1`](https://togithub.com/cloudflare/miniflare/releases/tag/v3.20231002.1) - [#​3726](https://togithub.com/cloudflare/workers-sdk/pull/3726) [`7d20bdbd`](https://togithub.com/cloudflare/workers-sdk/commit/7d20bdbd4ed7c5003b327a58af8d5c402df9fe2b) Thanks [@​petebacondarwin](https://togithub.com/petebacondarwin)! - fix: allow `__STATIC_CONTENT_MANIFEST` module to be imported anywhere `__STATIC_CONTENT_MANIFEST` can now be imported in subdirectories when `--no-bundle` or `find_additional_modules` are enabled. - [#​3926](https://togithub.com/cloudflare/workers-sdk/pull/3926) [`f585f695`](https://togithub.com/cloudflare/workers-sdk/commit/f585f6954eb2ebb1d1e3ee4bee11f7757b25a925) Thanks [@​penalosa](https://togithub.com/penalosa)! - Log more detail about tokens after authentication errors - [#​3695](https://togithub.com/cloudflare/workers-sdk/pull/3695) [`1d0b7ad5`](https://togithub.com/cloudflare/workers-sdk/commit/1d0b7ad5512d0cd43c6e137f5bf5caa93c6319d5) Thanks [@​JacksonKearl](https://togithub.com/JacksonKearl)! - Fixed `pages dev` crashing and leaving port open when building a worker script fails - [#​4066](https://togithub.com/cloudflare/workers-sdk/pull/4066) [`c8b4a07f`](https://togithub.com/cloudflare/workers-sdk/commit/c8b4a07f2e799df44da70cb1eaeb2a7480e0af7a) Thanks [@​RamIdeas](https://togithub.com/RamIdeas)! - fix: we no longer infer pathnames from route patterns as the host During local development, inside your worker, the host of `request.url` is inferred from the `routes` in your config. Previously, route patterns like "\*/some/path/name" would infer the host as "some". We now handle this case and determine we cannot infer a host from such patterns. ### [`v3.10.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3101) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.10.0...wrangler@3.10.1) ##### Patch Changes - [#​4041](https://togithub.com/cloudflare/workers-sdk/pull/4041) [`6b1c327d`](https://togithub.com/cloudflare/workers-sdk/commit/6b1c327d00befb6d95a88f4451547457b1927dd4) Thanks [@​elithrar](https://togithub.com/elithrar)! - Fixed a bug in Vectorize that send preset configurations with the wrong key. This was patched on the server-side to work around this for users in the meantime. - [#​4054](https://togithub.com/cloudflare/workers-sdk/pull/4054) [`f8c52b93`](https://togithub.com/cloudflare/workers-sdk/commit/f8c52b938dd6a7ccf25fa54bd73e8f6206808ad4) Thanks [@​mrbbot](https://togithub.com/mrbbot)! - fix: allow `wrangler pages dev` sessions to be reloaded Previously, `wrangler pages dev` attempted to send messages on a closed IPC channel when sources changed, resulting in an `ERR_IPC_CHANNEL_CLOSED` error. This change ensures the channel stays open until the user exits `wrangler pages dev`. ### [`v3.10.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3100) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.9.1...wrangler@3.10.0) ##### Minor Changes - [#​4013](https://togithub.com/cloudflare/workers-sdk/pull/4013) [`3cd72862`](https://togithub.com/cloudflare/workers-sdk/commit/3cd72862b7c9f6d30468320866badd586cd242ce) Thanks [@​elithrar](https://togithub.com/elithrar)! - Adds wrangler support for Vectorize, Cloudflare's new vector database, with `wrangler vectorize`. Visit the developer documentation (https://developers.cloudflare.com/vectorize/) to learn more and create your first vector database with `wrangler vectorize create my-first-index`. - [#​3999](https://togithub.com/cloudflare/workers-sdk/pull/3999) [`ee6f3458`](https://togithub.com/cloudflare/workers-sdk/commit/ee6f345838d09af0de787c820a7fa2cdc76f58e7) Thanks [@​OilyLime](https://togithub.com/OilyLime)! - Adds support for Hyperdrive, via `wrangler hyperdrive`. ##### Patch Changes - [#​4034](https://togithub.com/cloudflare/workers-sdk/pull/4034) [`bde9d64a`](https://togithub.com/cloudflare/workers-sdk/commit/bde9d64a6b13d49063cc7fe25d37606b0810dd83) Thanks [@​ndisidore](https://togithub.com/ndisidore)! - Adds Vectorize support uploading batches of newline delimited json (ndjson) vectors from a source file. Load a dataset with `vectorize insert my-index --file vectors.ndjson` - [#​4028](https://togithub.com/cloudflare/workers-sdk/pull/4028) [`d5389731`](https://togithub.com/cloudflare/workers-sdk/commit/d538973179966f742edd48958bf311764f715bda) Thanks [@​JacobMGEvans](https://togithub.com/JacobMGEvans)! - fix: Bulk Secret Draft Worker Fixes the

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.

renovate[bot] commented 5 months ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 3.x releases. But if you manually upgrade to 3.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.