diff --git a/.changeset/fix-relative-container-fetch.md b/.changeset/fix-relative-container-fetch.md deleted file mode 100644 index b8b6253..0000000 --- a/.changeset/fix-relative-container-fetch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/containers': patch ---- - -Support relative URL paths in `containerFetch`. diff --git a/.changeset/plenty-bats-shave.md b/.changeset/plenty-bats-shave.md deleted file mode 100644 index 6395ef3..0000000 --- a/.changeset/plenty-bats-shave.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@cloudflare/containers': patch ---- - -Fail with an actionable error when `interceptHttps` is enabled on a runtime that does not support `ctx.container.interceptOutboundHttps`. - -This previously surfaced as a bare `TypeError: this.container.interceptOutboundHttps is not a function`. Worse, the failure happened part-way through applying interception, so a container could be left with HTTP hosts already intercepted. The support check now runs before any interception is applied, and the error names the runtime date required (2026-04-02 or later). diff --git a/.changeset/tidy-moons-repeat.md b/.changeset/tidy-moons-repeat.md deleted file mode 100644 index 0446791..0000000 --- a/.changeset/tidy-moons-repeat.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@cloudflare/containers': minor ---- - -Declare an optional peer dependency on `@cloudflare/workers-types` of `>=4.20260402.1`, the first release providing `Container.interceptOutboundHttps`. - -Because consumers supply their own runtime types, the version this package builds against is the minimum they need. The range is enforced only when `@cloudflare/workers-types` is actually installed — projects using `wrangler types` are unaffected. diff --git a/CHANGELOG.md b/CHANGELOG.md index 930619c..cb3bd07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # @cloudflare/containers +## 0.4.0 + +### Minor Changes + +- bd79750: Declare an optional peer dependency on `@cloudflare/workers-types` of `>=4.20260402.1`, the first release providing `Container.interceptOutboundHttps`. + + Because consumers supply their own runtime types, the version this package builds against is the minimum they need. The range is enforced only when `@cloudflare/workers-types` is actually installed — projects using `wrangler types` are unaffected. + +### Patch Changes + +- 41206f9: Support relative URL paths in `containerFetch`. +- b1b29ab: Fail with an actionable error when `interceptHttps` is enabled on a runtime that does not support `ctx.container.interceptOutboundHttps`. + + This previously surfaced as a bare `TypeError: this.container.interceptOutboundHttps is not a function`. Worse, the failure happened part-way through applying interception, so a container could be left with HTTP hosts already intercepted. The support check now runs before any interception is applied, and the error names the runtime date required (2026-04-02 or later). + ## 0.3.7 ### Patch Changes diff --git a/package.json b/package.json index 6fed4d7..03ba74d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/containers", - "version": "0.3.7", + "version": "0.4.0", "description": "Helper class for container-enabled Durable Objects", "repository": { "type": "git",