diff --git a/.changeset/grumpy-gifts-end.md b/.changeset/grumpy-gifts-end.md deleted file mode 100644 index 046ae67185bb..000000000000 --- a/.changeset/grumpy-gifts-end.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -feat: `wrangler secret * --local` - -This PR implements `wrangler secret` for `--local` mode. The implementation is simply a no-op, since we don't want to actually write secret values to disk (I think?). I also got the messaging for remote mode right by copying from wrangler 1. Further, I added tests for all the `wrangler secret` commands. diff --git a/.changeset/poor-actors-join.md b/.changeset/poor-actors-join.md deleted file mode 100644 index 974fb0bca845..000000000000 --- a/.changeset/poor-actors-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Fixes `wrangler pages dev` failing to start for just a folder of static assets (no functions) diff --git a/.changeset/quick-colts-smash.md b/.changeset/quick-colts-smash.md deleted file mode 100644 index e7cdfd45fffa..000000000000 --- a/.changeset/quick-colts-smash.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": patch ---- - -fix: restart the `dev` proxy server whenever it closes - -When we run `wrangler dev`, the session that we setup with the preview endpoint doesn't last forever, it dies after ignoring it for 5-15 minutes or so. The fix for this is to simply reconnect the server. So we use a state hook as a sigil, and add it to the dependency array of the effect that sets up the server, and simply change it every time the server closes. - -Fixes https://github.com/cloudflare/wrangler2/issues/197 - -(In wrangler1, we used to restart the whole process, including uploading the worker again, making a new preview token, and so on. It looks like that they may not have been necessary.) diff --git a/.changeset/shaggy-suns-warn.md b/.changeset/shaggy-suns-warn.md deleted file mode 100644 index 561c3bab2bf4..000000000000 --- a/.changeset/shaggy-suns-warn.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -fix: remove `--prefer-offline` when running `npm install` - -We were using `--prefer-offline` when running `npm install` during `wrangler init`. The behaviour is odd, it doesn't seem to fetch from the remote when the cache isn't hit, which is not what I'm expecting. So we remove `--prefer-offline`. diff --git a/.changeset/ten-fireants-camp.md b/.changeset/ten-fireants-camp.md deleted file mode 100644 index f8cba3cd1120..000000000000 --- a/.changeset/ten-fireants-camp.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -fix: custom builds should allow multiple commands - -We were running custom builds as a regular command with `execa`. This would fail whenever we tried to run compound commands like `cargo install -q worker-build && worker-build --release` (via https://github.com/cloudflare/wrangler2/issues/236). The fix is to use `shell: true`, so that the command is run in a shell and can thus use bash-y syntax like `&&`, and so on. I also switched to using `execaCommand` which splits a command string into parts correctly by itself. diff --git a/.changeset/two-coins-compare.md b/.changeset/two-coins-compare.md deleted file mode 100644 index 185b43c3ab59..000000000000 --- a/.changeset/two-coins-compare.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": patch ---- - -fix: disable local persistence by default & add `--experimental-enable-local-persistence` flag - -BREAKING CHANGE: - -When running `dev` locally any data stored in KV, Durable Objects or the cache are no longer persisted between sessions by default. - -To turn this back on add the `--experimental-enable-local-persistence` at the command line. diff --git a/package-lock.json b/package-lock.json index a8020d8615cb..769bd29cfa86 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15147,7 +15147,7 @@ "license": "ISC" }, "packages/wrangler": { - "version": "0.0.13", + "version": "0.0.14", "license": "MIT OR Apache-2.0", "dependencies": { "esbuild": "0.14.1", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index e6e3fd2f41ab..cedc881cad20 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,39 @@ # wrangler +## 0.0.14 + +### Patch Changes + +- [#307](https://github.com/cloudflare/wrangler2/pull/307) [`53c6318`](https://github.com/cloudflare/wrangler2/commit/53c6318739d2d3672a2e508f643857bdf5831676) Thanks [@threepointone](https://github.com/threepointone)! - feat: `wrangler secret * --local` + + This PR implements `wrangler secret` for `--local` mode. The implementation is simply a no-op, since we don't want to actually write secret values to disk (I think?). I also got the messaging for remote mode right by copying from wrangler 1. Further, I added tests for all the `wrangler secret` commands. + +* [#324](https://github.com/cloudflare/wrangler2/pull/324) [`b816333`](https://github.com/cloudflare/wrangler2/commit/b8163336faaeae26b68736732938cceaaf4dfec4) Thanks [@GregBrimble](https://github.com/GregBrimble)! - Fixes `wrangler pages dev` failing to start for just a folder of static assets (no functions) + +- [#317](https://github.com/cloudflare/wrangler2/pull/317) [`d6ef61a`](https://github.com/cloudflare/wrangler2/commit/d6ef61abcbc9f4b3a14222d99c9f02efa564e699) Thanks [@threepointone](https://github.com/threepointone)! - fix: restart the `dev` proxy server whenever it closes + + When we run `wrangler dev`, the session that we setup with the preview endpoint doesn't last forever, it dies after ignoring it for 5-15 minutes or so. The fix for this is to simply reconnect the server. So we use a state hook as a sigil, and add it to the dependency array of the effect that sets up the server, and simply change it every time the server closes. + + Fixes https://github.com/cloudflare/wrangler2/issues/197 + + (In wrangler1, we used to restart the whole process, including uploading the worker again, making a new preview token, and so on. It looks like that they may not have been necessary.) + +* [#312](https://github.com/cloudflare/wrangler2/pull/312) [`77aa324`](https://github.com/cloudflare/wrangler2/commit/77aa3249ce07d7617582e4b0555201dac9b7578e) Thanks [@threepointone](https://github.com/threepointone)! - fix: remove `--prefer-offline` when running `npm install` + + We were using `--prefer-offline` when running `npm install` during `wrangler init`. The behaviour is odd, it doesn't seem to fetch from the remote when the cache isn't hit, which is not what I'm expecting. So we remove `--prefer-offline`. + +- [#311](https://github.com/cloudflare/wrangler2/pull/311) [`a5537f1`](https://github.com/cloudflare/wrangler2/commit/a5537f147e61b046e141e06d1864ffa62e1f2673) Thanks [@threepointone](https://github.com/threepointone)! - fix: custom builds should allow multiple commands + + We were running custom builds as a regular command with `execa`. This would fail whenever we tried to run compound commands like `cargo install -q worker-build && worker-build --release` (via https://github.com/cloudflare/wrangler2/issues/236). The fix is to use `shell: true`, so that the command is run in a shell and can thus use bash-y syntax like `&&`, and so on. I also switched to using `execaCommand` which splits a command string into parts correctly by itself. + +* [#321](https://github.com/cloudflare/wrangler2/pull/321) [`5b64a59`](https://github.com/cloudflare/wrangler2/commit/5b64a5914ece57b2a76d2101d32abda5b8c5adb8) Thanks [@geelen](https://github.com/geelen)! - fix: disable local persistence by default & add `--experimental-enable-local-persistence` flag + + BREAKING CHANGE: + + When running `dev` locally any data stored in KV, Durable Objects or the cache are no longer persisted between sessions by default. + + To turn this back on add the `--experimental-enable-local-persistence` at the command line. + ## 0.0.13 ### Patch Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index 92aa9758f807..27e74efe5314 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "0.0.13", + "version": "0.0.14", "author": "wrangler@cloudflare.com", "description": "Command-line interface for all things Cloudflare Workers", "bin": {