diff --git a/.changeset/hibernatable-websockets.md b/.changeset/hibernatable-websockets.md deleted file mode 100644 index e70f014..0000000 --- a/.changeset/hibernatable-websockets.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@mcp-b/do-runtime": minor ---- - -Replace the fail-closed Durable Object WebSocket stubs with workerd-compatible hibernatable WebSockets. - -`WebSocketPair`, `WebSocketRequestResponsePair`, all eight `DurableObjectState` WebSocket methods, tags, structured-clone attachments, auto-responses, event timeouts, close state, and `webSocketMessage`/`webSocketClose`/`webSocketError` dispatch now run through actor input and output gates. `installActorScope()` installs the three WebSocket globals alongside the existing actor-scoped primitives. - -Embedders that evict live actors can mirror socket state through the new optional `ports.hibernation` callbacks and rehydrate it through `ActorContainerOptions.webSockets` before the next constructor runs. `container.quiescence()` exposes the non-blocking eviction signals, and `gateHooks` makes both gates observable. - -This is a breaking replacement for the exported hibernation-unavailable error and the previous `never`-typed methods. Hosts should remove reconnect-only fallbacks; applications can use the Agents SDK and PartyServer hibernation defaults. diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bfbba8..90fbad7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 0.6.0 + +### Minor Changes + +- 0821d6e: Replace the fail-closed Durable Object WebSocket stubs with workerd-compatible hibernatable WebSockets. + + `WebSocketPair`, `WebSocketRequestResponsePair`, all eight `DurableObjectState` WebSocket methods, tags, structured-clone attachments, auto-responses, event timeouts, close state, and `webSocketMessage`/`webSocketClose`/`webSocketError` dispatch now run through actor input and output gates. `installActorScope()` installs the three WebSocket globals alongside the existing actor-scoped primitives. + + Embedders that evict live actors can mirror socket state through the new optional `ports.hibernation` callbacks and rehydrate it through `ActorContainerOptions.webSockets` before the next constructor runs. `container.quiescence()` exposes the non-blocking eviction signals, and `gateHooks` makes both gates observable. + + This is a breaking replacement for the exported hibernation-unavailable error and the previous `never`-typed methods. Hosts should remove reconnect-only fallbacks; applications can use the Agents SDK and PartyServer hibernation defaults. + ## 0.5.0 ### Minor Changes diff --git a/package.json b/package.json index def53bd..4b2e4c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mcp-b/do-runtime", - "version": "0.5.0", + "version": "0.6.0", "description": "Cloudflare's Durable Object runtime (workerd), ported to TypeScript: actors with input/output gates, SQLite storage, facets and alarms, running in the browser and in Node.", "keywords": [ "actors",