cloudflare/workers-sdk (wrangler)
### [`v3.52.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3520)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.51.2...wrangler@3.52.0)
##### Minor Changes
- [#5666](https://togithub.com/cloudflare/workers-sdk/pull/5666) [`81d9615`](https://togithub.com/cloudflare/workers-sdk/commit/81d961582da2db2b020305c63a9f1f1573ff873d) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - fix: Fix Pages config validation around Durable Objects
Today Pages cannot deploy Durable Objects itself. For this reason it is mandatory that when declaring Durable Objects bindings in the config file, the `script_name` is specified. We are currently not failing validation if
`script_name` is not specified but we should. These changes fix that.
##### Patch Changes
- [#5610](https://togithub.com/cloudflare/workers-sdk/pull/5610) [`24840f6`](https://togithub.com/cloudflare/workers-sdk/commit/24840f67b6495a664f5463697aa49fa9478435b9) Thanks [@SuperchupuDev](https://togithub.com/SuperchupuDev)! - Mark `ts-json-schema-generator` as a dev dependency
- [#5669](https://togithub.com/cloudflare/workers-sdk/pull/5669) [`a7e36d5`](https://togithub.com/cloudflare/workers-sdk/commit/a7e36d503f442a8225ffdedef30b569a8a396663) Thanks [@dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - fix: fix broken Durable Object local proxying (when no `cf` property is present)
A regression was introduced in wrangler 3.46.0 ([https://github.com/cloudflare/workers-sdk/pull/5215](https://togithub.com/cloudflare/workers-sdk/pull/5215))
which made it so that missing `Request#cf` properties are serialized as `"undefined"`, this in turn
throws a syntax parse error when such values are parsed via `JSON.parse` breaking the communication
with Durable Object local proxies. Fix such issue by serializing missing `Request#cf` properties as
`"{}"` instead.
- [#5616](https://togithub.com/cloudflare/workers-sdk/pull/5616) [`c6312b5`](https://togithub.com/cloudflare/workers-sdk/commit/c6312b5017279b31ce99c761e2063973f7d948bf) Thanks [@webbertakken](https://togithub.com/webbertakken)! - fix: broken link to durable object migrations docs
- [#5482](https://togithub.com/cloudflare/workers-sdk/pull/5482) [`1b7739e`](https://togithub.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb) Thanks [@DaniFoldi](https://togithub.com/DaniFoldi)! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred.
- Updated dependencies \[[`3a0d735`](https://togithub.com/cloudflare/workers-sdk/commit/3a0d7356bd8bc6fe614a3ef3f9c1278659555568), [`1b7739e`](https://togithub.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb)]:
- miniflare@3.20240419.0
- [@cloudflare/kv-asset-handler](https://togithub.com/cloudflare/kv-asset-handler)[@0](https://togithub.com/0).3.2
### [`v3.51.2`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3512)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.51.0...wrangler@3.51.2)
##### Patch Changes
- [#5652](https://togithub.com/cloudflare/workers-sdk/pull/5652) [`ccb9d3d`](https://togithub.com/cloudflare/workers-sdk/commit/ccb9d3d4efba73a720945df4e1212a010fe40739) Thanks [@petebacondarwin](https://togithub.com/petebacondarwin)! - chore: re-release due to broken build
### [`v3.51.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3510)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.50.0...wrangler@3.51.0)
##### Minor Changes
- [#5477](https://togithub.com/cloudflare/workers-sdk/pull/5477) [`9a46e03`](https://togithub.com/cloudflare/workers-sdk/commit/9a46e03f013cc6f1e2d38d47f9bf002626b6bd95) Thanks [@pmiguel](https://togithub.com/pmiguel)! - feature: Changed Queues client to use the new QueueId and ConsumerId-based endpoints.
- [#5172](https://togithub.com/cloudflare/workers-sdk/pull/5172) [`fbe1c9c`](https://togithub.com/cloudflare/workers-sdk/commit/fbe1c9c816f2b5774060d721ff830e70d9b7d29f) Thanks [@GregBrimble](https://togithub.com/GregBrimble)! - feat: Allow marking external modules (with `--external`) to avoid bundling them when building Pages Functions
It's useful for Pages Plugins which want to declare a peer dependency.
##### Patch Changes
- [#5585](https://togithub.com/cloudflare/workers-sdk/pull/5585) [`22f5841`](https://togithub.com/cloudflare/workers-sdk/commit/22f58414d5697730f0337d17c7602b7fa3bebb79) Thanks [@geelen](https://togithub.com/geelen)! - Updates `wrangler d1 export` to handle larger DBs more efficiently
- Updated dependencies \[[`c9f081a`](https://togithub.com/cloudflare/workers-sdk/commit/c9f081ab72142060a3cf2e9a7ef4546b8014b210), [`c9f081a`](https://togithub.com/cloudflare/workers-sdk/commit/c9f081ab72142060a3cf2e9a7ef4546b8014b210)]:
- miniflare@3.20240405.2
### [`v3.50.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3500)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.49.0...wrangler@3.50.0)
##### Minor Changes
- [#5587](https://togithub.com/cloudflare/workers-sdk/pull/5587) [`d95450f`](https://togithub.com/cloudflare/workers-sdk/commit/d95450f0b00fa32d4c827fc8ad25d8fc929a654d) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - fix: `pages functions build-env` should throw error if invalid Pages config file is found
- [#5572](https://togithub.com/cloudflare/workers-sdk/pull/5572) [`65aa21c`](https://togithub.com/cloudflare/workers-sdk/commit/65aa21cc2d53b99e4c6956a3fb69bd687a102266) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - fix: fix `pages function build-env` to exit with code rather than throw fatal error
Currently pages functions build-env throws a fatal error if a config file does not exit, or if it is invalid. This causes issues for the CI system. We should instead exit with a specific code, if any of those situations arises.
- [#5291](https://togithub.com/cloudflare/workers-sdk/pull/5291) [`ce00a44`](https://togithub.com/cloudflare/workers-sdk/commit/ce00a44c985859a5ffb5ee3dc392796e5d12ff1d) Thanks [@pmiguel](https://togithub.com/pmiguel)! - feature: Added bespoke OAuth scope for Queues management.
##### Patch Changes
- Updated dependencies \[[`08b4908`](https://togithub.com/cloudflare/workers-sdk/commit/08b490806093add445ff3d7b1969923cb4123d34)]:
- miniflare@3.20240405.1
### [`v3.49.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3490)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.48.0...wrangler@3.49.0)
##### Minor Changes
- [#5549](https://togithub.com/cloudflare/workers-sdk/pull/5549) [`113ac41`](https://togithub.com/cloudflare/workers-sdk/commit/113ac41cda3bd6304c0683f6f8e61dcedf21e685) Thanks [@penalosa](https://togithub.com/penalosa)! - feat: Support `wrangler pages secret put|delete|list|bulk`
- [#5550](https://togithub.com/cloudflare/workers-sdk/pull/5550) [`4f47f74`](https://togithub.com/cloudflare/workers-sdk/commit/4f47f7422786e537eaefd034153998f848bcd573) Thanks [@penalosa](https://togithub.com/penalosa)! - feat: Generate a JSON schema for the Wrangler package & use it in templates
- [#5561](https://togithub.com/cloudflare/workers-sdk/pull/5561) [`59591cd`](https://togithub.com/cloudflare/workers-sdk/commit/59591cd5ace98bbfefd2ec34eb77dfeafd8db97d) Thanks [@ocsfrank](https://togithub.com/ocsfrank)! - feat: update R2 CreateBucket action to include the storage class in the request body
##### Patch Changes
- [#5374](https://togithub.com/cloudflare/workers-sdk/pull/5374) [`7999dd2`](https://togithub.com/cloudflare/workers-sdk/commit/7999dd2bacf53be3780ba70492003d417ffcd5f0) Thanks [@maxwellpeterson](https://togithub.com/maxwellpeterson)! - fix: Improvements to `--init-from-dash`
Adds user-specified CPU limit to `wrangler.toml` if one exists. Excludes `usage_model` from `wrangler.toml` in all cases, since this field is deprecated and no longer used.
- [#5553](https://togithub.com/cloudflare/workers-sdk/pull/5553) [`dcd65dd`](https://togithub.com/cloudflare/workers-sdk/commit/dcd65dd3da19f619cd9c48d42433ac538a734816) Thanks [@rozenmd](https://togithub.com/rozenmd)! - fix: refactor d1's time-travel compatibility check
- [#5380](https://togithub.com/cloudflare/workers-sdk/pull/5380) [`57d5658`](https://togithub.com/cloudflare/workers-sdk/commit/57d5658bc5560f4ba38fd1b21a1988a4922feea2) Thanks [@GregBrimble](https://togithub.com/GregBrimble)! - fix: Respect `--no-bundle` when deploying a `_worker.js/` directory in Pages projects
- [#5536](https://togithub.com/cloudflare/workers-sdk/pull/5536) [`a7aa28a`](https://togithub.com/cloudflare/workers-sdk/commit/a7aa28ad57c07ea96aad1ddc547afb11db679878) Thanks [@Cherry](https://togithub.com/Cherry)! - fix: resolve a regression where `wrangler pages dev` would bind to port 8787 by default instead of 8788 since wrangler@3.38.0
- Updated dependencies \[[`9575a51`](https://togithub.com/cloudflare/workers-sdk/commit/9575a514cbc206fea6d08f627253ead209fd2a8d)]:
- miniflare@3.20240405.0
### [`v3.48.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3480)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.47.1...wrangler@3.48.0)
##### Minor Changes
- [#5429](https://togithub.com/cloudflare/workers-sdk/pull/5429) [`c5561b7`](https://togithub.com/cloudflare/workers-sdk/commit/c5561b7236adf2b97e09e4ae9139654e23d635fe) Thanks [@ocsfrank](https://togithub.com/ocsfrank)! - R2 will introduce storage classes soon. Wrangler allows you to interact with storage classes once it is
enabled on your account.
Wrangler supports an `-s` flag that allows the user to specify a storage class when creating a bucket,
changing the default storage class of a bucket, and uploading an object.
```bash
wrangler r2 bucket create ia-bucket -s InfrequentAccess
wrangler r2 bucket update storage-class my-bucket -s InfrequentAccess
wrangler r2 object put bucket/ia-object -s InfrequentAccess --file foo
```
##### Patch Changes
- [#5531](https://togithub.com/cloudflare/workers-sdk/pull/5531) [`887150a`](https://togithub.com/cloudflare/workers-sdk/commit/887150ae64d78800e1f44ea25d69f06e76e9f127) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Write `wrangler pages functions build-env` to file rather than stdout
- [#5526](https://togithub.com/cloudflare/workers-sdk/pull/5526) [`bafbd67`](https://togithub.com/cloudflare/workers-sdk/commit/bafbd6719bbec1e323ee161a0106bf98c60255a2) Thanks [@rozenmd](https://togithub.com/rozenmd)! - fix: teach `wrangler d1 create` about Australia
### [`v3.47.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3471)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.47.0...wrangler@3.47.1)
##### Patch Changes
- Updated dependencies \[[`9f15ce1`](https://togithub.com/cloudflare/workers-sdk/commit/9f15ce1716c50dd44adf7a3df6a4101322800005)]:
- miniflare@3.20240404.0
### [`v3.47.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3470)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.46.0...wrangler@3.47.0)
##### Minor Changes
- [#5506](https://togithub.com/cloudflare/workers-sdk/pull/5506) [`7734f80`](https://togithub.com/cloudflare/workers-sdk/commit/7734f806c1ac2a38faabc87df4aa8344b585c430) Thanks [@penalosa](https://togithub.com/penalosa)! - feat: Add interactive prompt to `wrangler pages download config` if an existing `wrangler.toml` file exists
### [`v3.46.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3460)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.45.0...wrangler@3.46.0)
##### Minor Changes
- [#5282](https://togithub.com/cloudflare/workers-sdk/pull/5282) [`b7ddde1`](https://togithub.com/cloudflare/workers-sdk/commit/b7ddde1a5165223dcbe8781e928039123778b8a1) Thanks [@maxwellpeterson](https://togithub.com/maxwellpeterson)! - feature: Add source map support for Workers
Adds the `source_maps` boolean config option. When enabled, source maps included in the build output are uploaded alongside the built code modules. Uploaded source maps can then be used to remap stack traces emitted by the Workers runtime.
- [#5215](https://togithub.com/cloudflare/workers-sdk/pull/5215) [`cd03d1d`](https://togithub.com/cloudflare/workers-sdk/commit/cd03d1d3fa6e733faa42e5abb92f37637503b327) Thanks [@GregBrimble](https://togithub.com/GregBrimble)! - feature: support named entrypoints in service bindings
This change allows service bindings to bind to a named export of another Worker. As an example, consider the following Worker named `bound`:
```ts
import { WorkerEntrypoint } from "cloudflare:workers";
export class EntrypointA extends WorkerEntrypoint {
fetch(request) {
return new Response("Hello from entrypoint A!");
}
}
export const entrypointB: ExportedHandler = {
fetch(request, env, ctx) {
return new Response("Hello from entrypoint B!");
}
};
export default {
fetch(request, env, ctx) {
return new Response("Hello from the default entrypoint!");
}
};
```
Up until now, you could only bind to the `default` entrypoint. With this change, you can bind to `EntrypointA` or `entrypointB` too using the new `entrypoint` option:
```toml
[[services]]
binding = "SERVICE"
service = "bound"
entrypoint = "EntrypointA"
```
To bind to named entrypoints with `wrangler pages dev`, use the `#` character:
```shell
$ wrangler pages dev --service=SERVICE=bound#EntrypointA
```
##### Patch Changes
- [#5215](https://togithub.com/cloudflare/workers-sdk/pull/5215) [`cd03d1d`](https://togithub.com/cloudflare/workers-sdk/commit/cd03d1d3fa6e733faa42e5abb92f37637503b327) Thanks [@GregBrimble](https://togithub.com/GregBrimble)! - fix: ensure request `url` and `cf` properties preserved across service bindings
Previously, Wrangler could rewrite `url` and `cf` properties when sending requests via service bindings or Durable Object stubs. To match production behaviour, this change ensures these properties are preserved.
- Updated dependencies \[[`cd03d1d`](https://togithub.com/cloudflare/workers-sdk/commit/cd03d1d3fa6e733faa42e5abb92f37637503b327), [`6c3be5b`](https://togithub.com/cloudflare/workers-sdk/commit/6c3be5b299b22cad050760a6015106839b5cc74e), [`cd03d1d`](https://togithub.com/cloudflare/workers-sdk/commit/cd03d1d3fa6e733faa42e5abb92f37637503b327), [`cd03d1d`](https://togithub.com/cloudflare/workers-sdk/commit/cd03d1d3fa6e733faa42e5abb92f37637503b327)]:
- miniflare@3.20240403.0
### [`v3.45.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3450)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.44.0...wrangler@3.45.0)
##### Minor Changes
- [#5377](https://togithub.com/cloudflare/workers-sdk/pull/5377) [`5d68744`](https://togithub.com/cloudflare/workers-sdk/commit/5d6874499049641c1d3d3f47161e7ebf3bc57650) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - feat: Add `wrangler.toml` support in `wrangler pages deploy`
As we are adding `wrangler.toml` support for Pages, we want to ensure that `wrangler pages deploy` works with a configuration file.
- [#5471](https://togithub.com/cloudflare/workers-sdk/pull/5471) [`489b9c5`](https://togithub.com/cloudflare/workers-sdk/commit/489b9c51550d583d50e262f5905393501c2d6419) Thanks [@zebp](https://togithub.com/zebp)! - feature: Add version-id filter for Worker tailing to filter logs by scriptVersion in a gradual deployment
This allows users to only get logs in a gradual deployment if you are troubleshooting issues
specific to one deployment. Example:
`npx wrangler tail --version-id 72d3f357-4e52-47c5-8805-90be978c403f`
##### Patch Changes
- [#5462](https://togithub.com/cloudflare/workers-sdk/pull/5462) [`68faf67`](https://togithub.com/cloudflare/workers-sdk/commit/68faf67f0499927d7bded1342ccc9c8c9e76037a) Thanks [@OilyLime](https://togithub.com/OilyLime)! - revert: Removes support for private networking Hyperdrive configs, pending more work to support the feature. Non-breaking change since the feature wasn't yet supported.
- [#5494](https://togithub.com/cloudflare/workers-sdk/pull/5494) [`a232ccf`](https://togithub.com/cloudflare/workers-sdk/commit/a232ccffe6a2994df5181b6252965a7ba4a0c17a) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Swallow parsing errors when a pages config file is required.
- [#5484](https://togithub.com/cloudflare/workers-sdk/pull/5484) [`e7f8dc3`](https://togithub.com/cloudflare/workers-sdk/commit/e7f8dc32465921e0a9a38e8e3deeaf17c04c010a) Thanks [@ichernetsky-cf](https://togithub.com/ichernetsky-cf)! - feature: support Cloudchamber deployment labels
- [#5434](https://togithub.com/cloudflare/workers-sdk/pull/5434) [`bf9dca8`](https://togithub.com/cloudflare/workers-sdk/commit/bf9dca85a16c4133d2d200a9e2fc52dcf8917550) Thanks [@OilyLime](https://togithub.com/OilyLime)! - bugfix: Fix passing Hyperdrive caching options to backend
- [#5403](https://togithub.com/cloudflare/workers-sdk/pull/5403) [`5d6d521`](https://togithub.com/cloudflare/workers-sdk/commit/5d6d5218ba0686279e6b67d86592ece16949bf25) Thanks [@oliy](https://togithub.com/oliy)! - fix: wrangler dev --local support for ratelimits
- Updated dependencies \[[`940ad89`](https://togithub.com/cloudflare/workers-sdk/commit/940ad89713fa086f23d394570c328716bfb1bd59)]:
- miniflare@3.20240329.1
### [`v3.44.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3440)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.43.0...wrangler@3.44.0)
##### Minor Changes
- [#5461](https://togithub.com/cloudflare/workers-sdk/pull/5461) [`f69e562`](https://togithub.com/cloudflare/workers-sdk/commit/f69e5629f8155186e7e890aa38509bb3fbfa704f) Thanks [@mattdeboard](https://togithub.com/mattdeboard)! - feature: Add command for fetching R2 Event Notification configurations for a given bucket
This allows users to see the entire event notification configuration -- i.e. every rule for every configured queue -- for a single bucket with a single request.
This change also improves messaging of console output when creating a new bucket notification.
##### Patch Changes
- [#5480](https://togithub.com/cloudflare/workers-sdk/pull/5480) [`0cce21f`](https://togithub.com/cloudflare/workers-sdk/commit/0cce21ff5b27cc4c227e102eb470b0e0cae455bb) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Ensure url & node:url export URL (aliased to globalThis.URL) in node_compat mode
- [#5472](https://togithub.com/cloudflare/workers-sdk/pull/5472) [`02a1091`](https://togithub.com/cloudflare/workers-sdk/commit/02a109172e60446a8c8e79a2804fdd387c4525a5) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Expose more info from `wrangler pages functions build-env`
### [`v3.43.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3430)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.42.0...wrangler@3.43.0)
##### Minor Changes
- [#5466](https://togithub.com/cloudflare/workers-sdk/pull/5466) [`ef9fbba`](https://togithub.com/cloudflare/workers-sdk/commit/ef9fbba36444fac665b95bedb2acd1fda494871b) Thanks [@celso](https://togithub.com/celso)! - feature: add Workers AI finetune commands
##### Patch Changes
- [#5449](https://togithub.com/cloudflare/workers-sdk/pull/5449) [`91a2150`](https://togithub.com/cloudflare/workers-sdk/commit/91a2150b9e565d1d6519f635e19f36fc2dec0886) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Improve messaging for invalid Pages `wrangler.toml` files
### [`v3.42.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3420)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.41.0...wrangler@3.42.0)
##### Minor Changes
- [#5371](https://togithub.com/cloudflare/workers-sdk/pull/5371) [`77152f3`](https://togithub.com/cloudflare/workers-sdk/commit/77152f355340d3aac492164fe912a7c5d7a3daeb) Thanks [@G4brym](https://togithub.com/G4brym)! - feature: remove requirement for `@cloudflare/ai` package to use Workers AI
Previously, to get the correct Workers AI API, you needed to wrap your `env.AI` binding with `new Ai()` from `@cloudflare/ai`. This change moves the contents of `@cloudflare/ai` into the Workers runtime itself, meaning `env.AI` is now an instance of `Ai`, without the need for wrapping.
##### Patch Changes
- Updated dependencies \[[`d994066`](https://togithub.com/cloudflare/workers-sdk/commit/d994066f255f6851759a055eac3b52a4aa4b83c3)]:
- miniflare@3.20240329.0
### [`v3.41.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3410)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.40.0...wrangler@3.41.0)
##### Minor Changes
- [#5425](https://togithub.com/cloudflare/workers-sdk/pull/5425) [`b7a6d9d`](https://togithub.com/cloudflare/workers-sdk/commit/b7a6d9d422dbe1f09f35b5105a9a58dd425604a7) Thanks [@rozenmd](https://togithub.com/rozenmd)! - feat: implement `wrangler d1 export`
### [`v3.40.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3400)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.39.0...wrangler@3.40.0)
##### Minor Changes
- [#5426](https://togithub.com/cloudflare/workers-sdk/pull/5426) [`9343714`](https://togithub.com/cloudflare/workers-sdk/commit/9343714155d5fa71c7415457dd35ab343d047d0f) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - feature: added a new `wrangler triggers deploy` command
This command currently requires the `--experimental-versions` flag.
This command extracts the trigger deployment logic from `wrangler deploy` and allows users to update their currently deployed Worker's triggers without doing another deployment. This is primarily useful for users of `wrangler versions upload` and `wrangler versions deploy` who can then run `wrangler triggers deploy` to apply trigger changes to their currently deployed Worker Versions.
The command can also be used even if not using the `wrangler versions ...` commands. And, in fact, users are already using it implicitly when running `wrangler deploy`.
- [#4932](https://togithub.com/cloudflare/workers-sdk/pull/4932) [`dc0c1dc`](https://togithub.com/cloudflare/workers-sdk/commit/dc0c1dc527c3ed2f79196f3b0ef44b337833a07a) Thanks [@xortive](https://togithub.com/xortive)! - feature: Add support for private networking in Hyperdrive configs
- [#5369](https://togithub.com/cloudflare/workers-sdk/pull/5369) [`7115568`](https://togithub.com/cloudflare/workers-sdk/commit/71155680d3675acd6f522e8b312aa63846a076a4) Thanks [@mattdeboard](https://togithub.com/mattdeboard)! - fix: Use queue name, not ID, for `r2 bucket event-notification` subcommands
Since the original command was not yet operational, this update does not constitute a breaking change.
Instead of providing the queue ID as the parameter to `--queue`, users must provide the queue *name*. Under the hood, we will query the Queues API for the queue ID given the queue name.
- [#5413](https://togithub.com/cloudflare/workers-sdk/pull/5413) [`976adec`](https://togithub.com/cloudflare/workers-sdk/commit/976adec23e3d993b190faf65f4f06b0508c5a22d) Thanks [@pmiguel](https://togithub.com/pmiguel)! - feature: Added Queue delivery controls support in wrangler.toml
- [#5412](https://togithub.com/cloudflare/workers-sdk/pull/5412) [`3e5a932`](https://togithub.com/cloudflare/workers-sdk/commit/3e5a932eca2e3e26d135e005967ca36801f27d97) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - feature: adds the `--json` option to `wrangler deployments list --experimental-versions`, `wrangler deployments status --experimental-versions`, `wrangler versions list --experimental-versions` and `wrangler versions view --experimental-versions` which will format the output as clean JSON. The ` --experimental-versions ` flag is still required for these commands.
- [#5258](https://togithub.com/cloudflare/workers-sdk/pull/5258) [`fbdca7d`](https://togithub.com/cloudflare/workers-sdk/commit/fbdca7d93156f9db2a1513573e45f10fac7e57d1) Thanks [@OilyLime](https://togithub.com/OilyLime)! - feature: URL decode components of the Hyperdrive config connection string
- [#5416](https://togithub.com/cloudflare/workers-sdk/pull/5416) [`47b325a`](https://togithub.com/cloudflare/workers-sdk/commit/47b325af0df87bcf20d922ff385ae9cd21726863) Thanks [@mattdeboard](https://togithub.com/mattdeboard)! - fix: minor improvements to R2 notification subcommand
1. `r2 bucket event-notification ` becomes `r2 bucket notification `
2. Parameters to `--event-type` use `-` instead of `_` (e.g. `object_create` -> `object-create`)
Since the original command was not yet operational, this update does not constitute a breaking change.
##### Patch Changes
- [#5419](https://togithub.com/cloudflare/workers-sdk/pull/5419) [`daac6a2`](https://togithub.com/cloudflare/workers-sdk/commit/daac6a2282c362a79990794dc00baca56ccc3e6e) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - chore: add helpful logging to --experimental-versions commands
- [#5400](https://togithub.com/cloudflare/workers-sdk/pull/5400) [`c90dd6b`](https://togithub.com/cloudflare/workers-sdk/commit/c90dd6b8a86238003ac953bd97566f92a206817d) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - chore: log of impending change of "Deployment ID" to "Version ID" in `wrangler deploy`, `wrangler deployments list`, `wrangler deployments view` and `wrangler rollback`. This is a warning of a future change for anyone depending on the output text format, for example by grepping the output in automated flows.
- [#5422](https://togithub.com/cloudflare/workers-sdk/pull/5422) [`b341614`](https://togithub.com/cloudflare/workers-sdk/commit/b3416145f3fc220aa833e24cbaa1c8612062e2de) Thanks [@geelen](https://togithub.com/geelen)! - fix: remove d1BetaWarning and all usages
This PR removes the warning that D1 is in beta for all D1 commands.
- Updated dependencies \[[`fbdca7d`](https://togithub.com/cloudflare/workers-sdk/commit/fbdca7d93156f9db2a1513573e45f10fac7e57d1)]:
- miniflare@3.20240320.1
### [`v3.39.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3390)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.38.0...wrangler@3.39.0)
##### Minor Changes
- [#5373](https://togithub.com/cloudflare/workers-sdk/pull/5373) [`5bd8db8`](https://togithub.com/cloudflare/workers-sdk/commit/5bd8db82a64f2c4ffab1b059b240ba6e6eaafde1) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - feature: Implement versioned rollbacks via `wrangler rollback [version-id] --experimental-versions`.
Please note, the `experimental-versions` flag is required to use the new behaviour. The original `wrangler rollback` command is unchanged if run without this flag.
##### Patch Changes
- [#5366](https://togithub.com/cloudflare/workers-sdk/pull/5366) [`e11e169`](https://togithub.com/cloudflare/workers-sdk/commit/e11e1691a0748c5d6520dc6c2d3d796886ea931f) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - fix: save non-versioned script-settings (logpush, tail_consumers) on `wrangler versions deploy`. This command still requires `--experimental-versions`.
- [#5405](https://togithub.com/cloudflare/workers-sdk/pull/5405) [`7c701bf`](https://togithub.com/cloudflare/workers-sdk/commit/7c701bf75731646860be10f2515d9944c7e32361) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - chore: add `wrangler deployments view [deployment-id] --experimental-versions` command
This command will display an error message which points the user to run either `wrangler deployments status --experimental-versions` or `wrangler versions view --experimental-versions` instead.
### [`v3.38.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3380)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.37.0...wrangler@3.38.0)
##### Minor Changes
- [#5310](https://togithub.com/cloudflare/workers-sdk/pull/5310) [`528c011`](https://togithub.com/cloudflare/workers-sdk/commit/528c011617243d1a290950e76bb88d0986a20f6a) Thanks [@penalosa](https://togithub.com/penalosa)! - feat: Watch the entire module root for changes in `--no-bundle` mode, rather than just the entrypoint file.
- [#5327](https://togithub.com/cloudflare/workers-sdk/pull/5327) [`7d160c7`](https://togithub.com/cloudflare/workers-sdk/commit/7d160c7fcaa8097aa3bd8b80b866ec80233be1e9) Thanks [@penalosa](https://togithub.com/penalosa)! - feat: Add `wrangler pages download config`
- [#5284](https://togithub.com/cloudflare/workers-sdk/pull/5284) [`f5e2367`](https://togithub.com/cloudflare/workers-sdk/commit/f5e2367288e7f57365ef8a1373bbc404bb50a662) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - feat: Add `wrangler.toml` support in `wrangler pages dev`
As we are adding `wrangler.toml` support for Pages, we want to ensure that `wrangler pages dev` works with a configuration file.
- [#5353](https://togithub.com/cloudflare/workers-sdk/pull/5353) [`3be826f`](https://togithub.com/cloudflare/workers-sdk/commit/3be826f8411ef8d517d572f25a6be38cb8c12cc1) Thanks [@penalosa](https://togithub.com/penalosa)! - feat: Updates `wrangler pages functions build` to support using configuration from `wrangler.toml` in the generated output.
- [#5102](https://togithub.com/cloudflare/workers-sdk/pull/5102) [`ba52208`](https://togithub.com/cloudflare/workers-sdk/commit/ba52208147307608a1233157423e5887203e4547) Thanks [@pmiguel](https://togithub.com/pmiguel)! - feature: add support for queue delivery controls on `wrangler queues create`
##### Patch Changes
- [#5327](https://togithub.com/cloudflare/workers-sdk/pull/5327) [`7d160c7`](https://togithub.com/cloudflare/workers-sdk/commit/7d160c7fcaa8097aa3bd8b80b866ec80233be1e9) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Use specific error code to signal a wrangler.toml file not being found in build-env
- [#5310](https://togithub.com/cloudflare/workers-sdk/pull/5310) [`528c011`](https://togithub.com/cloudflare/workers-sdk/commit/528c011617243d1a290950e76bb88d0986a20f6a) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Reload Python workers when the `requirements.txt` file changes
### [`v3.37.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3370)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.36.0...wrangler@3.37.0)
##### Minor Changes
- [#5294](https://togithub.com/cloudflare/workers-sdk/pull/5294) [`bdc121d`](https://togithub.com/cloudflare/workers-sdk/commit/bdc121de0a05aaa4716269e2a96b3c4ae3385d8e) Thanks [@mattdeboard](https://togithub.com/mattdeboard)! - feature: Add `event-notification` commands in support of event notifications for Cloudflare R2.
Included are commands for creating and deleting event notification configurations for individual buckets.
- [#5231](https://togithub.com/cloudflare/workers-sdk/pull/5231) [`e88ad44`](https://togithub.com/cloudflare/workers-sdk/commit/e88ad444f2dc54bbf4af4ac8d054ab6cd1af6898) Thanks [@w-kuhn](https://togithub.com/w-kuhn)! - feature: Add support for configuring HTTP Pull consumers for Queues
HTTP Pull consumers can be used to pull messages from queues via https request.
##### Patch Changes
- [#5317](https://togithub.com/cloudflare/workers-sdk/pull/5317) [`9fd7eba`](https://togithub.com/cloudflare/workers-sdk/commit/9fd7eba3f2b526530b6934a613174541ba321eca) Thanks [@GregBrimble](https://togithub.com/GregBrimble)! - chore: Deprecate `-- `, `--proxy` and `--script-path` options from `wrangler pages dev`.
Build your application to a directory and run the `wrangler pages dev ` instead. This results in a more faithful emulation of production behavior.
- Updated dependencies \[[`248a318`](https://togithub.com/cloudflare/workers-sdk/commit/248a318acac293615327affe35b83018a48dddc9)]:
- miniflare@3.20240320.0
### [`v3.36.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3360)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.35.0...wrangler@3.36.0)
##### Minor Changes
- [#5234](https://togithub.com/cloudflare/workers-sdk/pull/5234) [`e739b7f`](https://togithub.com/cloudflare/workers-sdk/commit/e739b7fecfb6f3f99a50091be4b7bcd44fdbaa71) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - feat: Implement environment inheritance for Pages configuration
For Pages, Wrangler will not require both of the supported named environments ("preview" | "production") to be explicitly defined in the config file. If either `[env.production]` or `[env.preview]` is left unspecified, Wrangler will use the top-level environment when targeting that named Pages environment.
##### Patch Changes
- [#5306](https://togithub.com/cloudflare/workers-sdk/pull/5306) [`c60fed0`](https://togithub.com/cloudflare/workers-sdk/commit/c60fed09f3ba3260f182f9d2e6c7c6d0bb123eac) Thanks [@taylorlee](https://togithub.com/taylorlee)! - fix: Remove triggered_by annotation from experimental `versions deploy` command which is now set by the API and cannot be set by the client.
- [#5321](https://togithub.com/cloudflare/workers-sdk/pull/5321) [`ac93411`](https://togithub.com/cloudflare/workers-sdk/commit/ac93411fdb124a784736db704d40592cde227535) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - fix: rename `--experimental-gradual-rollouts` to `--experimental-versions` flag
The `--experimental-gradual-rollouts` flag has been made an alias and will still work.
And additional shorthand alias `--x-versions` has also been added and will work too.
- [#5324](https://togithub.com/cloudflare/workers-sdk/pull/5324) [`bfc4282`](https://togithub.com/cloudflare/workers-sdk/commit/bfc4282de58066d5a9ab07d3e8419ed12b927a96) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Ignore OPTIONS requests in Wrangler's oauth server
- [#5099](https://togithub.com/cloudflare/workers-sdk/pull/5099) [`93150aa`](https://togithub.com/cloudflare/workers-sdk/commit/93150aa0ee51dc3db0c15b6a7126fca11bc2ba0f) Thanks [@KaiSpencer](https://togithub.com/KaiSpencer)! - feat: expose `--show-interactive-dev-session` flag
This flag controls the interactive mode of the dev session, a feature that already exists internally but was not exposed to the user.
This is useful for CI/CD environments where the interactive mode is not desired, or running in tools like `turbo` and `nx`.
### [`v3.35.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3350)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.34.2...wrangler@3.35.0)
##### Minor Changes
- [#5166](https://togithub.com/cloudflare/workers-sdk/pull/5166) [`133a190`](https://togithub.com/cloudflare/workers-sdk/commit/133a1907087741a4ea3cda7f53ce93919168e8f8) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - feat: Implement config file validation for Pages projects
Wrangler proper has a mechanism in place through which it validates a wrangler.toml file for Workers projects. As part of adding wrangler toml support for Pages, we need to put a similar mechanism in place, to validate a configuration file against Pages specific requirements.
- [#5279](https://togithub.com/cloudflare/workers-sdk/pull/5279) [`0a86050`](https://togithub.com/cloudflare/workers-sdk/commit/0a860507e49329d0e140de47830d670397e08c13) Thanks [@penalosa](https://togithub.com/penalosa)! - feat: Support the hidden command `wrangler pages functions build-env`
- [#5093](https://togithub.com/cloudflare/workers-sdk/pull/5093) [`a676f55`](https://togithub.com/cloudflare/workers-sdk/commit/a676f55a457a8b34b1c80f666f615eb258ad58c4) Thanks [@benycodes](https://togithub.com/benycodes)! - feature: add --dispatch-namespace to wrangler deploy to support uploading Workers directly to a Workers for Platforms dispatch namespace.
##### Patch Changes
- [#5275](https://togithub.com/cloudflare/workers-sdk/pull/5275) [`e1f2576`](https://togithub.com/cloudflare/workers-sdk/commit/e1f2576e1511a53786cebcde12d8c2cf4b3ce566) Thanks [@petebacondarwin](https://togithub.com/petebacondarwin)! - fix: ensure tail exits when the WebSocket disconnects
Previously when the tail WebSocket disconnected, e.g. because of an Internet failure,
the `wrangler tail` command would just hang and neither exit nor any longer receive tail messages.
Now the process exits with an exit code of 1, and outputs an error message.
The error message is formatted appropriately, if the tail format is set to `json`.
Fixes [#3927](https://togithub.com/cloudflare/workers-sdk/issues/3927)
- [#5069](https://togithub.com/cloudflare/workers-sdk/pull/5069) [`8f79981`](https://togithub.com/cloudflare/workers-sdk/commit/8f799812a3de1c93fb4dcb7a2a89e60c2c0173cd) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - chore: deprecate `wrangler version` command
`wrangler version` is an undocumented alias for `wrangler --version`. It is being deprecated in favour of the more conventional flag syntax to avoid confusion with a new (upcoming) `wrangler versions` command.
- Updated dependencies \[[`1720f0a`](https://togithub.com/cloudflare/workers-sdk/commit/1720f0a12a6376093b3c5799d74f47c522ae8571)]:
- miniflare@3.20240314.0
### [`v3.34.2`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3342)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.34.1...wrangler@3.34.2)
##### Patch Changes
- [#5238](https://togithub.com/cloudflare/workers-sdk/pull/5238) [`a0768bc`](https://togithub.com/cloudflare/workers-sdk/commit/a0768bcc9d76be8a88fe3e1aa45f3b3805da3df6) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - fix: `versions upload` annotations (`--message` and/or `--tag`) are now applied correctly to the uploaded Worker Version
### [`v3.34.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3341)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.34.0...wrangler@3.34.1)
##### Patch Changes
- Updated dependencies \[[`2e50d51`](https://togithub.com/cloudflare/workers-sdk/commit/2e50d51632dfe905bd32de8176231bb256c88dab)]:
- miniflare@3.20240304.2
### [`v3.34.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3340)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.33.0...wrangler@3.34.0)
##### Minor Changes
- [#5224](https://togithub.com/cloudflare/workers-sdk/pull/5224) [`03484c2`](https://togithub.com/cloudflare/workers-sdk/commit/03484c2d64f42a2820feeec9076dc3f210baf4f9) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - feature: Implement `wrangler deployments list` and `wrangler deployments status` behind `--experimental-gradual-rollouts` flag.
- [#5115](https://togithub.com/cloudflare/workers-sdk/pull/5115) [`29e8151`](https://togithub.com/cloudflare/workers-sdk/commit/29e8151bc2235bd13074584df5f90187955123d2) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - feature: Implement `wrangler versions deploy` command.
For now, invocations should use the `--experimental-gradual-rollouts` flag.
Without args, a user will be guided through prompts. If args are specified, they are used as the default values for the prompts. If the `--yes` flag is specified, the defaults are automatically accepted for a non-interactive flow.
- [#5208](https://togithub.com/cloudflare/workers-sdk/pull/5208) [`4730b6c`](https://togithub.com/cloudflare/workers-sdk/commit/4730b6c087080d79838d3fd86480d8aff693834a) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - feature: Implement `wrangler versions list` and `wrangler versions view` commands behind the `--experimental-gradual-rollouts` flag.
- [#5064](https://togithub.com/cloudflare/workers-sdk/pull/5064) [`bd935cf`](https://togithub.com/cloudflare/workers-sdk/commit/bd935cfdf1bebfff53b1817d475b1d36eccec9c0) Thanks [@OilyLime](https://togithub.com/OilyLime)! - feature: Improve create and update logic for hyperdrive to include caching settings
### [`v3.33.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3330)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.32.0...wrangler@3.33.0)
##### Minor Changes
- [#4930](https://togithub.com/cloudflare/workers-sdk/pull/4930) [`2680462`](https://togithub.com/cloudflare/workers-sdk/commit/268046269394e27654550ad034d286aa0e6aaf4b) Thanks [@rozenmd](https://togithub.com/rozenmd)! - refactor: default `wrangler d1 execute` and `wrangler d1 migrations` commands to local mode first, to match `wrangler dev`
This PR defaults `wrangler d1 execute` and `wrangler d1 migrations` commands to use the local development environment provided by wrangler to match the default behaviour in `wrangler dev`.
BREAKING CHANGE (for a beta feature): `wrangler d1 execute` and `wrangler d1 migrations` commands now default `--local` to `true`. When running `wrangler d1 execute` against a remote D1 database, you will need to provide the `--remote` flag.
##### Patch Changes
- [#5184](https://togithub.com/cloudflare/workers-sdk/pull/5184) [`046930e`](https://togithub.com/cloudflare/workers-sdk/commit/046930eb898db6d45a6b26751dede07793435d28) Thanks [@nora-soderlund](https://togithub.com/nora-soderlund)! - fix: change d1 migrations create to use the highest migration number rather than the first non-existing migration number to allow for gaps in the migration files.
- Updated dependencies \[[`1235d48`](https://togithub.com/cloudflare/workers-sdk/commit/1235d48fed9f4e348011fd62fce6458006947501), [`27fb22b`](https://togithub.com/cloudflare/workers-sdk/commit/27fb22b7c6b224aecc852915d9fee600d9d86efc)]:
- miniflare@3.20240304.1
### [`v3.32.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3320)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.31.0...wrangler@3.32.0)
##### Minor Changes
- [#5148](https://togithub.com/cloudflare/workers-sdk/pull/5148) [`11951f3`](https://togithub.com/cloudflare/workers-sdk/commit/11951f344ccac340be5d059bc4dd28ef674fb36f) Thanks [@dom96](https://togithub.com/dom96)! - chore: bump `workerd` to [`1.20240304.0`](https://togithub.com/cloudflare/workerd/releases/tag/v1.20240304.0)
- [#5148](https://togithub.com/cloudflare/workers-sdk/pull/5148) [`11951f3`](https://togithub.com/cloudflare/workers-sdk/commit/11951f344ccac340be5d059bc4dd28ef674fb36f) Thanks [@dom96](https://togithub.com/dom96)! - fix: use python_workers compat flag for Python
##### Patch Changes
- [#5089](https://togithub.com/cloudflare/workers-sdk/pull/5089) [`5b85dc9`](https://togithub.com/cloudflare/workers-sdk/commit/5b85dc949b1f7c8d5e8d083b37dd84d38c4ea978) Thanks [@DaniFoldi](https://togithub.com/DaniFoldi)! - fix: include all currently existing bindings in `wrangler types`
Add support for Email Send, Vectorize, Hyperdrive, mTLS, Browser Rendering and Workers AI bindings in `wrangler types`
For example, from the following `wrangler.toml` setup:
```toml
[browser]
binding = "BROWSER"
[ai]
binding = "AI"
[[send_email]]
name = "SEND_EMAIL"
[[vectorize]]
binding = "VECTORIZE"
index_name = "VECTORIZE_NAME"
[[hyperdrive]]
binding = "HYPERDRIVE"
id = "HYPERDRIVE_ID"
[[mtls_certificates]]
binding = "MTLS"
certificate_id = "MTLS_CERTIFICATE_ID"
```
Previously, nothing would have been included in the generated Environment.
Now, the following will be generated:
```ts
interface Env {
SEND_EMAIL: SendEmail;
VECTORIZE: VectorizeIndex;
HYPERDRIVE: Hyperdrive;
MTLS: Fetcher;
BROWSER: Fetcher;
AI: Fetcher;
}
```
- Updated dependencies \[[`11951f3`](https://togithub.com/cloudflare/workers-sdk/commit/11951f344ccac340be5d059bc4dd28ef674fb36f), [`11951f3`](https://togithub.com/cloudflare/workers-sdk/commit/11951f344ccac340be5d059bc4dd28ef674fb36f)]:
- miniflare@3.20240304.0
### [`v3.31.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3310)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.30.1...wrangler@3.31.0)
##### Minor Changes
- [#5119](https://togithub.com/cloudflare/workers-sdk/pull/5119) [`b0bd413`](https://togithub.com/cloudflare/workers-sdk/commit/b0bd4137f8504c1a96c5fa60f25c41028c9ba23e) Thanks [@garrettgu10](https://togithub.com/garrettgu10)! - feature: Python support for remote dev
- [#5118](https://togithub.com/cloudflare/workers-sdk/pull/5118) [`30694a3`](https://togithub.com/cloudflare/workers-sdk/commit/30694a31d65016e56e30d14a3b14f2fed6df4370) Thanks [@garrettgu10](https://togithub.com/garrettgu10)! - fix: Including version identifiers in Python requirements.txt will now throw an error
##### Patch Changes
- [#5132](https://togithub.com/cloudflare/workers-sdk/pull/5132) [`82a3f94`](https://togithub.com/cloudflare/workers-sdk/commit/82a3f94db091c893b5dfc9496aad6154a54474c5) Thanks [@mrbbot](https://togithub.com/mrbbot)! - fix: switch default logging level of `unstable_dev()` to `warn`
When running `unstable_dev()` in its default "test mode", the logging level was set to `none`. This meant any Worker startup errors or helpful warnings wouldn't be shown. This change switches the default to `warn`. To restore the previous behaviour, include `logLevel: "none"` in your options object:
```js
const worker = await unstable_dev("path/to/script.js", {
logLevel: "none",
});
```
- [#5128](https://togithub.com/cloudflare/workers-sdk/pull/5128) [`d27e2a7`](https://togithub.com/cloudflare/workers-sdk/commit/d27e2a70904aab98b4e5c7279661a8d98e7da917) Thanks [@taylorlee](https://togithub.com/taylorlee)! - fix: Add legacy_env support to experimental versions upload command.
- [#5087](https://togithub.com/cloudflare/workers-sdk/pull/5087) [`a5231de`](https://togithub.com/cloudflare/workers-sdk/commit/a5231decbf18898811749a64f8e36be4aa5fd941) Thanks [@dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - fix: make `wrangler types` always generate a `d.ts` file for module workers
Currently if a config file doesn't define any binding nor module, running
`wrangler types` against such file would not produce a `d.ts` file.
Producing a `d.ts` file can however still be beneficial as it would define a correct
env interface (even if empty) that can be expanded/referenced by user code (this can
be particularly convenient for scaffolding tools that may want to always generate an
env interface).
Example:
Before `wrangler types --env-interface MyEnv` run with an empty `wrangler.toml` file
would not generate any file, after these change it would instead generate a file with
the following content:
interface MyEnv {
}
- [#5138](https://togithub.com/cloudflare/workers-sdk/pull/5138) [`3dd9089`](https://togithub.com/cloudflare/workers-sdk/commit/3dd9089f34d30dcd6f03e63093e86efa9b8c1e1f) Thanks [@G4brym](https://togithub.com/G4brym)! - fix: ensure Workers-AI local mode fetcher returns headers to client worker
- Updated dependencies \[[`42bcc72`](https://togithub.com/cloudflare/workers-sdk/commit/42bcc7216ab14455c1398d55bc552023726eb423), [`42bcc72`](https://togithub.com/cloudflare/workers-sdk/commit/42bcc7216ab14455c1398d55bc552023726eb423)]:
- miniflare@3.20240223.1
### [`v3.30.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3301)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.30.0...wrangler@3.30.1)
##### Patch Changes
- [#5106](https://togithub.com/cloudflare/workers-sdk/pull/5106) [`2ed7f32`](https://togithub.com/cloudflare/workers-sdk/commit/2ed7f3209bc6bffa85f409d344d6ed76df8686f9) Thanks [@RamIdeas](https://togithub.com/RamIdeas)! - fix: automatically drain incoming request bodies
Previously, requests sent to `wrangler dev` with unconsumed bodies could result in `Network connection lost` errors. This change attempts to work around the issue by ensuring incoming request bodies are drained if they're not used. This is a temporary fix whilst we try to address the underlying issue. Whilst we don't think this change will introduce any other issues, it can be disabled by setting the `WRANGLER_DISABLE_REQUEST_BODY_DRAINING=true` environment variable. Note this fix is only applied if you've enabled Wrangler's bundling—`--no-bundle` mode continues to have the previous behaviour.
- [#5107](https://togithub.com/cloudflare/workers-sdk/pull/5107) [`65d0399`](https://togithub.com/cloudflare/workers-sdk/commit/65d0399c0757881c41582972d14afa02f02fffb4) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Ensures that switching to remote mode during a dev session (from local mode) will correctly use the right zone. Previously, zone detection happened before the dev session was mounted, and so dev sessions started with local mode would have no zone inferred, and would have failed to start, with an ugly error.
- [#5107](https://togithub.com/cloudflare/workers-sdk/pull/5107) [`65d0399`](https://togithub.com/cloudflare/workers-sdk/commit/65d0399c0757881c41582972d14afa02f02fffb4) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Ensure that preview sessions created without a zone don't switch the host on which to start the preview from the one returned by the API.
- [#4833](https://togithub.com/cloudflare/workers-sdk/pull/4833) [`54f6bfc`](https://togithub.com/cloudflare/workers-sdk/commit/54f6bfcea14b89cae99f3c26b52c28bcd408aba7) Thanks [@admah](https://togithub.com/admah)! - fix: remove extra arguments from wrangler init deprecation message and update recommended c3 version
c3 can now infer the pre-existing type from the presence of the `--existing-script` flag so we can remove the extra `type` argument. C3 2.5.0 introduces an auto-update feature that will make sure users get the latest minor version of c3 and prevent problems where older 2.x.x versions get cached by previous runs of `wrangler init`.
### [`v3.30.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3300)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.29.0...wrangler@3.30.0)
##### Minor Changes
- [#4742](https://togithub.com/cloudflare/workers-sdk/pull/4742) [`c2f3f1e`](https://togithub.com/cloudflare/workers-sdk/commit/c2f3f1e37c1a8f0958676306f3128cd87265ea5b) Thanks [@benycodes](https://togithub.com/benycodes)! - feat: allow preserving file names when defining rules for non-js modules
The developer is now able to specify the \`preserve_file_names property in wrangler.toml
which specifies whether Wrangler will preserve the file names additional modules that are
added to the deployment bundle of a Worker.
If not set to true, files will be named using the pattern ${fileHash}-${basename}.
For example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.
Resolves [#4741](https://togithub.com/cloudflare/workers-sdk/issues/4741)
##### Patch Changes
- Updated dependencies \[[`0c0949d`](https://togithub.com/cloudflare/workers-sdk/commit/0c0949da60e3287c05a5884bb9f869ce5609a9a1)]:
- miniflare@3.20240223.0
### [`v3.29.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3290)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.28.4...wrangler@3.29.0)
##### Minor Changes
- [#5042](https://togithub.com/cloudflare/workers-sdk/pull/5042) [`5693d076`](https://togithub.com/cloudflare/workers-sdk/commit/5693d076e2aab99d4736649d5b467689ce25cb23) Thanks [@dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - feat: add new `--env-interface` to `wrangler types`
Allow users to specify the name of the interface that they want `wrangler types` to generate for the `env` parameter, via the new CLI flag `--env-interface`
Example:
```sh
wrangler types --env-interface CloudflareEnv
```
generates
```ts
interface CloudflareEnv {}
```
instead of
```ts
interface Env {}
```
- [#5042](https://togithub.com/cloudflare/workers-sdk/pull/5042) [`5693d076`](https://togithub.com/cloudflare/workers-sdk/commit/5693d076e2aab99d4736649d5b467689ce25cb23) Thanks [@dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - feat: add new `path` positional argument to `wrangler types`
Allow users to specify the path to the typings (.d.ts) file they want
`wrangler types` to generate
Example:
```sh
wrangler types ./my-env.d.ts
```
generates a `my-env.d.ts` file in the current directory
instead of creating a `worker-configuration.d.ts` file
##### Patch Changes
- [#5042](https://togithub.com/cloudflare/workers-sdk/pull/5042) [`5693d076`](https://togithub.com/cloudflare/workers-sdk/commit/5693d076e2aab99d4736649d5b467689ce25cb23) Thanks [@dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - feat: include command run in the `wrangler types` comment
In the comment added to the `.d.ts` file generated by `wrangler types`
include the command run to generated the file
- [#4303](https://togithub.com/cloudflare/workers-sdk/pull/4303) [`1c460287`](https://togithub.com/cloudflare/workers-sdk/commit/1c460287f8836102b372ce0c7dddec093259692e) Thanks [@richardscarrott](https://togithub.com/richardscarrott)! - fix: allow Pages Functions to import built-in node:\* modules, even when not bundling with wrangler
- [#4957](https://togithub.com/cloudflare/workers-sdk/pull/4957) [`50f93bd2`](https://togithub.com/cloudflare/workers-sdk/commit/50f93bd2ce8f14294bee73b844897c5bfa083955) Thanks [@garrettgu10](https://togithub.com/garrettgu10)! - fix: don't strip `.py` extensions from Python modules
- [#5042](https://togithub.com/cloudflare/workers-sdk/pull/5042) [`5693d076`](https://togithub.com/cloudflare/workers-sdk/commit/5693d076e2aab99d4736649d5b467689ce25cb23) Thanks [@dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - fix: make `wrangler types` honor top level config argument
The `wrangler types` command currently ignores the `-c|--config` argument
(although it is still getting shown in the command's help message). Make
sure that the command honors the flag.
Also, if no config file is detected
present a warning to the user
- [#5042](https://togithub.com/cloudflare/workers-sdk/pull/5042) [`5693d076`](https://togithub.com/cloudflare/workers-sdk/commit/5693d076e2aab99d4736649d5b467689ce25cb23) Thanks [@dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - fix: make the `wrangler types` command pick up local secret keys from `.dev.vars`
Make sure that the `wrangler types` command correctly picks up
secret keys defined in `.dev.vars` and includes them in the generated
file (marking them as generic `string` types of course)
- Updated dependencies \[[`b03db864`](https://togithub.com/cloudflare/workers-sdk/commit/b03db864a36924c31b8ddd82a027c83df4f68c43)]:
- miniflare@3.20240208.0
### [`v3.28.4`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3284)
[Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.28.3...wrangler@3.28.4)
##### Patch Chang
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^3.27.0
->^3.52.0
Release Notes
cloudflare/workers-sdk (wrangler)
### [`v3.52.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3520) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.51.2...wrangler@3.52.0) ##### Minor Changes - [#5666](https://togithub.com/cloudflare/workers-sdk/pull/5666) [`81d9615`](https://togithub.com/cloudflare/workers-sdk/commit/81d961582da2db2b020305c63a9f1f1573ff873d) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - fix: Fix Pages config validation around Durable Objects Today Pages cannot deploy Durable Objects itself. For this reason it is mandatory that when declaring Durable Objects bindings in the config file, the `script_name` is specified. We are currently not failing validation if `script_name` is not specified but we should. These changes fix that. ##### Patch Changes - [#5610](https://togithub.com/cloudflare/workers-sdk/pull/5610) [`24840f6`](https://togithub.com/cloudflare/workers-sdk/commit/24840f67b6495a664f5463697aa49fa9478435b9) Thanks [@SuperchupuDev](https://togithub.com/SuperchupuDev)! - Mark `ts-json-schema-generator` as a dev dependency - [#5669](https://togithub.com/cloudflare/workers-sdk/pull/5669) [`a7e36d5`](https://togithub.com/cloudflare/workers-sdk/commit/a7e36d503f442a8225ffdedef30b569a8a396663) Thanks [@dario-piotrowicz](https://togithub.com/dario-piotrowicz)! - fix: fix broken Durable Object local proxying (when no `cf` property is present) A regression was introduced in wrangler 3.46.0 ([https://github.com/cloudflare/workers-sdk/pull/5215](https://togithub.com/cloudflare/workers-sdk/pull/5215)) which made it so that missing `Request#cf` properties are serialized as `"undefined"`, this in turn throws a syntax parse error when such values are parsed via `JSON.parse` breaking the communication with Durable Object local proxies. Fix such issue by serializing missing `Request#cf` properties as `"{}"` instead. - [#5616](https://togithub.com/cloudflare/workers-sdk/pull/5616) [`c6312b5`](https://togithub.com/cloudflare/workers-sdk/commit/c6312b5017279b31ce99c761e2063973f7d948bf) Thanks [@webbertakken](https://togithub.com/webbertakken)! - fix: broken link to durable object migrations docs - [#5482](https://togithub.com/cloudflare/workers-sdk/pull/5482) [`1b7739e`](https://togithub.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb) Thanks [@DaniFoldi](https://togithub.com/DaniFoldi)! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred. - Updated dependencies \[[`3a0d735`](https://togithub.com/cloudflare/workers-sdk/commit/3a0d7356bd8bc6fe614a3ef3f9c1278659555568), [`1b7739e`](https://togithub.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb)]: - miniflare@3.20240419.0 - [@cloudflare/kv-asset-handler](https://togithub.com/cloudflare/kv-asset-handler)[@0](https://togithub.com/0).3.2 ### [`v3.51.2`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3512) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.51.0...wrangler@3.51.2) ##### Patch Changes - [#5652](https://togithub.com/cloudflare/workers-sdk/pull/5652) [`ccb9d3d`](https://togithub.com/cloudflare/workers-sdk/commit/ccb9d3d4efba73a720945df4e1212a010fe40739) Thanks [@petebacondarwin](https://togithub.com/petebacondarwin)! - chore: re-release due to broken build ### [`v3.51.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3510) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.50.0...wrangler@3.51.0) ##### Minor Changes - [#5477](https://togithub.com/cloudflare/workers-sdk/pull/5477) [`9a46e03`](https://togithub.com/cloudflare/workers-sdk/commit/9a46e03f013cc6f1e2d38d47f9bf002626b6bd95) Thanks [@pmiguel](https://togithub.com/pmiguel)! - feature: Changed Queues client to use the new QueueId and ConsumerId-based endpoints. - [#5172](https://togithub.com/cloudflare/workers-sdk/pull/5172) [`fbe1c9c`](https://togithub.com/cloudflare/workers-sdk/commit/fbe1c9c816f2b5774060d721ff830e70d9b7d29f) Thanks [@GregBrimble](https://togithub.com/GregBrimble)! - feat: Allow marking external modules (with `--external`) to avoid bundling them when building Pages Functions It's useful for Pages Plugins which want to declare a peer dependency. ##### Patch Changes - [#5585](https://togithub.com/cloudflare/workers-sdk/pull/5585) [`22f5841`](https://togithub.com/cloudflare/workers-sdk/commit/22f58414d5697730f0337d17c7602b7fa3bebb79) Thanks [@geelen](https://togithub.com/geelen)! - Updates `wrangler d1 export` to handle larger DBs more efficiently - Updated dependencies \[[`c9f081a`](https://togithub.com/cloudflare/workers-sdk/commit/c9f081ab72142060a3cf2e9a7ef4546b8014b210), [`c9f081a`](https://togithub.com/cloudflare/workers-sdk/commit/c9f081ab72142060a3cf2e9a7ef4546b8014b210)]: - miniflare@3.20240405.2 ### [`v3.50.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3500) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.49.0...wrangler@3.50.0) ##### Minor Changes - [#5587](https://togithub.com/cloudflare/workers-sdk/pull/5587) [`d95450f`](https://togithub.com/cloudflare/workers-sdk/commit/d95450f0b00fa32d4c827fc8ad25d8fc929a654d) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - fix: `pages functions build-env` should throw error if invalid Pages config file is found - [#5572](https://togithub.com/cloudflare/workers-sdk/pull/5572) [`65aa21c`](https://togithub.com/cloudflare/workers-sdk/commit/65aa21cc2d53b99e4c6956a3fb69bd687a102266) Thanks [@CarmenPopoviciu](https://togithub.com/CarmenPopoviciu)! - fix: fix `pages function build-env` to exit with code rather than throw fatal error Currently pages functions build-env throws a fatal error if a config file does not exit, or if it is invalid. This causes issues for the CI system. We should instead exit with a specific code, if any of those situations arises. - [#5291](https://togithub.com/cloudflare/workers-sdk/pull/5291) [`ce00a44`](https://togithub.com/cloudflare/workers-sdk/commit/ce00a44c985859a5ffb5ee3dc392796e5d12ff1d) Thanks [@pmiguel](https://togithub.com/pmiguel)! - feature: Added bespoke OAuth scope for Queues management. ##### Patch Changes - Updated dependencies \[[`08b4908`](https://togithub.com/cloudflare/workers-sdk/commit/08b490806093add445ff3d7b1969923cb4123d34)]: - miniflare@3.20240405.1 ### [`v3.49.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3490) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.48.0...wrangler@3.49.0) ##### Minor Changes - [#5549](https://togithub.com/cloudflare/workers-sdk/pull/5549) [`113ac41`](https://togithub.com/cloudflare/workers-sdk/commit/113ac41cda3bd6304c0683f6f8e61dcedf21e685) Thanks [@penalosa](https://togithub.com/penalosa)! - feat: Support `wrangler pages secret put|delete|list|bulk` - [#5550](https://togithub.com/cloudflare/workers-sdk/pull/5550) [`4f47f74`](https://togithub.com/cloudflare/workers-sdk/commit/4f47f7422786e537eaefd034153998f848bcd573) Thanks [@penalosa](https://togithub.com/penalosa)! - feat: Generate a JSON schema for the Wrangler package & use it in templates - [#5561](https://togithub.com/cloudflare/workers-sdk/pull/5561) [`59591cd`](https://togithub.com/cloudflare/workers-sdk/commit/59591cd5ace98bbfefd2ec34eb77dfeafd8db97d) Thanks [@ocsfrank](https://togithub.com/ocsfrank)! - feat: update R2 CreateBucket action to include the storage class in the request body ##### Patch Changes - [#5374](https://togithub.com/cloudflare/workers-sdk/pull/5374) [`7999dd2`](https://togithub.com/cloudflare/workers-sdk/commit/7999dd2bacf53be3780ba70492003d417ffcd5f0) Thanks [@maxwellpeterson](https://togithub.com/maxwellpeterson)! - fix: Improvements to `--init-from-dash` Adds user-specified CPU limit to `wrangler.toml` if one exists. Excludes `usage_model` from `wrangler.toml` in all cases, since this field is deprecated and no longer used. - [#5553](https://togithub.com/cloudflare/workers-sdk/pull/5553) [`dcd65dd`](https://togithub.com/cloudflare/workers-sdk/commit/dcd65dd3da19f619cd9c48d42433ac538a734816) Thanks [@rozenmd](https://togithub.com/rozenmd)! - fix: refactor d1's time-travel compatibility check - [#5380](https://togithub.com/cloudflare/workers-sdk/pull/5380) [`57d5658`](https://togithub.com/cloudflare/workers-sdk/commit/57d5658bc5560f4ba38fd1b21a1988a4922feea2) Thanks [@GregBrimble](https://togithub.com/GregBrimble)! - fix: Respect `--no-bundle` when deploying a `_worker.js/` directory in Pages projects - [#5536](https://togithub.com/cloudflare/workers-sdk/pull/5536) [`a7aa28a`](https://togithub.com/cloudflare/workers-sdk/commit/a7aa28ad57c07ea96aad1ddc547afb11db679878) Thanks [@Cherry](https://togithub.com/Cherry)! - fix: resolve a regression where `wrangler pages dev` would bind to port 8787 by default instead of 8788 since wrangler@3.38.0 - Updated dependencies \[[`9575a51`](https://togithub.com/cloudflare/workers-sdk/commit/9575a514cbc206fea6d08f627253ead209fd2a8d)]: - miniflare@3.20240405.0 ### [`v3.48.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3480) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.47.1...wrangler@3.48.0) ##### Minor Changes - [#5429](https://togithub.com/cloudflare/workers-sdk/pull/5429) [`c5561b7`](https://togithub.com/cloudflare/workers-sdk/commit/c5561b7236adf2b97e09e4ae9139654e23d635fe) Thanks [@ocsfrank](https://togithub.com/ocsfrank)! - R2 will introduce storage classes soon. Wrangler allows you to interact with storage classes once it is enabled on your account. Wrangler supports an `-s` flag that allows the user to specify a storage class when creating a bucket, changing the default storage class of a bucket, and uploading an object. ```bash wrangler r2 bucket create ia-bucket -s InfrequentAccess wrangler r2 bucket update storage-class my-bucket -s InfrequentAccess wrangler r2 object put bucket/ia-object -s InfrequentAccess --file foo ``` ##### Patch Changes - [#5531](https://togithub.com/cloudflare/workers-sdk/pull/5531) [`887150a`](https://togithub.com/cloudflare/workers-sdk/commit/887150ae64d78800e1f44ea25d69f06e76e9f127) Thanks [@penalosa](https://togithub.com/penalosa)! - fix: Write `wrangler pages functions build-env` to file rather than stdout - [#5526](https://togithub.com/cloudflare/workers-sdk/pull/5526) [`bafbd67`](https://togithub.com/cloudflare/workers-sdk/commit/bafbd6719bbec1e323ee161a0106bf98c60255a2) Thanks [@rozenmd](https://togithub.com/rozenmd)! - fix: teach `wrangler d1 create` about Australia ### [`v3.47.1`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3471) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.47.0...wrangler@3.47.1) ##### Patch Changes - Updated dependencies \[[`9f15ce1`](https://togithub.com/cloudflare/workers-sdk/commit/9f15ce1716c50dd44adf7a3df6a4101322800005)]: - miniflare@3.20240404.0 ### [`v3.47.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3470) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.46.0...wrangler@3.47.0) ##### Minor Changes - [#5506](https://togithub.com/cloudflare/workers-sdk/pull/5506) [`7734f80`](https://togithub.com/cloudflare/workers-sdk/commit/7734f806c1ac2a38faabc87df4aa8344b585c430) Thanks [@penalosa](https://togithub.com/penalosa)! - feat: Add interactive prompt to `wrangler pages download config` if an existing `wrangler.toml` file exists ### [`v3.46.0`](https://togithub.com/cloudflare/workers-sdk/blob/HEAD/packages/wrangler/CHANGELOG.md#3460) [Compare Source](https://togithub.com/cloudflare/workers-sdk/compare/wrangler@3.45.0...wrangler@3.46.0) ##### Minor Changes - [#5282](https://togithub.com/cloudflare/workers-sdk/pull/5282) [`b7ddde1`](https://togithub.com/cloudflare/workers-sdk/commit/b7ddde1a5165223dcbe8781e928039123778b8a1) Thanks [@maxwellpeterson](https://togithub.com/maxwellpeterson)! - feature: Add source map support for Workers Adds the `source_maps` boolean config option. When enabled, source maps included in the build output are uploaded alongside the built code modules. Uploaded source maps can then be used to remap stack traces emitted by the Workers runtime. - [#5215](https://togithub.com/cloudflare/workers-sdk/pull/5215) [`cd03d1d`](https://togithub.com/cloudflare/workers-sdk/commit/cd03d1d3fa6e733faa42e5abb92f37637503b327) Thanks [@GregBrimble](https://togithub.com/GregBrimble)! - feature: support named entrypoints in service bindings This change allows service bindings to bind to a named export of another Worker. As an example, consider the following Worker named `bound`: ```ts import { WorkerEntrypoint } from "cloudflare:workers"; export class EntrypointA extends WorkerEntrypoint { fetch(request) { return new Response("Hello from entrypoint A!"); } } export const entrypointB: ExportedHandler = { fetch(request, env, ctx) { return new Response("Hello from entrypoint B!"); } }; export defaultConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.