|
1 | 1 | # wrangler
|
2 | 2 |
|
| 3 | +## 3.4.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- [#3649](https://github.com/cloudflare/workers-sdk/pull/3649) [`e2234bbc`](https://github.com/cloudflare/workers-sdk/commit/e2234bbc2fc06c201dd5f256357084c86789891c) Thanks [@JacobMGEvans](https://github.com/JacobMGEvans)! - Feature: 'stdin' support for 'secret:bulk' |
| 8 | + Added functionality that allows for files and strings to be piped in, or other means of standard input. This will allow for a broader variety of use cases and improved DX. |
| 9 | + This implementation is also fully backward compatible with the previous input method of file path to JSON. |
| 10 | + |
| 11 | + ```bash |
| 12 | + # Example of piping in a file |
| 13 | + > cat ./my-file.json | wrangler secret:bulk |
| 14 | + |
| 15 | + # Example of piping in a string |
| 16 | + > echo '{"key":"value"}' | wrangler secret:bulk |
| 17 | + |
| 18 | + # Example of redirecting input from a file |
| 19 | + > wrangler secret:bulk < ./my-file.json |
| 20 | + ``` |
| 21 | + |
| 22 | +* [#3675](https://github.com/cloudflare/workers-sdk/pull/3675) [`f753f3af`](https://github.com/cloudflare/workers-sdk/commit/f753f3afb7478bb289b39c44b33acbcefe06e99a) Thanks [@1000hz](https://github.com/1000hz)! - chore: upgrade `miniflare` to [`3.20230724.0`](https://github.com/cloudflare/miniflare/releases/tag/v3.20230724.0) |
| 23 | + |
| 24 | +### Patch Changes |
| 25 | + |
| 26 | +- [#3610](https://github.com/cloudflare/workers-sdk/pull/3610) [`bfbe49d0`](https://github.com/cloudflare/workers-sdk/commit/bfbe49d0d147ab8e32944ade524bc85f7f6f0cf3) Thanks [@Skye-31](https://github.com/Skye-31)! - Wrangler Capnp Compilation |
| 27 | + |
| 28 | + This PR replaces logfwdr's `schema` property with a new `unsafe.capnp` object. This object accepts either a `compiled_schema` property, or a `base_path` and array of `source_schemas` to get Wrangler to compile the capnp schema for you. |
| 29 | + |
| 30 | +* [#3579](https://github.com/cloudflare/workers-sdk/pull/3579) [`d4450b0a`](https://github.com/cloudflare/workers-sdk/commit/d4450b0a095c3b31fdc09a7af2e3336048c7be70) Thanks [@rozenmd](https://github.com/rozenmd)! - fix: remove --experimental-backend from `wrangler d1 migrations apply` |
| 31 | + |
| 32 | + This PR removes the need to pass a `--experimental-backend` flag when running migrations against an experimental D1 db. |
| 33 | + |
| 34 | + Closes #3596 |
| 35 | + |
| 36 | +- [#3623](https://github.com/cloudflare/workers-sdk/pull/3623) [`99baf58b`](https://github.com/cloudflare/workers-sdk/commit/99baf58b7c35e85c90e1f6df4cea841f31c0a709) Thanks [@RamIdeas](https://github.com/RamIdeas)! - when running `wrangler init -y ...`, the `-y` flag is now passed to npx when delegating to C3 |
| 37 | + |
| 38 | +* [#3668](https://github.com/cloudflare/workers-sdk/pull/3668) [`99032c1e`](https://github.com/cloudflare/workers-sdk/commit/99032c1e500132e16f0c1027cb4cba0c59823656) Thanks [@rozenmd](https://github.com/rozenmd)! - chore: make D1's experimental backend the default |
| 39 | + |
| 40 | + This PR makes D1's experimental backend turned on by default. |
| 41 | + |
| 42 | +- [#3579](https://github.com/cloudflare/workers-sdk/pull/3579) [`d4450b0a`](https://github.com/cloudflare/workers-sdk/commit/d4450b0a095c3b31fdc09a7af2e3336048c7be70) Thanks [@rozenmd](https://github.com/rozenmd)! - feat: implement time travel for experimental d1 dbs |
| 43 | + |
| 44 | + This PR adds two commands under `wrangler d1 time-travel`: |
| 45 | + |
| 46 | + ``` |
| 47 | + Use Time Travel to restore, fork or copy a database at a specific point-in-time. |
| 48 | +
|
| 49 | + Commands: |
| 50 | +
|
| 51 | + wrangler d1 time-travel info <database> Retrieve information about a database at a specific point-in-time using Time Travel. |
| 52 | + Options: |
| 53 | + --timestamp accepts a Unix (seconds from epoch) or RFC3339 timestamp (e.g. 2023-07-13T08:46:42.228Z) to retrieve a bookmark for [string] |
| 54 | + --json return output as clean JSON [boolean] [default: false] |
| 55 | +
|
| 56 | + wrangler d1 time-travel restore <database> Restore a database back to a specific point-in-time. |
| 57 | + Options: |
| 58 | + --bookmark Bookmark to use for time travel [string] |
| 59 | + --timestamp accepts a Unix (seconds from epoch) or RFC3339 timestamp (e.g. 2023-07-13T08:46:42.228Z) to retrieve a bookmark for [string] |
| 60 | + --json return output as clean JSON [boolean] [default: false] |
| 61 | + ``` |
| 62 | + |
| 63 | + Closes #3577 |
| 64 | + |
| 65 | +* [#3592](https://github.com/cloudflare/workers-sdk/pull/3592) [`89cd086b`](https://github.com/cloudflare/workers-sdk/commit/89cd086ba0429651a30e8287c1e9e660d2fef6d0) Thanks [@penalosa](https://github.com/penalosa)! - fix: Only log dev registry connection errors once |
| 66 | + |
| 67 | +- [#3384](https://github.com/cloudflare/workers-sdk/pull/3384) [`ccc19d57`](https://github.com/cloudflare/workers-sdk/commit/ccc19d57e0b6a557c39bedbbb92ec4e52c580975) Thanks [@Peter-Sparksuite](https://github.com/Peter-Sparksuite)! - feature: add wrangler deploy option: --old-asset-ttl [seconds] |
| 68 | + |
| 69 | + `wrangler deploy` immediately deletes assets that are no longer current, which has a side-effect for existing progressive web app users of seeing 404 errors as the app tries to access assets that no longer exist. |
| 70 | + |
| 71 | + This new feature: |
| 72 | + |
| 73 | + - does not change the default behavior of immediately deleting no-longer needed assets. |
| 74 | + - allows users to opt-in to expiring newly obsoleted assets after the provided number of seconds hence, so that current users will have a time buffer before seeing 404 errors. |
| 75 | + - is similar in concept to what was introduced in Wrangler 1.x with https://github.com/cloudflare/wrangler-legacy/pull/2221. |
| 76 | + - is careful to avoid extension of existing expiration targets on already expiring old assets, which may have contributed to unexpectedly large KV storage accumulations (perhaps why, in Wrangler 1.x, the reversion https://github.com/cloudflare/wrangler-legacy/pull/2228 happened). |
| 77 | + - no breaking changes for users relying on the default behavior, but some output changes exist when the new option is used, to indicate the change in behavior. |
| 78 | + |
| 79 | +* [#3678](https://github.com/cloudflare/workers-sdk/pull/3678) [`17780b27`](https://github.com/cloudflare/workers-sdk/commit/17780b279998db00732406633958dc35eecaa70f) Thanks [@1000hz](https://github.com/1000hz)! - Refined the type of `CfVars` from `Record<string, unknown>` to `Record<string, string | Json>` |
| 80 | + |
3 | 81 | ## 3.3.0
|
4 | 82 |
|
5 | 83 | ### Minor Changes
|
|
0 commit comments