diff --git a/.changeset/bright-boxes-admire.md b/.changeset/bright-boxes-admire.md deleted file mode 100644 index ecf2d01516dd..000000000000 --- a/.changeset/bright-boxes-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": minor ---- - -Callout `--minify` when script size is too large diff --git a/.changeset/c3-frameworks-update-4243.md b/.changeset/c3-frameworks-update-4243.md deleted file mode 100644 index 43296186e93d..000000000000 --- a/.changeset/c3-frameworks-update-4243.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-vue` from `3.7.5` to `3.8.0` diff --git a/.changeset/c3-frameworks-update-4244.md b/.changeset/c3-frameworks-update-4244.md deleted file mode 100644 index 8c74f80b5588..000000000000 --- a/.changeset/c3-frameworks-update-4244.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-qwik` from `1.2.13` to `1.2.14` diff --git a/.changeset/c3-frameworks-update-4246.md b/.changeset/c3-frameworks-update-4246.md deleted file mode 100644 index 684eca600e2d..000000000000 --- a/.changeset/c3-frameworks-update-4246.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `gatsby` from `5.12.7` to `5.12.8` diff --git a/.changeset/c3-frameworks-update-4259.md b/.changeset/c3-frameworks-update-4259.md deleted file mode 100644 index 59fc56714d8d..000000000000 --- a/.changeset/c3-frameworks-update-4259.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-hono` from `0.3.1` to `0.3.2` diff --git a/.changeset/c3-frameworks-update-4268.md b/.changeset/c3-frameworks-update-4268.md deleted file mode 100644 index 1f0be5d70c8c..000000000000 --- a/.changeset/c3-frameworks-update-4268.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -C3: Bumped `create-solid` from `0.3.7` to `0.3.8` diff --git a/.changeset/cold-parrots-deliver.md b/.changeset/cold-parrots-deliver.md deleted file mode 100644 index fe9279aeef2f..000000000000 --- a/.changeset/cold-parrots-deliver.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"create-cloudflare": patch -"wrangler": patch ---- - -fix various logging of shell commands to correctly quote args when needed diff --git a/.changeset/five-suits-rest.md b/.changeset/five-suits-rest.md deleted file mode 100644 index cae677642a42..000000000000 --- a/.changeset/five-suits-rest.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"wrangler": minor ---- - -fix: suppress compatibility date fallback warnings if no `wrangler` update is available - -If a compatibility date greater than the installed version of `workerd` was -configured, a warning would be logged. This warning was only actionable if a new -version of `wrangler` was available. The intent here was to warn if a user set -a new compatibility date, but forgot to update `wrangler` meaning changes -enabled by the new date wouldn't take effect. This change hides the warning if -no update is available. - -It also changes the default compatibility date for `wrangler dev` sessions -without a configured compatibility date to the installed version of `workerd`. -This previously defaulted to the current date, which may have been unsupported -by the installed runtime. diff --git a/.changeset/good-beers-design.md b/.changeset/good-beers-design.md deleted file mode 100644 index 8b9b552803b8..000000000000 --- a/.changeset/good-beers-design.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"wrangler": patch ---- - -chore: bump `miniflare` to [`3.20231025.0`](https://github.com/cloudflare/miniflare/releases/tag/v3.20231025.0) - -This change enables Node-like `console.log()`ing in local mode. Objects with -lots of properties, and instances of internal classes like `Request`, `Headers`, -`ReadableStream`, etc will now be logged with much more detail. diff --git a/.changeset/honest-tips-tie.md b/.changeset/honest-tips-tie.md deleted file mode 100644 index 0c93f980e8ad..000000000000 --- a/.changeset/honest-tips-tie.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -"wrangler": patch ---- - -fix: store temporary files in `.wrangler` - -As Wrangler builds your code, it writes intermediate files to a temporary -directory that gets cleaned up on exit. Previously, Wrangler used the OS's -default temporary directory. On Windows, this is usually on the `C:` drive. -If your source code was on a different drive, our bundling tool would generate -invalid source maps, breaking breakpoint debugging. This change ensures -intermediate files are always written to the same drive as sources. It also -ensures unused build outputs are cleaned up when running `wrangler pages dev`. - -This change also means you no longer need to set `cwd` and -`resolveSourceMapLocations` in `.vscode/launch.json` when creating an `attach` -configuration for breakpoint debugging. Your `.vscode/launch.json` should now -look something like... - -```jsonc -{ - "configurations": [ - { - "name": "Wrangler", - "type": "node", - "request": "attach", - "port": 9229, - // These can be omitted, but doing so causes silent errors in the runtime - "attachExistingChildren": false, - "autoAttachChildProcesses": false - } - ] -} -``` diff --git a/.changeset/itchy-ducks-listen.md b/.changeset/itchy-ducks-listen.md deleted file mode 100644 index 9bbcec93fc1f..000000000000 --- a/.changeset/itchy-ducks-listen.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cloudflare/cli": major -"create-cloudflare": patch -"wrangler": patch ---- - -Move helper cli files of C3 into @cloudflare/cli and make Wrangler and C3 depend on it diff --git a/.changeset/long-starfishes-mate.md b/.changeset/long-starfishes-mate.md deleted file mode 100644 index 712bf11bf8b8..000000000000 --- a/.changeset/long-starfishes-mate.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"wrangler": minor ---- - -feat: resolve npm exports for file imports - -Previously, when using wasm (or other static files) from an npm package, you would have to import the file like so: - -```js -import wasm from "../../node_modules/svg2png-wasm/svg2png_wasm_bg.wasm"; -``` - -This update now allows you to import the file like so, assuming it's exposed and available in the package's `exports` field: - -```js -import wasm from "svg2png-wasm/svg2png_wasm_bg.wasm"; -``` - -This will look at the package's `exports` field in `package.json` and resolve the file using [`resolve.exports`](https://www.npmjs.com/package/resolve.exports). diff --git a/.changeset/rich-schools-fry.md b/.changeset/rich-schools-fry.md deleted file mode 100644 index 4d9c81a4243c..000000000000 --- a/.changeset/rich-schools-fry.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": minor ---- - -fix: use `zone_name` to determine a zone when the pattern is a custom hostname - -In Cloudflare for SaaS, custom hostnames of third party domain owners can be used in Cloudflare. -Workers are allowed to intercept these requests based on the routes configuration. -Before this change, the same logic used by `wrangler dev` was used in `wrangler deploy`, which caused wrangler to fail with: - -✘ [ERROR] Could not find zone for [partner-saas-domain.com] diff --git a/.changeset/serious-beans-trade.md b/.changeset/serious-beans-trade.md deleted file mode 100644 index 92dc545e9524..000000000000 --- a/.changeset/serious-beans-trade.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": patch ---- - -fix: ensure `console.log()`s during startup are displayed - -Previously, `console.log()` calls before the Workers runtime was ready to -receive requests wouldn't be shown. This meant any logs in the global scope -likely weren't visible. This change ensures startup logs are shown. In particular, -this should [fix Remix's HMR](https://github.com/remix-run/remix/issues/7616), -which relies on startup logs to know when the Worker is ready. diff --git a/.changeset/tasty-teachers-lick.md b/.changeset/tasty-teachers-lick.md deleted file mode 100644 index 06d478c33886..000000000000 --- a/.changeset/tasty-teachers-lick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -fix the generation of invalid/incorrect scripts for Next.js applications diff --git a/.changeset/three-doors-tickle.md b/.changeset/three-doors-tickle.md deleted file mode 100644 index 1814d78c5850..000000000000 --- a/.changeset/three-doors-tickle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/cli": patch ---- - -change backgrounds of statuses from red to more appropriate ones diff --git a/.changeset/tiny-icons-breathe.md b/.changeset/tiny-icons-breathe.md deleted file mode 100644 index 364638e20d80..000000000000 --- a/.changeset/tiny-icons-breathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": minor ---- - -When uploading additional modules with your worker, Wrangler will now report the (uncompressed) size of each individual module, as well as the aggregate size of your Worker diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md new file mode 100644 index 000000000000..b21fc658f46a --- /dev/null +++ b/packages/cli/CHANGELOG.md @@ -0,0 +1,11 @@ +# @cloudflare/cli + +## 1.0.0 + +### Major Changes + +- [#4189](https://github.com/cloudflare/workers-sdk/pull/4189) [`05798038`](https://github.com/cloudflare/workers-sdk/commit/05798038c85a83afb2c0e8ea9533c31a6fbe3e91) Thanks [@gabivlj](https://github.com/gabivlj)! - Move helper cli files of C3 into @cloudflare/cli and make Wrangler and C3 depend on it + +### Patch Changes + +- [#4271](https://github.com/cloudflare/workers-sdk/pull/4271) [`70016b2b`](https://github.com/cloudflare/workers-sdk/commit/70016b2bb514ea95f1ce0db3582e194c31df4c14) Thanks [@gabivlj](https://github.com/gabivlj)! - change backgrounds of statuses from red to more appropriate ones diff --git a/packages/cli/package.json b/packages/cli/package.json index 2531bae63f89..8283468a69eb 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/cli", - "version": "0.1.0", + "version": "1.0.0", "description": "An SDK to build workers-sdk CLIs", "private": true, "keywords": [ diff --git a/packages/create-cloudflare/CHANGELOG.md b/packages/create-cloudflare/CHANGELOG.md index bea46e091083..6da531265eb9 100644 --- a/packages/create-cloudflare/CHANGELOG.md +++ b/packages/create-cloudflare/CHANGELOG.md @@ -1,5 +1,25 @@ # create-cloudflare +## 2.6.2 + +### Patch Changes + +- [#4243](https://github.com/cloudflare/workers-sdk/pull/4243) [`bfb66aa0`](https://github.com/cloudflare/workers-sdk/commit/bfb66aa06c4075bb3f12ba702a555f51653a5199) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-vue` from `3.7.5` to `3.8.0` + +* [#4244](https://github.com/cloudflare/workers-sdk/pull/4244) [`5c81d34d`](https://github.com/cloudflare/workers-sdk/commit/5c81d34d01454e129ca6587b6b99d6ea4ec9c870) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-qwik` from `1.2.13` to `1.2.14` + +- [#4246](https://github.com/cloudflare/workers-sdk/pull/4246) [`67c4c2c0`](https://github.com/cloudflare/workers-sdk/commit/67c4c2c0f581047fece5401d5ccfff5f2476412e) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `gatsby` from `5.12.7` to `5.12.8` + +* [#4259](https://github.com/cloudflare/workers-sdk/pull/4259) [`b5e62b93`](https://github.com/cloudflare/workers-sdk/commit/b5e62b931ad6671e4dce9444a279bb3ec8f63991) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-hono` from `0.3.1` to `0.3.2` + +- [#4268](https://github.com/cloudflare/workers-sdk/pull/4268) [`77820a22`](https://github.com/cloudflare/workers-sdk/commit/77820a22ce8c41870877387ff4012fa24a14fad8) Thanks [@dependabot](https://github.com/apps/dependabot)! - C3: Bumped `create-solid` from `0.3.7` to `0.3.8` + +* [#4215](https://github.com/cloudflare/workers-sdk/pull/4215) [`950bc401`](https://github.com/cloudflare/workers-sdk/commit/950bc4015fa408bfcd4fbf771cf1c3a062783d96) Thanks [@RamIdeas](https://github.com/RamIdeas)! - fix various logging of shell commands to correctly quote args when needed + +- [#4189](https://github.com/cloudflare/workers-sdk/pull/4189) [`05798038`](https://github.com/cloudflare/workers-sdk/commit/05798038c85a83afb2c0e8ea9533c31a6fbe3e91) Thanks [@gabivlj](https://github.com/gabivlj)! - Move helper cli files of C3 into @cloudflare/cli and make Wrangler and C3 depend on it + +* [#4200](https://github.com/cloudflare/workers-sdk/pull/4200) [`773e2a8c`](https://github.com/cloudflare/workers-sdk/commit/773e2a8cc07a6ff55a5a12edd103751eafcc9468) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - fix the generation of invalid/incorrect scripts for Next.js applications + ## 2.6.1 ### Patch Changes diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index bf21a7f18cb5..17bd1134e3c2 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "create-cloudflare", - "version": "2.6.1", + "version": "2.6.2", "description": "A CLI for creating and deploying new applications to Cloudflare.", "keywords": [ "cloudflare", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index 2558143d8b5a..db8257235a4c 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,102 @@ # wrangler +## 3.15.0 + +### Minor Changes + +- [#4201](https://github.com/cloudflare/workers-sdk/pull/4201) [`0cac2c46`](https://github.com/cloudflare/workers-sdk/commit/0cac2c4681852709883ea91f5b73c5af1f70088a) Thanks [@penalosa](https://github.com/penalosa)! - Callout `--minify` when script size is too large + +* [#4209](https://github.com/cloudflare/workers-sdk/pull/4209) [`24d1c5cf`](https://github.com/cloudflare/workers-sdk/commit/24d1c5cf3b810e780df865a0f76f1c3ae8ed5fbe) Thanks [@mrbbot](https://github.com/mrbbot)! - fix: suppress compatibility date fallback warnings if no `wrangler` update is available + + If a compatibility date greater than the installed version of `workerd` was + configured, a warning would be logged. This warning was only actionable if a new + version of `wrangler` was available. The intent here was to warn if a user set + a new compatibility date, but forgot to update `wrangler` meaning changes + enabled by the new date wouldn't take effect. This change hides the warning if + no update is available. + + It also changes the default compatibility date for `wrangler dev` sessions + without a configured compatibility date to the installed version of `workerd`. + This previously defaulted to the current date, which may have been unsupported + by the installed runtime. + +- [#4135](https://github.com/cloudflare/workers-sdk/pull/4135) [`53218261`](https://github.com/cloudflare/workers-sdk/commit/532182610087dffda04cc2091baeceb96e7fdb26) Thanks [@Cherry](https://github.com/Cherry)! - feat: resolve npm exports for file imports + + Previously, when using wasm (or other static files) from an npm package, you would have to import the file like so: + + ```js + import wasm from "../../node_modules/svg2png-wasm/svg2png_wasm_bg.wasm"; + ``` + + This update now allows you to import the file like so, assuming it's exposed and available in the package's `exports` field: + + ```js + import wasm from "svg2png-wasm/svg2png_wasm_bg.wasm"; + ``` + + This will look at the package's `exports` field in `package.json` and resolve the file using [`resolve.exports`](https://www.npmjs.com/package/resolve.exports). + +* [#4232](https://github.com/cloudflare/workers-sdk/pull/4232) [`69b43030`](https://github.com/cloudflare/workers-sdk/commit/69b43030b99a21a3e4cad5285aa8253ebee8a392) Thanks [@romeupalos](https://github.com/romeupalos)! - fix: use `zone_name` to determine a zone when the pattern is a custom hostname + + In Cloudflare for SaaS, custom hostnames of third party domain owners can be used in Cloudflare. + Workers are allowed to intercept these requests based on the routes configuration. + Before this change, the same logic used by `wrangler dev` was used in `wrangler deploy`, which caused wrangler to fail with: + + ✘ [ERROR] Could not find zone for [partner-saas-domain.com] + +- [#4198](https://github.com/cloudflare/workers-sdk/pull/4198) [`b404ab70`](https://github.com/cloudflare/workers-sdk/commit/b404ab707b324685235b522ee66bd6e8351f62be) Thanks [@penalosa](https://github.com/penalosa)! - When uploading additional modules with your worker, Wrangler will now report the (uncompressed) size of each individual module, as well as the aggregate size of your Worker + +### Patch Changes + +- [#4215](https://github.com/cloudflare/workers-sdk/pull/4215) [`950bc401`](https://github.com/cloudflare/workers-sdk/commit/950bc4015fa408bfcd4fbf771cf1c3a062783d96) Thanks [@RamIdeas](https://github.com/RamIdeas)! - fix various logging of shell commands to correctly quote args when needed + +* [#4274](https://github.com/cloudflare/workers-sdk/pull/4274) [`be0c6283`](https://github.com/cloudflare/workers-sdk/commit/be0c62834af0692785785cec8a0d7bc9dcfaa61a) Thanks [@jspspike](https://github.com/jspspike)! - chore: bump `miniflare` to [`3.20231025.0`](https://github.com/cloudflare/miniflare/releases/tag/v3.20231025.0) + + This change enables Node-like `console.log()`ing in local mode. Objects with + lots of properties, and instances of internal classes like `Request`, `Headers`, + `ReadableStream`, etc will now be logged with much more detail. + +- [#4127](https://github.com/cloudflare/workers-sdk/pull/4127) [`3d55f965`](https://github.com/cloudflare/workers-sdk/commit/3d55f9656ddb28c7cbe1c03a9409be7af30d6f7d) Thanks [@mrbbot](https://github.com/mrbbot)! - fix: store temporary files in `.wrangler` + + As Wrangler builds your code, it writes intermediate files to a temporary + directory that gets cleaned up on exit. Previously, Wrangler used the OS's + default temporary directory. On Windows, this is usually on the `C:` drive. + If your source code was on a different drive, our bundling tool would generate + invalid source maps, breaking breakpoint debugging. This change ensures + intermediate files are always written to the same drive as sources. It also + ensures unused build outputs are cleaned up when running `wrangler pages dev`. + + This change also means you no longer need to set `cwd` and + `resolveSourceMapLocations` in `.vscode/launch.json` when creating an `attach` + configuration for breakpoint debugging. Your `.vscode/launch.json` should now + look something like... + + ```jsonc + { + "configurations": [ + { + "name": "Wrangler", + "type": "node", + "request": "attach", + "port": 9229, + // These can be omitted, but doing so causes silent errors in the runtime + "attachExistingChildren": false, + "autoAttachChildProcesses": false + } + ] + } + ``` + +* [#4189](https://github.com/cloudflare/workers-sdk/pull/4189) [`05798038`](https://github.com/cloudflare/workers-sdk/commit/05798038c85a83afb2c0e8ea9533c31a6fbe3e91) Thanks [@gabivlj](https://github.com/gabivlj)! - Move helper cli files of C3 into @cloudflare/cli and make Wrangler and C3 depend on it + +- [#4235](https://github.com/cloudflare/workers-sdk/pull/4235) [`46cd2df5`](https://github.com/cloudflare/workers-sdk/commit/46cd2df5745ef90f4d9577504f203d2753ca56e9) Thanks [@mrbbot](https://github.com/mrbbot)! - fix: ensure `console.log()`s during startup are displayed + + Previously, `console.log()` calls before the Workers runtime was ready to + receive requests wouldn't be shown. This meant any logs in the global scope + likely weren't visible. This change ensures startup logs are shown. In particular, + this should [fix Remix's HMR](https://github.com/remix-run/remix/issues/7616), + which relies on startup logs to know when the Worker is ready. + ## 3.14.0 ### Minor Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index f6c2101e43c0..6b90ad55ffbd 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "3.14.0", + "version": "3.15.0", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler",