Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/alarm-invocation-info-type.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/examples-cleanup.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/explicit-module-boundary-types.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/license-clarification.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/on-error-return-type.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/preserve-caught-errors.md

This file was deleted.

19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading