diff --git a/.changeset/alarm-invocation-info-type.md b/.changeset/alarm-invocation-info-type.md deleted file mode 100644 index 5b26b5b..0000000 --- a/.changeset/alarm-invocation-info-type.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/containers': patch ---- - -Use the canonical `AlarmInvocationInfo` type from `@cloudflare/workers-types` for the `alarm()` parameter instead of an inline type. This is a no-op for users (the shape is identical), but keeps the override aligned with the Durable Object base class signature. diff --git a/.changeset/examples-cleanup.md b/.changeset/examples-cleanup.md deleted file mode 100644 index 6a02924..0000000 --- a/.changeset/examples-cleanup.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@cloudflare/containers': patch ---- - -Refreshed the `examples/` projects: - -- All examples now use the latest TypeScript, Vitest, and Wrangler, and target a current Workers `compatibility_date`. -- Worker types are generated by `wrangler types`, matching current Cloudflare guidance. -- The `examples/timeout/` snippet is now a fully runnable example. -- Integration tests now run on arm64 hosts (e.g. Apple Silicon) and reliably clean up after themselves. - -No changes to the published library API. diff --git a/.changeset/explicit-module-boundary-types.md b/.changeset/explicit-module-boundary-types.md deleted file mode 100644 index d8275a5..0000000 --- a/.changeset/explicit-module-boundary-types.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/containers': patch ---- - -Add return types to exported functions and public methods to satisfy ESLint and improve type checking. diff --git a/.changeset/license-clarification.md b/.changeset/license-clarification.md deleted file mode 100644 index 4871740..0000000 --- a/.changeset/license-clarification.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/containers': patch ---- - -Clarify the license for this library matches that of `@cloudflare/workers-sdk`, which is dual licensed under either MIT OR Apache-2.0. diff --git a/.changeset/on-error-return-type.md b/.changeset/on-error-return-type.md deleted file mode 100644 index cc57746..0000000 --- a/.changeset/on-error-return-type.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/containers': patch ---- - -Tighten the return type of `Container#onError` from `any` to `unknown`. Subclasses that override `onError` can still return any value. This should be a no-op for most users. diff --git a/.changeset/preserve-caught-errors.md b/.changeset/preserve-caught-errors.md deleted file mode 100644 index 1923a00..0000000 --- a/.changeset/preserve-caught-errors.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cloudflare/containers': patch ---- - -Preserve original errors as `cause` when wrapping abort/timeout errors during container startup, making it easier to debug the underlying failure. diff --git a/CHANGELOG.md b/CHANGELOG.md index a489475..17d6ba8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # @cloudflare/containers +## 0.3.5 + +### Patch Changes + +- a3fe15b: Use the canonical `AlarmInvocationInfo` type from `@cloudflare/workers-types` for the `alarm()` parameter instead of an inline type. This is a no-op for users (the shape is identical), but keeps the override aligned with the Durable Object base class signature. +- ca72a22: Refreshed the `examples/` projects: + - All examples now use the latest TypeScript, Vitest, and Wrangler, and target a current Workers `compatibility_date`. + - Worker types are generated by `wrangler types`, matching current Cloudflare guidance. + - The `examples/timeout/` snippet is now a fully runnable example. + - Integration tests now run on arm64 hosts (e.g. Apple Silicon) and reliably clean up after themselves. + + No changes to the published library API. + +- fc7e7f4: Add return types to exported functions and public methods to satisfy ESLint and improve type checking. +- eabe7ac: Clarify the license for this library matches that of `@cloudflare/workers-sdk`, which is dual licensed under either MIT OR Apache-2.0. +- df8699a: Tighten the return type of `Container#onError` from `any` to `unknown`. Subclasses that override `onError` can still return any value. This should be a no-op for most users. +- 45274ea: Preserve original errors as `cause` when wrapping abort/timeout errors during container startup, making it easier to debug the underlying failure. + ## 0.3.4 ### Patch Changes @@ -121,7 +139,6 @@ ### Patch Changes - e4879c8: Miscellaneous minor fixes and improvements to starting containers and port checking. - - When calling `startAndWaitForPorts`, check for port-readiness even if the container is started. - Add `waitForPort()` method. - Add options to configure timeout and polling interval to `start`, similar to what `cancellationOptions` on `startAndWaitForPorts`. `start` does not check for port readiness but still polls for available and starting container. diff --git a/package.json b/package.json index 8cd28a9..bf96707 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/containers", - "version": "0.3.4", + "version": "0.3.5", "description": "Helper class for container-enabled Durable Objects", "repository": { "type": "git",