diff --git a/.changeset/dependabot-update-5682.md b/.changeset/dependabot-update-5682.md deleted file mode 100644 index cec4de03544c..000000000000 --- a/.changeset/dependabot-update-5682.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"miniflare": patch ---- - -chore: update dependencies of "miniflare" package - -The following dependency versions have been updated: - -| Dependency | From | To | -| ------------------------- | ------------- | ------------- | -| workerd | 1.20240405.0 | 1.20240419.0 | -| @cloudflare/workers-types | ^4.20240405.0 | ^4.20240419.0 | diff --git a/.changeset/flat-clouds-punch.md b/.changeset/flat-clouds-punch.md deleted file mode 100644 index 5aad494ea1f6..000000000000 --- a/.changeset/flat-clouds-punch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -Mark `ts-json-schema-generator` as a dev dependency diff --git a/.changeset/gorgeous-taxis-argue.md b/.changeset/gorgeous-taxis-argue.md deleted file mode 100644 index 602fb90288ad..000000000000 --- a/.changeset/gorgeous-taxis-argue.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": patch ---- - -fix: fix `wrangler d1 migrations apply` to allow migrations that don't end in a semicolon - -Prior to this PR, migrations such as: `SELECT 1` would fail with a nonsensical error about INSERTS: `✘ [ERROR] near "INSERT": syntax error at offset 199 [code: 7500]` - -What was happening was that wrangler was injecting a statement at the end of the migration, to update the migrations table saying the query successfully executed. - -To avoid this, this PR moves the statement to the start of the migration. diff --git a/.changeset/loud-buckets-prove.md b/.changeset/loud-buckets-prove.md deleted file mode 100644 index ba335cc3a135..000000000000 --- a/.changeset/loud-buckets-prove.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"create-cloudflare": minor ---- - -feat: Improvements to `hono` template. - -The `hono` template has been updated as follows: - -- Bumps `create-hono` to `0.7.0` -- Automatically installs dependencies and specifies the detected package manager to avoid interactive prompts -- Adds a `wrangler.toml` file with commented out examples of all available bindings to match other templates. -- Adds a `cf-typegen` package script to automatically regenerate types for `Bindings` from `wrangler.toml` diff --git a/.changeset/new-dolphins-dress.md b/.changeset/new-dolphins-dress.md deleted file mode 100644 index 32fcf7bba786..000000000000 --- a/.changeset/new-dolphins-dress.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"wrangler": minor ---- - -fix: Fix Pages config validation around Durable Objects - -Today Pages cannot deploy Durable Objects itself. For this reason it is mandatory that when declaring Durable Objects bindings in the config file, the `script_name` is specified. We are currently not failing validation if -`script_name` is not specified but we should. These changes fix that. diff --git a/.changeset/odd-guests-beam.md b/.changeset/odd-guests-beam.md deleted file mode 100644 index 470b55fd6dc7..000000000000 --- a/.changeset/odd-guests-beam.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": patch ---- - -fix: fix broken Durable Object local proxying (when no `cf` property is present) - -A regression was introduced in wrangler 3.46.0 (https://github.com/cloudflare/workers-sdk/pull/5215) -which made it so that missing `Request#cf` properties are serialized as `"undefined"`, this in turn -throws a syntax parse error when such values are parsed via `JSON.parse` breaking the communication -with Durable Object local proxies. Fix such issue by serializing missing `Request#cf` properties as -`"{}"` instead. diff --git a/.changeset/quick-cheetahs-attack.md b/.changeset/quick-cheetahs-attack.md deleted file mode 100644 index 9271f90dd55a..000000000000 --- a/.changeset/quick-cheetahs-attack.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -fix: make sure that using the current directory doesn't generate an `undefined undefined` log in the output summary. diff --git a/.changeset/rare-papayas-divide.md b/.changeset/rare-papayas-divide.md deleted file mode 100644 index 73696541addf..000000000000 --- a/.changeset/rare-papayas-divide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wrangler": patch ---- - -fix: broken link to durable object migrations docs diff --git a/.changeset/serious-socks-grab.md b/.changeset/serious-socks-grab.md deleted file mode 100644 index 3d31a3f0996a..000000000000 --- a/.changeset/serious-socks-grab.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": minor ---- - -feat: change Durable Objects "Hello, World!" template to use RPC methods diff --git a/.changeset/wise-beds-buy.md b/.changeset/wise-beds-buy.md deleted file mode 100644 index 8fcfd5a854d1..000000000000 --- a/.changeset/wise-beds-buy.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"create-cloudflare": patch -"format-errors": patch -"@cloudflare/kv-asset-handler": patch -"miniflare": patch -"workers-playground": patch -"wrangler": patch ---- - -docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred. diff --git a/.changeset/wise-meals-enjoy.md b/.changeset/wise-meals-enjoy.md deleted file mode 100644 index 786a4a5a39fc..000000000000 --- a/.changeset/wise-meals-enjoy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-cloudflare": patch ---- - -docs: Add Smart Placement example to `wrangler.toml` of templates. diff --git a/fixtures/sites-app/CHANGELOG.md b/fixtures/sites-app/CHANGELOG.md new file mode 100644 index 000000000000..478b32105856 --- /dev/null +++ b/fixtures/sites-app/CHANGELOG.md @@ -0,0 +1,8 @@ +# sites-app + +## null + +### Patch Changes + +- Updated dependencies [[`1b7739e`](https://github.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb)]: + - @cloudflare/kv-asset-handler@0.3.2 diff --git a/fixtures/sites-app/package.json b/fixtures/sites-app/package.json index 74c4fff80f16..6e87de1c8158 100644 --- a/fixtures/sites-app/package.json +++ b/fixtures/sites-app/package.json @@ -8,5 +8,6 @@ "main": "index.js", "dependencies": { "@cloudflare/kv-asset-handler": "workspace:*" - } + }, + "version": null } diff --git a/packages/create-cloudflare/CHANGELOG.md b/packages/create-cloudflare/CHANGELOG.md index b1a6727bd140..d2b449b9ccfb 100644 --- a/packages/create-cloudflare/CHANGELOG.md +++ b/packages/create-cloudflare/CHANGELOG.md @@ -1,5 +1,28 @@ # create-cloudflare +## 2.21.0 + +### Minor Changes + +- [#5675](https://github.com/cloudflare/workers-sdk/pull/5675) [`235c439`](https://github.com/cloudflare/workers-sdk/commit/235c4398268322b6c0c13060bc3da91f52b4b066) Thanks [@jculvey](https://github.com/jculvey)! - feat: Improvements to `hono` template. + + The `hono` template has been updated as follows: + + - Bumps `create-hono` to `0.7.0` + - Automatically installs dependencies and specifies the detected package manager to avoid interactive prompts + - Adds a `wrangler.toml` file with commented out examples of all available bindings to match other templates. + - Adds a `cf-typegen` package script to automatically regenerate types for `Bindings` from `wrangler.toml` + +- [#5637](https://github.com/cloudflare/workers-sdk/pull/5637) [`b41c4ed`](https://github.com/cloudflare/workers-sdk/commit/b41c4edc2e4bf1da11ebff98c38f92f8057d5c59) Thanks [@joshthoward](https://github.com/joshthoward)! - feat: change Durable Objects "Hello, World!" template to use RPC methods + +### Patch Changes + +- [#5483](https://github.com/cloudflare/workers-sdk/pull/5483) [`a55314c`](https://github.com/cloudflare/workers-sdk/commit/a55314cb34c123ec141db10dcd2df455ea523d93) Thanks [@DaniFoldi](https://github.com/DaniFoldi)! - fix: make sure that using the current directory doesn't generate an `undefined undefined` log in the output summary. + +- [#5482](https://github.com/cloudflare/workers-sdk/pull/5482) [`1b7739e`](https://github.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb) Thanks [@DaniFoldi](https://github.com/DaniFoldi)! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred. + +- [#5684](https://github.com/cloudflare/workers-sdk/pull/5684) [`c81fa65`](https://github.com/cloudflare/workers-sdk/commit/c81fa65cbc4b1749ab31afb114cc3cb40e22fef9) Thanks [@jculvey](https://github.com/jculvey)! - docs: Add Smart Placement example to `wrangler.toml` of templates. + ## 2.20.1 ### Patch Changes diff --git a/packages/create-cloudflare/package.json b/packages/create-cloudflare/package.json index 5cb103ca86f2..945da11f0d7f 100644 --- a/packages/create-cloudflare/package.json +++ b/packages/create-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "create-cloudflare", - "version": "2.20.1", + "version": "2.21.0", "description": "A CLI for creating and deploying new applications to Cloudflare.", "keywords": [ "cloudflare", diff --git a/packages/format-errors/CHANGELOG.md b/packages/format-errors/CHANGELOG.md new file mode 100644 index 000000000000..db3b9d4805c8 --- /dev/null +++ b/packages/format-errors/CHANGELOG.md @@ -0,0 +1,7 @@ +# format-errors + +## 0.0.1 + +### Patch Changes + +- [#5482](https://github.com/cloudflare/workers-sdk/pull/5482) [`1b7739e`](https://github.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb) Thanks [@DaniFoldi](https://github.com/DaniFoldi)! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred. diff --git a/packages/format-errors/package.json b/packages/format-errors/package.json index efbcc3e224ca..36ce082711ce 100644 --- a/packages/format-errors/package.json +++ b/packages/format-errors/package.json @@ -1,6 +1,6 @@ { "name": "format-errors", - "version": "0.0.0", + "version": "0.0.1", "private": true, "scripts": { "check:lint": "eslint .", diff --git a/packages/kv-asset-handler/CHANGELOG.md b/packages/kv-asset-handler/CHANGELOG.md index 2cf054faba3d..5ef60ec9adef 100644 --- a/packages/kv-asset-handler/CHANGELOG.md +++ b/packages/kv-asset-handler/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.3.2 + +### Patch Changes + +- [#5482](https://github.com/cloudflare/workers-sdk/pull/5482) [`1b7739e`](https://github.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb) Thanks [@DaniFoldi](https://github.com/DaniFoldi)! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred. + ## 0.3.1 - ## Maintenance diff --git a/packages/kv-asset-handler/package.json b/packages/kv-asset-handler/package.json index d4cadb8bc8cc..962c8383c48b 100644 --- a/packages/kv-asset-handler/package.json +++ b/packages/kv-asset-handler/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/kv-asset-handler", - "version": "0.3.1", + "version": "0.3.2", "description": "Routes requests to KV assets", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/miniflare/CHANGELOG.md b/packages/miniflare/CHANGELOG.md index a58a28ea954e..9ebd4934d767 100644 --- a/packages/miniflare/CHANGELOG.md +++ b/packages/miniflare/CHANGELOG.md @@ -1,5 +1,20 @@ # miniflare +## 3.20240419.0 + +### Patch Changes + +- [#5682](https://github.com/cloudflare/workers-sdk/pull/5682) [`3a0d735`](https://github.com/cloudflare/workers-sdk/commit/3a0d7356bd8bc6fe614a3ef3f9c1278659555568) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: update dependencies of "miniflare" package + + The following dependency versions have been updated: + + | Dependency | From | To | + | ------------------------- | ------------- | ------------- | + | workerd | 1.20240405.0 | 1.20240419.0 | + | @cloudflare/workers-types | ^4.20240405.0 | ^4.20240419.0 | + +- [#5482](https://github.com/cloudflare/workers-sdk/pull/5482) [`1b7739e`](https://github.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb) Thanks [@DaniFoldi](https://github.com/DaniFoldi)! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred. + ## 3.20240405.2 ### Patch Changes diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index f0afa8e10238..eb83fae7c4e7 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -1,6 +1,6 @@ { "name": "miniflare", - "version": "3.20240405.2", + "version": "3.20240419.0", "description": "Fun, full-featured, fully-local simulator for Cloudflare Workers", "keywords": [ "cloudflare", diff --git a/packages/pages-shared/CHANGELOG.md b/packages/pages-shared/CHANGELOG.md index fb2d77f909cb..68d99a1cdd5f 100644 --- a/packages/pages-shared/CHANGELOG.md +++ b/packages/pages-shared/CHANGELOG.md @@ -1,5 +1,12 @@ # @cloudflare/pages-shared +## 0.11.30 + +### Patch Changes + +- Updated dependencies [[`3a0d735`](https://github.com/cloudflare/workers-sdk/commit/3a0d7356bd8bc6fe614a3ef3f9c1278659555568), [`1b7739e`](https://github.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb)]: + - miniflare@3.20240419.0 + ## 0.11.29 ### Patch Changes diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index ed353dc3ebd3..0113be0bcbf4 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/pages-shared", - "version": "0.11.29", + "version": "0.11.30", "repository": { "type": "git", "url": "https://github.com/cloudflare/workers-sdk.git", diff --git a/packages/vitest-pool-workers/CHANGELOG.md b/packages/vitest-pool-workers/CHANGELOG.md index a788a4eb1955..91a6c1d23e9b 100644 --- a/packages/vitest-pool-workers/CHANGELOG.md +++ b/packages/vitest-pool-workers/CHANGELOG.md @@ -1,5 +1,13 @@ # @cloudflare/vitest-pool-workers +## 0.2.3 + +### Patch Changes + +- Updated dependencies [[`3a0d735`](https://github.com/cloudflare/workers-sdk/commit/3a0d7356bd8bc6fe614a3ef3f9c1278659555568), [`24840f6`](https://github.com/cloudflare/workers-sdk/commit/24840f67b6495a664f5463697aa49fa9478435b9), [`e0abf91`](https://github.com/cloudflare/workers-sdk/commit/e0abf91747ad8dd77356ff9656b1c6148f9d21d3), [`81d9615`](https://github.com/cloudflare/workers-sdk/commit/81d961582da2db2b020305c63a9f1f1573ff873d), [`a7e36d5`](https://github.com/cloudflare/workers-sdk/commit/a7e36d503f442a8225ffdedef30b569a8a396663), [`c6312b5`](https://github.com/cloudflare/workers-sdk/commit/c6312b5017279b31ce99c761e2063973f7d948bf), [`1b7739e`](https://github.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb)]: + - miniflare@3.20240419.0 + - wrangler@3.52.0 + ## 0.2.2 ### Patch Changes diff --git a/packages/vitest-pool-workers/package.json b/packages/vitest-pool-workers/package.json index 74b5869d2632..5155d91e2932 100644 --- a/packages/vitest-pool-workers/package.json +++ b/packages/vitest-pool-workers/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/vitest-pool-workers", - "version": "0.2.2", + "version": "0.2.3", "description": "Workers Vitest integration for writing Vitest unit and integration tests that run inside the Workers runtime", "keywords": [ "cloudflare", diff --git a/packages/workers-playground/CHANGELOG.md b/packages/workers-playground/CHANGELOG.md index b74b0ce2cdcd..2cb6160905d9 100644 --- a/packages/workers-playground/CHANGELOG.md +++ b/packages/workers-playground/CHANGELOG.md @@ -1,5 +1,11 @@ # workers-playground +## 0.0.4 + +### Patch Changes + +- [#5482](https://github.com/cloudflare/workers-sdk/pull/5482) [`1b7739e`](https://github.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb) Thanks [@DaniFoldi](https://github.com/DaniFoldi)! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred. + ## 0.0.3 ### Patch Changes diff --git a/packages/workers-playground/package.json b/packages/workers-playground/package.json index 9dcc81b0a64c..239e7caabbd9 100644 --- a/packages/workers-playground/package.json +++ b/packages/workers-playground/package.json @@ -1,6 +1,6 @@ { "name": "workers-playground", - "version": "0.0.3", + "version": "0.0.4", "private": true, "type": "module", "scripts": { diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index c378ed4e8ce6..5aceb1bcaaab 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,42 @@ # wrangler +## 3.52.0 + +### Minor Changes + +- [#5666](https://github.com/cloudflare/workers-sdk/pull/5666) [`81d9615`](https://github.com/cloudflare/workers-sdk/commit/81d961582da2db2b020305c63a9f1f1573ff873d) Thanks [@CarmenPopoviciu](https://github.com/CarmenPopoviciu)! - fix: Fix Pages config validation around Durable Objects + + Today Pages cannot deploy Durable Objects itself. For this reason it is mandatory that when declaring Durable Objects bindings in the config file, the `script_name` is specified. We are currently not failing validation if + `script_name` is not specified but we should. These changes fix that. + +### Patch Changes + +- [#5610](https://github.com/cloudflare/workers-sdk/pull/5610) [`24840f6`](https://github.com/cloudflare/workers-sdk/commit/24840f67b6495a664f5463697aa49fa9478435b9) Thanks [@SuperchupuDev](https://github.com/SuperchupuDev)! - Mark `ts-json-schema-generator` as a dev dependency + +- [#5207](https://github.com/cloudflare/workers-sdk/pull/5207) [`e0abf91`](https://github.com/cloudflare/workers-sdk/commit/e0abf91747ad8dd77356ff9656b1c6148f9d21d3) Thanks [@rozenmd](https://github.com/rozenmd)! - fix: fix `wrangler d1 migrations apply` to allow migrations that don't end in a semicolon + + Prior to this PR, migrations such as: `SELECT 1` would fail with a nonsensical error about INSERTS: `✘ [ERROR] near "INSERT": syntax error at offset 199 [code: 7500]` + + What was happening was that wrangler was injecting a statement at the end of the migration, to update the migrations table saying the query successfully executed. + + To avoid this, this PR moves the statement to the start of the migration. + +- [#5669](https://github.com/cloudflare/workers-sdk/pull/5669) [`a7e36d5`](https://github.com/cloudflare/workers-sdk/commit/a7e36d503f442a8225ffdedef30b569a8a396663) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - fix: fix broken Durable Object local proxying (when no `cf` property is present) + + A regression was introduced in wrangler 3.46.0 (https://github.com/cloudflare/workers-sdk/pull/5215) + which made it so that missing `Request#cf` properties are serialized as `"undefined"`, this in turn + throws a syntax parse error when such values are parsed via `JSON.parse` breaking the communication + with Durable Object local proxies. Fix such issue by serializing missing `Request#cf` properties as + `"{}"` instead. + +- [#5616](https://github.com/cloudflare/workers-sdk/pull/5616) [`c6312b5`](https://github.com/cloudflare/workers-sdk/commit/c6312b5017279b31ce99c761e2063973f7d948bf) Thanks [@webbertakken](https://github.com/webbertakken)! - fix: broken link to durable object migrations docs + +- [#5482](https://github.com/cloudflare/workers-sdk/pull/5482) [`1b7739e`](https://github.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb) Thanks [@DaniFoldi](https://github.com/DaniFoldi)! - docs: show new Discord url everywhere for consistency. The old URL still works, but https://discord.cloudflare.com is preferred. + +- Updated dependencies [[`3a0d735`](https://github.com/cloudflare/workers-sdk/commit/3a0d7356bd8bc6fe614a3ef3f9c1278659555568), [`1b7739e`](https://github.com/cloudflare/workers-sdk/commit/1b7739e0af99860aa063f01c0a6e7712ac072fdb)]: + - miniflare@3.20240419.0 + - @cloudflare/kv-asset-handler@0.3.2 + ## 3.51.2 ### Patch Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index 22f4b386265a..9f35cfa59819 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "3.51.2", + "version": "3.52.0", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler",