diff --git a/.changeset/brave-pens-march.md b/.changeset/brave-pens-march.md deleted file mode 100644 index a5e17201fe09..000000000000 --- a/.changeset/brave-pens-march.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -polish: tweak the message when `.dev.vars` is used - -This tweaks the mssage when a `.dev.vars` file is used so that it doesn't imply that the user has to copy the values from it into their `wrangler.toml`. diff --git a/.changeset/bright-olives-wonder.md b/.changeset/bright-olives-wonder.md deleted file mode 100644 index 98a1afdc97d2..000000000000 --- a/.changeset/bright-olives-wonder.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -fix: Stop unnecessarily amalgamating duplicate headers in Pages Functions - -Previously, `set-cookie` multiple headers would be combined because of unexpected behavior in [the spec](https://github.com/whatwg/fetch/pull/1346). diff --git a/.changeset/curly-experts-end.md b/.changeset/curly-experts-end.md deleted file mode 100644 index ca3f307a9188..000000000000 --- a/.changeset/curly-experts-end.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -fix: Adds the leading slash to Pages deployment manifests that the API expects, and fixes manifest generation on Windows machines. diff --git a/.changeset/eighty-yaks-jump.md b/.changeset/eighty-yaks-jump.md deleted file mode 100644 index 4a06c8de5fe0..000000000000 --- a/.changeset/eighty-yaks-jump.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"wrangler": patch ---- - -feat: non-TTY check for required variables -Added a check in non-TTY environments for `account_id`, `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_API_TOKEN`. If `account_id` exists in `wrangler.toml` -then `CLOUDFLARE_ACCOUNT_ID` is not needed in non-TTY scope. The `CLOUDFLARE_API_TOKEN` is necessary in non-TTY scope and will always error if missing. - -resolves #827 diff --git a/.changeset/itchy-windows-attack.md b/.changeset/itchy-windows-attack.md deleted file mode 100644 index 00ae6586af2b..000000000000 --- a/.changeset/itchy-windows-attack.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"wrangler": patch ---- - -fix: remove bold font from additional lines of warnings and errors - -Previously, when a warning or error was logged, the entire message -was formatted in bold font. This change makes only the first line of -the message bold, and the rest is formatted with a normal font. diff --git a/.changeset/little-colts-ring.md b/.changeset/little-colts-ring.md deleted file mode 100644 index 1f59d3c444bc..000000000000 --- a/.changeset/little-colts-ring.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -polish: s/DO NOT USE THIS/ Ignored - -Followup to https://github.com/cloudflare/wrangler2/pull/888, this replaces some more scary capitals with a more chill word. diff --git a/.changeset/ninety-ducks-glow.md b/.changeset/ninety-ducks-glow.md deleted file mode 100644 index 9944ddfa00d8..000000000000 --- a/.changeset/ninety-ducks-glow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -fix: add bold to the `Deprecated` warning title diff --git a/.changeset/spotty-waves-think.md b/.changeset/spotty-waves-think.md deleted file mode 100644 index 79846adb692c..000000000000 --- a/.changeset/spotty-waves-think.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": patch ---- - -feat: add support for reading build time env variables from a `.env` file - -This change will automatically load up a `.env` file, if found, and apply its -values to the current environment. An example would be to provide a specific -CLOUDFLARE_ACCOUNT_ID value. - -Related to cloudflare#190 diff --git a/.changeset/tasty-pets-divide.md b/.changeset/tasty-pets-divide.md deleted file mode 100644 index 1fe435acb182..000000000000 --- a/.changeset/tasty-pets-divide.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -polish: accept Enter as a valid key in confirm dialogs - -Instead of logging "Unrecognised input" when hitting return/enter in a confirm dialog, we should accept it as a confirmation. This patch also makes the default choice "y" bold in the dialog. diff --git a/.changeset/ten-rules-destroy.md b/.changeset/ten-rules-destroy.md deleted file mode 100644 index 33564ba4ac9e..000000000000 --- a/.changeset/ten-rules-destroy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -feat: Adds interactive prompts for the 'wrangler pages publish' and related commands. - -Additionally, those commands now read from `node_modules/.cache/wrangler/pages.json` to persist users' account IDs and project names. diff --git a/.changeset/tiny-beds-hope.md b/.changeset/tiny-beds-hope.md deleted file mode 100644 index 9f6539052ffa..000000000000 --- a/.changeset/tiny-beds-hope.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -polish: s/DEPRECATION/Deprecation - -This removes the scary uppercase from DEPRECATION warnings. It also moves the service environment usage warning into `diagnostics` instead of logging it directly. diff --git a/.changeset/wild-donkeys-shake.md b/.changeset/wild-donkeys-shake.md deleted file mode 100644 index 8641ac148af3..000000000000 --- a/.changeset/wild-donkeys-shake.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"wrangler": patch ---- - -feat: read `vars` overrides from a local file for `wrangler dev` - -The `vars` bindings can be specified in the `wrangler.toml` configuration file. -But "secret" `vars` are usually only provided at the server - -either by creating them in the Dashboard UI, or using the `wrangler secret` command. - -It is useful during development, to provide these types of variable locally. -When running `wrangler dev` we will look for a file called `.dev.vars`, situated -next to the `wrangler.toml` file (or in the current working directory if there is no -`wrangler.toml`). Any values in this file, formatted like a `dotenv` file, will add to -or override `vars` bindings provided in the `wrangler.toml`. - -Related to #190 diff --git a/package-lock.json b/package-lock.json index 597c628ea673..2bd413a5bc66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20592,7 +20592,7 @@ "license": "ISC" }, "packages/jest-environment-wrangler": { - "version": "0.0.28", + "version": "0.0.29", "license": "ISC", "dependencies": { "jest-environment-miniflare": "2.4.0" @@ -20609,7 +20609,7 @@ } }, "packages/wrangler": { - "version": "0.0.28", + "version": "0.0.29", "license": "MIT OR Apache-2.0", "dependencies": { "@esbuild-plugins/node-globals-polyfill": "^0.1.1", diff --git a/packages/jest-environment-wrangler/CHANGELOG.md b/packages/jest-environment-wrangler/CHANGELOG.md index dcc7ba240867..398c8946ad46 100644 --- a/packages/jest-environment-wrangler/CHANGELOG.md +++ b/packages/jest-environment-wrangler/CHANGELOG.md @@ -1,5 +1,7 @@ # jest-environment-wrangler +## 0.0.29 + ## 0.0.28 ## 0.0.27 diff --git a/packages/jest-environment-wrangler/package.json b/packages/jest-environment-wrangler/package.json index 20c3abaf76c4..a1663cc6c7a8 100644 --- a/packages/jest-environment-wrangler/package.json +++ b/packages/jest-environment-wrangler/package.json @@ -1,6 +1,6 @@ { "name": "jest-environment-wrangler", - "version": "0.0.28", + "version": "0.0.29", "description": "A jest environment for Cloudflare Workers, powered by wrangler.", "main": "dist/index.js", "scripts": { diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index 83395b52865d..edbcdb00955b 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,71 @@ # wrangler +## 0.0.29 + +### Patch Changes + +- [#897](https://github.com/cloudflare/wrangler2/pull/897) [`d0801b7`](https://github.com/cloudflare/wrangler2/commit/d0801b77c3d10526041e1962679b2fd2283a8ac4) Thanks [@threepointone](https://github.com/threepointone)! - polish: tweak the message when `.dev.vars` is used + + This tweaks the mssage when a `.dev.vars` file is used so that it doesn't imply that the user has to copy the values from it into their `wrangler.toml`. + +* [#880](https://github.com/cloudflare/wrangler2/pull/880) [`aad1418`](https://github.com/cloudflare/wrangler2/commit/aad1418a388edddc2096c20b48fb37cdff7c51ff) Thanks [@GregBrimble](https://github.com/GregBrimble)! - fix: Stop unnecessarily amalgamating duplicate headers in Pages Functions + + Previously, `set-cookie` multiple headers would be combined because of unexpected behavior in [the spec](https://github.com/whatwg/fetch/pull/1346). + +- [#892](https://github.com/cloudflare/wrangler2/pull/892) [`b08676a`](https://github.com/cloudflare/wrangler2/commit/b08676a64df933eeb38439a6e7a5094b4d3c34f7) Thanks [@GregBrimble](https://github.com/GregBrimble)! - fix: Adds the leading slash to Pages deployment manifests that the API expects, and fixes manifest generation on Windows machines. + +* [#852](https://github.com/cloudflare/wrangler2/pull/852) [`6283ad5`](https://github.com/cloudflare/wrangler2/commit/6283ad54bf77547b6fbb49cababb996bccadfd6e) Thanks [@JacobMGEvans](https://github.com/JacobMGEvans)! - feat: non-TTY check for required variables + Added a check in non-TTY environments for `account_id`, `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_API_TOKEN`. If `account_id` exists in `wrangler.toml` + then `CLOUDFLARE_ACCOUNT_ID` is not needed in non-TTY scope. The `CLOUDFLARE_API_TOKEN` is necessary in non-TTY scope and will always error if missing. + + resolves #827 + +- [#893](https://github.com/cloudflare/wrangler2/pull/893) [`5bf17ca`](https://github.com/cloudflare/wrangler2/commit/5bf17ca81fd9627f4f7486607b1283aab2da30fe) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - fix: remove bold font from additional lines of warnings and errors + + Previously, when a warning or error was logged, the entire message + was formatted in bold font. This change makes only the first line of + the message bold, and the rest is formatted with a normal font. + +* [#894](https://github.com/cloudflare/wrangler2/pull/894) [`57c1354`](https://github.com/cloudflare/wrangler2/commit/57c1354f92a9f4bf400120d5c607a5838febca76) Thanks [@threepointone](https://github.com/threepointone)! - polish: s/DO NOT USE THIS/ Ignored + + Followup to https://github.com/cloudflare/wrangler2/pull/888, this replaces some more scary capitals with a more chill word. + +- [#893](https://github.com/cloudflare/wrangler2/pull/893) [`5bf17ca`](https://github.com/cloudflare/wrangler2/commit/5bf17ca81fd9627f4f7486607b1283aab2da30fe) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - fix: add bold to the `Deprecated` warning title + +* [#882](https://github.com/cloudflare/wrangler2/pull/882) [`1ad7570`](https://github.com/cloudflare/wrangler2/commit/1ad757026814cebab67910a136d7be5c95c7bae6) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - feat: add support for reading build time env variables from a `.env` file + + This change will automatically load up a `.env` file, if found, and apply its + values to the current environment. An example would be to provide a specific + CLOUDFLARE_ACCOUNT_ID value. + + Related to cloudflare#190 + +- [#887](https://github.com/cloudflare/wrangler2/pull/887) [`2bb4d30`](https://github.com/cloudflare/wrangler2/commit/2bb4d30e0c50ec1c3d9d821c768fc711e8be4ca9) Thanks [@threepointone](https://github.com/threepointone)! - polish: accept Enter as a valid key in confirm dialogs + + Instead of logging "Unrecognised input" when hitting return/enter in a confirm dialog, we should accept it as a confirmation. This patch also makes the default choice "y" bold in the dialog. + +* [#891](https://github.com/cloudflare/wrangler2/pull/891) [`bae5ba4`](https://github.com/cloudflare/wrangler2/commit/bae5ba451811f7ec37f7355463aab9163b4299f8) Thanks [@GregBrimble](https://github.com/GregBrimble)! - feat: Adds interactive prompts for the 'wrangler pages publish' and related commands. + + Additionally, those commands now read from `node_modules/.cache/wrangler/pages.json` to persist users' account IDs and project names. + +- [#888](https://github.com/cloudflare/wrangler2/pull/888) [`b77aa38`](https://github.com/cloudflare/wrangler2/commit/b77aa38e01d743d05f3f6e79a5786fb46bbdafc4) Thanks [@threepointone](https://github.com/threepointone)! - polish: s/DEPRECATION/Deprecation + + This removes the scary uppercase from DEPRECATION warnings. It also moves the service environment usage warning into `diagnostics` instead of logging it directly. + +* [#879](https://github.com/cloudflare/wrangler2/pull/879) [`f694313`](https://github.com/cloudflare/wrangler2/commit/f6943132a04f17af68e2070756d1ec2aa2bdf0be) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - feat: read `vars` overrides from a local file for `wrangler dev` + + The `vars` bindings can be specified in the `wrangler.toml` configuration file. + But "secret" `vars` are usually only provided at the server - + either by creating them in the Dashboard UI, or using the `wrangler secret` command. + + It is useful during development, to provide these types of variable locally. + When running `wrangler dev` we will look for a file called `.dev.vars`, situated + next to the `wrangler.toml` file (or in the current working directory if there is no + `wrangler.toml`). Any values in this file, formatted like a `dotenv` file, will add to + or override `vars` bindings provided in the `wrangler.toml`. + + Related to #190 + ## 0.0.28 ### Patch Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index 01f272f17adc..a3e4dbd37dc5 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "0.0.28", + "version": "0.0.29", "author": "wrangler@cloudflare.com", "description": "Command-line interface for all things Cloudflare Workers", "bin": {