Skip to content

v0.3.5

Choose a tag to compare

@emily-shen emily-shen released this 27 May 00:28
· 10 commits to main since this release
4a50257

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.

  • 19c1709: Reset container state after failed startup or terminal monitor errors, avoid stale monitor callbacks updating newer instances, and apply configured constructor startup options.