diff --git a/.changeset/gold-maps-itch.md b/.changeset/gold-maps-itch.md deleted file mode 100644 index 9c385feb2d22..000000000000 --- a/.changeset/gold-maps-itch.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -"wrangler": patch ---- - -fix: Add hyperdrive binding support in `getPlatformProxy` - -example: - -```toml -# wrangler.toml -[[hyperdrive]] -binding = "MY_HYPERDRIVE" -id = "000000000000000000000000000000000" -localConnectionString = "postgres://user:pass@127.0.0.1:1234/db" -``` - -```js -// index.mjs - -import postgres from "postgres"; -import { getPlatformProxy } from "wrangler"; - -const { env, dispose } = await getPlatformProxy(); - -try { - const sql = postgres( - // Note: connectionString points to `postgres://user:pass@127.0.0.1:1234/db` not to the actual hyperdrive - // connection string, for more details see the explanation below - env.MY_HYPERDRIVE.connectionString - ); - const results = await sql`SELECT * FROM pg_tables`; - await sql.end(); -} catch (e) { - console.error(e); -} - -await dispose(); -``` - -Note: the returned binding values are no-op/passthrough that can be used inside node.js, meaning -that besides direct connections via the `connect` methods, all the other values point to the -same db connection specified in the user configuration diff --git a/.changeset/khaki-brooms-matter.md b/.changeset/khaki-brooms-matter.md deleted file mode 100644 index 215fd41920ce..000000000000 --- a/.changeset/khaki-brooms-matter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"miniflare": patch ---- - -fix: Fixes max asset count error message to properly report count of assets diff --git a/.changeset/new-dragons-bow.md b/.changeset/new-dragons-bow.md deleted file mode 100644 index 382c0aac11eb..000000000000 --- a/.changeset/new-dragons-bow.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": minor ---- - -feature: Add 'cloudchamber curl' command - -Adds a cloudchamber curl command which allows easy access to arbitrary cloudchamber API endpoints. diff --git a/.changeset/polite-tigers-end.md b/.changeset/polite-tigers-end.md deleted file mode 100644 index c8447fce3890..000000000000 --- a/.changeset/polite-tigers-end.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -"wrangler": minor ---- - -feature: Integrate the Cloudflare Pipelines product into wrangler. - -Cloudflare Pipelines is a product that handles the ingest of event streams -into R2. This feature integrates various forms of managing pipelines. - -Usage: -`wrangler pipelines create `: Create a new pipeline -`wrangler pipelines list`: List current pipelines -`wrangler pipelines show `: Show a pipeline configuration -`wrangler pipelines update `: Update a pipeline -`wrangler pipelines delete `: Delete a pipeline - -Examples: -wrangler pipelines create my-pipeline --r2 MY_BUCKET --access-key-id "my-key" --secret-access-key "my-secret" -wrangler pipelines show my-pipeline -wrangler pipelines delete my-pipline diff --git a/.changeset/silly-ways-brake.md b/.changeset/silly-ways-brake.md deleted file mode 100644 index aaf49eec66ab..000000000000 --- a/.changeset/silly-ways-brake.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -fix: don't warn about `node:async_hooks` if `nodejs_als` is set - -Fixes #6011 diff --git a/.changeset/slimy-waves-dance.md b/.changeset/slimy-waves-dance.md deleted file mode 100644 index 68a30109f7e3..000000000000 --- a/.changeset/slimy-waves-dance.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"miniflare": patch ---- - -fix: add hyperdrive bindings support in `getBindings` - -Note: the returned binding values are no-op/passthrough that can be used inside node.js, meaning -that besides direct connections via the `connect` methods, all the other values point to the -same db connection specified in the user configuration diff --git a/.changeset/thin-lies-sparkle.md b/.changeset/thin-lies-sparkle.md deleted file mode 100644 index 42bfbd47255d..000000000000 --- a/.changeset/thin-lies-sparkle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/quick-edit": minor ---- - -feat: hide wrangler.toml and package.json with `search.exclude` support added diff --git a/packages/miniflare/CHANGELOG.md b/packages/miniflare/CHANGELOG.md index a018292b15f4..41f6630cd462 100644 --- a/packages/miniflare/CHANGELOG.md +++ b/packages/miniflare/CHANGELOG.md @@ -1,5 +1,17 @@ # miniflare +## 3.20240821.2 + +### Patch Changes + +- [#6627](https://github.com/cloudflare/workers-sdk/pull/6627) [`5936282`](https://github.com/cloudflare/workers-sdk/commit/5936282bfbda848b465396a70f6334988d1a57a0) Thanks [@GregBrimble](https://github.com/GregBrimble)! - fix: Fixes max asset count error message to properly report count of assets + +- [#6612](https://github.com/cloudflare/workers-sdk/pull/6612) [`6471090`](https://github.com/cloudflare/workers-sdk/commit/64710904ad4055054bea09ebb23ededab140aa79) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - fix: add hyperdrive bindings support in `getBindings` + + Note: the returned binding values are no-op/passthrough that can be used inside node.js, meaning + that besides direct connections via the `connect` methods, all the other values point to the + same db connection specified in the user configuration + ## 3.20240821.1 ### Patch Changes diff --git a/packages/miniflare/package.json b/packages/miniflare/package.json index 6edd585271ea..57d67e8fd380 100644 --- a/packages/miniflare/package.json +++ b/packages/miniflare/package.json @@ -1,6 +1,6 @@ { "name": "miniflare", - "version": "3.20240821.1", + "version": "3.20240821.2", "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 189d58bf39b1..403f6ef5fbe2 100644 --- a/packages/pages-shared/CHANGELOG.md +++ b/packages/pages-shared/CHANGELOG.md @@ -1,5 +1,12 @@ # @cloudflare/pages-shared +## 0.11.55 + +### Patch Changes + +- Updated dependencies [[`5936282`](https://github.com/cloudflare/workers-sdk/commit/5936282bfbda848b465396a70f6334988d1a57a0), [`6471090`](https://github.com/cloudflare/workers-sdk/commit/64710904ad4055054bea09ebb23ededab140aa79)]: + - miniflare@3.20240821.2 + ## 0.11.54 ### Patch Changes diff --git a/packages/pages-shared/package.json b/packages/pages-shared/package.json index 704e435c9428..30825ef74365 100644 --- a/packages/pages-shared/package.json +++ b/packages/pages-shared/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/pages-shared", - "version": "0.11.54", + "version": "0.11.55", "repository": { "type": "git", "url": "https://github.com/cloudflare/workers-sdk.git", diff --git a/packages/quick-edit/CHANGELOG.md b/packages/quick-edit/CHANGELOG.md index 41812fcff389..7b46b4d998bf 100644 --- a/packages/quick-edit/CHANGELOG.md +++ b/packages/quick-edit/CHANGELOG.md @@ -1,5 +1,11 @@ # @cloudflare/quick-edit +## 0.1.0 + +### Minor Changes + +- [#6546](https://github.com/cloudflare/workers-sdk/pull/6546) [`addb210`](https://github.com/cloudflare/workers-sdk/commit/addb21010dc68ff8867903b90aca438a31f0a3fc) Thanks [@edmundhung](https://github.com/edmundhung)! - feat: hide wrangler.toml and package.json with `search.exclude` support added + ## 0.0.2 ### Patch Changes diff --git a/packages/quick-edit/package.json b/packages/quick-edit/package.json index 18467d3ac7f4..d03b97d81e7b 100644 --- a/packages/quick-edit/package.json +++ b/packages/quick-edit/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/quick-edit", - "version": "0.0.2", + "version": "0.1.0", "private": true, "description": "VSCode for Web hosted for use in Cloudflare's Quick Editor", "homepage": "https://github.com/cloudflare/workers-sdk#readme", diff --git a/packages/vitest-pool-workers/CHANGELOG.md b/packages/vitest-pool-workers/CHANGELOG.md index 1f31ca37817e..8f3e10a4d193 100644 --- a/packages/vitest-pool-workers/CHANGELOG.md +++ b/packages/vitest-pool-workers/CHANGELOG.md @@ -1,5 +1,13 @@ # @cloudflare/vitest-pool-workers +## 0.4.30 + +### Patch Changes + +- Updated dependencies [[`6471090`](https://github.com/cloudflare/workers-sdk/commit/64710904ad4055054bea09ebb23ededab140aa79), [`5936282`](https://github.com/cloudflare/workers-sdk/commit/5936282bfbda848b465396a70f6334988d1a57a0), [`18c105b`](https://github.com/cloudflare/workers-sdk/commit/18c105baec9d3625b56531ec332517fcae1ede59), [`46a91e7`](https://github.com/cloudflare/workers-sdk/commit/46a91e7e7d286e6835bb87cfdd6c9096deaeba6e), [`ecdfabe`](https://github.com/cloudflare/workers-sdk/commit/ecdfabed04cdc56bfb4fd43cd769eda48ba13366), [`6471090`](https://github.com/cloudflare/workers-sdk/commit/64710904ad4055054bea09ebb23ededab140aa79)]: + - wrangler@3.76.0 + - miniflare@3.20240821.2 + ## 0.4.29 ### Patch Changes diff --git a/packages/vitest-pool-workers/package.json b/packages/vitest-pool-workers/package.json index 0b18f9e5dfc0..e85c0d12d806 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.4.29", + "version": "0.4.30", "description": "Workers Vitest integration for writing Vitest unit and integration tests that run inside the Workers runtime", "keywords": [ "cloudflare", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index 5fb9d6e87aab..73d59330ef73 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,78 @@ # wrangler +## 3.76.0 + +### Minor Changes + +- [#6126](https://github.com/cloudflare/workers-sdk/pull/6126) [`18c105b`](https://github.com/cloudflare/workers-sdk/commit/18c105baec9d3625b56531ec332517fcae1ede59) Thanks [@IRCody](https://github.com/IRCody)! - feature: Add 'cloudchamber curl' command + + Adds a cloudchamber curl command which allows easy access to arbitrary cloudchamber API endpoints. + +- [#6649](https://github.com/cloudflare/workers-sdk/pull/6649) [`46a91e7`](https://github.com/cloudflare/workers-sdk/commit/46a91e7e7d286e6835bb87cfdd6c9096deaeba6e) Thanks [@andyjessop](https://github.com/andyjessop)! - feature: Integrate the Cloudflare Pipelines product into wrangler. + + Cloudflare Pipelines is a product that handles the ingest of event streams + into R2. This feature integrates various forms of managing pipelines. + + Usage: + `wrangler pipelines create `: Create a new pipeline + `wrangler pipelines list`: List current pipelines + `wrangler pipelines show `: Show a pipeline configuration + `wrangler pipelines update `: Update a pipeline + `wrangler pipelines delete `: Delete a pipeline + + Examples: + wrangler pipelines create my-pipeline --r2 MY_BUCKET --access-key-id "my-key" --secret-access-key "my-secret" + wrangler pipelines show my-pipeline + wrangler pipelines delete my-pipline + +### Patch Changes + +- [#6612](https://github.com/cloudflare/workers-sdk/pull/6612) [`6471090`](https://github.com/cloudflare/workers-sdk/commit/64710904ad4055054bea09ebb23ededab140aa79) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - fix: Add hyperdrive binding support in `getPlatformProxy` + + example: + + ```toml + # wrangler.toml + [[hyperdrive]] + binding = "MY_HYPERDRIVE" + id = "000000000000000000000000000000000" + localConnectionString = "postgres://user:pass@127.0.0.1:1234/db" + ``` + + ```js + // index.mjs + + import postgres from "postgres"; + import { getPlatformProxy } from "wrangler"; + + const { env, dispose } = await getPlatformProxy(); + + try { + const sql = postgres( + // Note: connectionString points to `postgres://user:pass@127.0.0.1:1234/db` not to the actual hyperdrive + // connection string, for more details see the explanation below + env.MY_HYPERDRIVE.connectionString, + ); + const results = await sql`SELECT * FROM pg_tables`; + await sql.end(); + } catch (e) { + console.error(e); + } + + await dispose(); + ``` + + Note: the returned binding values are no-op/passthrough that can be used inside node.js, meaning + that besides direct connections via the `connect` methods, all the other values point to the + same db connection specified in the user configuration + +- [#6620](https://github.com/cloudflare/workers-sdk/pull/6620) [`ecdfabe`](https://github.com/cloudflare/workers-sdk/commit/ecdfabed04cdc56bfb4fd43cd769eda48ba13366) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - fix: don't warn about `node:async_hooks` if `nodejs_als` is set + + Fixes #6011 + +- Updated dependencies [[`5936282`](https://github.com/cloudflare/workers-sdk/commit/5936282bfbda848b465396a70f6334988d1a57a0), [`6471090`](https://github.com/cloudflare/workers-sdk/commit/64710904ad4055054bea09ebb23ededab140aa79)]: + - miniflare@3.20240821.2 + ## 3.75.0 ### Minor Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index 443abdf11fa9..3d1983f0e9de 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "3.75.0", + "version": "3.76.0", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6144643724c6..f26b33d649c5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11235,7 +11235,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 6.10.0(typescript@5.5.4) '@typescript-eslint/utils': 6.10.0(eslint@8.49.0)(typescript@5.5.4) - debug: 4.3.5 + debug: 4.3.6(supports-color@9.2.2) eslint: 8.49.0 ts-api-utils: 1.0.3(typescript@5.5.4) optionalDependencies: