From f9bc4f6631921d9fdca7915fc5d2f9c35ed23517 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 26 Jul 2023 22:34:37 +0000 Subject: [PATCH] Version Packages --- .changeset/five-beans-admire.md | 18 ------ .changeset/five-socks-try.md | 9 --- .changeset/happy-glasses-live.md | 5 -- .changeset/honest-ghosts-switch.md | 6 -- .changeset/kind-buckets-scream.md | 7 --- .changeset/rare-squids-begin.md | 26 --------- .changeset/silly-penguins-brush.md | 6 -- .changeset/silver-dolphins-guess.md | 5 -- .changeset/tasty-beds-look.md | 15 ----- .changeset/twenty-snails-sip.md | 5 -- package-lock.json | 10 ++-- packages/create-cloudflare/CHANGELOG.md | 7 +++ packages/create-cloudflare/package.json | 2 +- packages/pages-shared/CHANGELOG.md | 6 ++ packages/pages-shared/package.json | 2 +- packages/wrangler/CHANGELOG.md | 74 +++++++++++++++++++++++++ packages/wrangler/package.json | 2 +- 17 files changed, 95 insertions(+), 110 deletions(-) delete mode 100644 .changeset/five-beans-admire.md delete mode 100644 .changeset/five-socks-try.md delete mode 100644 .changeset/happy-glasses-live.md delete mode 100644 .changeset/honest-ghosts-switch.md delete mode 100644 .changeset/kind-buckets-scream.md delete mode 100644 .changeset/rare-squids-begin.md delete mode 100644 .changeset/silly-penguins-brush.md delete mode 100644 .changeset/silver-dolphins-guess.md delete mode 100644 .changeset/tasty-beds-look.md delete mode 100644 .changeset/twenty-snails-sip.md diff --git a/.changeset/five-beans-admire.md b/.changeset/five-beans-admire.md deleted file mode 100644 index f13c0ebb9052..000000000000 --- a/.changeset/five-beans-admire.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"wrangler": minor ---- - -Feature: 'stdin' support for 'secret:bulk' -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. -This implementation is also fully backward compatible with the previous input method of file path to JSON. - -```bash -# Example of piping in a file -> cat ./my-file.json | wrangler secret:bulk - -# Example of piping in a string -> echo '{"key":"value"}' | wrangler secret:bulk - -# Example of redirecting input from a file -> wrangler secret:bulk < ./my-file.json -``` diff --git a/.changeset/five-socks-try.md b/.changeset/five-socks-try.md deleted file mode 100644 index 45f31a1468df..000000000000 --- a/.changeset/five-socks-try.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"wrangler": patch ---- - -fix: remove --experimental-backend from `wrangler d1 migrations apply` - -This PR removes the need to pass a `--experimental-backend` flag when running migrations against an experimental D1 db. - -Closes #3596 diff --git a/.changeset/happy-glasses-live.md b/.changeset/happy-glasses-live.md deleted file mode 100644 index c9761a971884..000000000000 --- a/.changeset/happy-glasses-live.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -when running `wrangler init -y ...`, the `-y` flag is now passed to npx when delegating to C3 diff --git a/.changeset/honest-ghosts-switch.md b/.changeset/honest-ghosts-switch.md deleted file mode 100644 index 3e577f879528..000000000000 --- a/.changeset/honest-ghosts-switch.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"create-cloudflare": minor ---- - -Add the option to add the `eslint-plugin-next-on-pages` eslint plugin -to developers creating a new Next.js app with eslint enabled diff --git a/.changeset/kind-buckets-scream.md b/.changeset/kind-buckets-scream.md deleted file mode 100644 index a522ffad4670..000000000000 --- a/.changeset/kind-buckets-scream.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -chore: make D1's experimental backend the default - -This PR makes D1's experimental backend turned on by default. diff --git a/.changeset/rare-squids-begin.md b/.changeset/rare-squids-begin.md deleted file mode 100644 index 5e763989b591..000000000000 --- a/.changeset/rare-squids-begin.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -"wrangler": patch ---- - -feat: implement time travel for experimental d1 dbs - -This PR adds two commands under `wrangler d1 time-travel`: - -``` -Use Time Travel to restore, fork or copy a database at a specific point-in-time. - -Commands: - -wrangler d1 time-travel info Retrieve information about a database at a specific point-in-time using Time Travel. -Options: - --timestamp accepts a Unix (seconds from epoch) or RFC3339 timestamp (e.g. 2023-07-13T08:46:42.228Z) to retrieve a bookmark for [string] - --json return output as clean JSON [boolean] [default: false] - -wrangler d1 time-travel restore Restore a database back to a specific point-in-time. -Options: - --bookmark Bookmark to use for time travel [string] - --timestamp accepts a Unix (seconds from epoch) or RFC3339 timestamp (e.g. 2023-07-13T08:46:42.228Z) to retrieve a bookmark for [string] - --json return output as clean JSON [boolean] [default: false] -``` - -Closes #3577 diff --git a/.changeset/silly-penguins-brush.md b/.changeset/silly-penguins-brush.md deleted file mode 100644 index cdea63b56f4f..000000000000 --- a/.changeset/silly-penguins-brush.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@cloudflare/pages-shared": minor -"wrangler": minor ---- - -chore: upgrade `miniflare` to [`3.20230724.0`](https://github.com/cloudflare/miniflare/releases/tag/v3.20230724.0) diff --git a/.changeset/silver-dolphins-guess.md b/.changeset/silver-dolphins-guess.md deleted file mode 100644 index 750695aa272e..000000000000 --- a/.changeset/silver-dolphins-guess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -fix: Only log dev registry connection errors once diff --git a/.changeset/tasty-beds-look.md b/.changeset/tasty-beds-look.md deleted file mode 100644 index 5060f8e4c325..000000000000 --- a/.changeset/tasty-beds-look.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"wrangler": patch ---- - -feature: add wrangler deploy option: --old-asset-ttl [seconds] - -`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. - -This new feature: - -- does not change the default behavior of immediately deleting no-longer needed assets. -- 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. -- is similar in concept to what was introduced in Wrangler 1.x with https://github.com/cloudflare/wrangler-legacy/pull/2221. -- 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). -- 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. diff --git a/.changeset/twenty-snails-sip.md b/.changeset/twenty-snails-sip.md deleted file mode 100644 index 3a94628eb856..000000000000 --- a/.changeset/twenty-snails-sip.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Refined the type of `CfVars` from `Record` to `Record` diff --git a/package-lock.json b/package-lock.json index c805b2de0108..91ce61f1e469 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2568,7 +2568,7 @@ }, "node_modules/@clack/prompts/node_modules/is-unicode-supported": { "version": "1.3.0", - "extraneous": true, + "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -30267,7 +30267,7 @@ } }, "packages/create-cloudflare": { - "version": "2.0.14", + "version": "2.1.0", "license": "MIT OR Apache-2.0", "bin": { "create-cloudflare": "dist/cli.js" @@ -31127,7 +31127,7 @@ }, "packages/pages-shared": { "name": "@cloudflare/pages-shared", - "version": "0.7.0", + "version": "0.8.0", "dependencies": { "miniflare": "3.20230724.0" }, @@ -32109,7 +32109,7 @@ "dev": true }, "packages/wrangler": { - "version": "3.3.0", + "version": "3.4.0", "license": "MIT OR Apache-2.0", "dependencies": { "@cloudflare/kv-asset-handler": "^0.2.0", @@ -35452,7 +35452,7 @@ "is-unicode-supported": { "version": "1.3.0", "bundled": true, - "extraneous": true + "dev": true } } }, diff --git a/packages/create-cloudflare/CHANGELOG.md b/packages/create-cloudflare/CHANGELOG.md index e89ef2fe6a86..021259c13f18 100644 --- a/packages/create-cloudflare/CHANGELOG.md +++ b/packages/create-cloudflare/CHANGELOG.md @@ -1,5 +1,12 @@ # create-cloudflare +## 2.1.0 + +### Minor Changes + +- [#3604](https://github.com/cloudflare/workers-sdk/pull/3604) [`c3ff1c2b`](https://github.com/cloudflare/workers-sdk/commit/c3ff1c2b599c99f4915dad0362c7570cc2fa2bf3) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - Add the option to add the `eslint-plugin-next-on-pages` eslint plugin + to developers creating a new Next.js app with eslint enabled + ## 2.0.14 ### Patch Changes diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index 688b8984d8fe..b7c5cb1e4de9 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "create-cloudflare", - "version": "2.0.14", + "version": "2.1.0", "description": "A CLI for creating and deploying new applications to Cloudflare.", "keywords": [ "cloudflare", diff --git a/packages/pages-shared/CHANGELOG.md b/packages/pages-shared/CHANGELOG.md index ae8ec1e46e40..ac366b293639 100644 --- a/packages/pages-shared/CHANGELOG.md +++ b/packages/pages-shared/CHANGELOG.md @@ -1,5 +1,11 @@ # @cloudflare/pages-shared +## 0.8.0 + +### Minor Changes + +- [#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) + ## 0.7.0 ### Minor Changes diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index 9291a7edc556..3a76821401d3 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/pages-shared", - "version": "0.7.0", + "version": "0.8.0", "repository": { "type": "git", "url": "https://github.com/cloudflare/workers-sdk.git", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index b0e9a3d6cbba..56355efac212 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,79 @@ # wrangler +## 3.4.0 + +### Minor Changes + +- [#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' + 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. + This implementation is also fully backward compatible with the previous input method of file path to JSON. + + ```bash + # Example of piping in a file + > cat ./my-file.json | wrangler secret:bulk + + # Example of piping in a string + > echo '{"key":"value"}' | wrangler secret:bulk + + # Example of redirecting input from a file + > wrangler secret:bulk < ./my-file.json + ``` + +* [#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) + +### Patch Changes + +- [#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` + + This PR removes the need to pass a `--experimental-backend` flag when running migrations against an experimental D1 db. + + Closes #3596 + +* [#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 + +- [#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 + + This PR makes D1's experimental backend turned on by default. + +* [#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 + + This PR adds two commands under `wrangler d1 time-travel`: + + ``` + Use Time Travel to restore, fork or copy a database at a specific point-in-time. + + Commands: + + wrangler d1 time-travel info Retrieve information about a database at a specific point-in-time using Time Travel. + Options: + --timestamp accepts a Unix (seconds from epoch) or RFC3339 timestamp (e.g. 2023-07-13T08:46:42.228Z) to retrieve a bookmark for [string] + --json return output as clean JSON [boolean] [default: false] + + wrangler d1 time-travel restore Restore a database back to a specific point-in-time. + Options: + --bookmark Bookmark to use for time travel [string] + --timestamp accepts a Unix (seconds from epoch) or RFC3339 timestamp (e.g. 2023-07-13T08:46:42.228Z) to retrieve a bookmark for [string] + --json return output as clean JSON [boolean] [default: false] + ``` + + Closes #3577 + +- [#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 + +* [#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] + + `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. + + This new feature: + + - does not change the default behavior of immediately deleting no-longer needed assets. + - 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. + - is similar in concept to what was introduced in Wrangler 1.x with https://github.com/cloudflare/wrangler-legacy/pull/2221. + - 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). + - 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. + +- [#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` to `Record` + ## 3.3.0 ### Minor Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index 93789e36d77b..12d355cccf59 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "3.3.0", + "version": "3.4.0", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler",