Releases: cloudflare/partykit
Releases · cloudflare/partykit
partywhen@0.1.3
Patch Changes
-
4e315b4Thanks @threepointone! - update -
Updated dependencies [
4e315b4]:- partyserver@0.3.3
partysync@2.0.2
Patch Changes
4e315b4Thanks @threepointone! - update
partysub@2.0.2
Patch Changes
4e315b4Thanks @threepointone! - update
partyserver@0.3.3
Patch Changes
4e315b4Thanks @threepointone! - Add__unsafe_ensureInitialized()method toServerfor frameworks that receive calls via native DO RPC, bypassing the standard fetch/alarm/webSocket entry points where name hydration andonStart()normally happen.
hono-party@2.0.3
Patch Changes
4e315b4Thanks @threepointone! - update
partyserver@0.3.2
Patch Changes
- #352
b033ae1Thanks @threepointone! - Remove default console.log/console.info calls fromonConnectandonMessagebase methods inServer
y-partyserver@2.1.2
Patch Changes
- #347
0171a8bThanks @threepointone! - Add CJS build output alongside ESM. The package now ships both.js(ESM) and.cjs(CJS) files with corresponding.d.tsand.d.ctstype declarations.
y-partyserver@2.1.1
Patch Changes
- #348
37ca0cdThanks @threepointone! - Extract Yjs functionality into awithYjsmixin that can be applied to any Server subclass.YServeris nowwithYjs(Server).
y-partyserver@2.1.0
Minor Changes
-
#341
e7f4b51Thanks @threepointone! - Fix Yjs hibernation support and awareness propagationServer:
- Replace in-memory
WSSharedDoc.connsMap withconnection.setState()andgetConnections()so connection tracking survives Durable Object hibernation - Move event handler registration from
WSSharedDocconstructor intoonStart()to usegetConnections()for broadcasting - Disable awareness protocol's built-in
_checkIntervalinWSSharedDocconstructor to prevent timers from defeating hibernation - On
onStart, send sync step 1 to all existing connections so clients re-sync the server's document after hibernation wake-up - Simplify
send()— no longer forcibly closes connections on failure - Remove
closeConn()helper; awareness cleanup now happens inonClosevia persisted connection state - Widen
onLoad()return type toPromise<YDoc | void>to allow seeding the document from a returned YDoc
Provider:
- Switch awareness event listener from
"update"to"change"so clock-only heartbeat renewals do not produce network traffic (allows DO hibernation during idle sessions) - Disable awareness protocol's built-in
_checkIntervalon the client to stop 15-second clock renewals and 30-second peer timeout removal - Remove provider's own
_checkIntervalliveness timer (was coupled to the awareness heartbeat) - Clear stale awareness meta for remote clients on WebSocket close so reconnecting clients' awareness updates are accepted
- Bump awareness clock on reconnect to ensure remote peers accept the update
- Fix bug where
host.slice(0, -1)result was not assigned, so trailing slashes were never stripped
- Replace in-memory
Patch Changes
- #343
c59d33dThanks @threepointone! - update deps
partywhen@0.1.2
Patch Changes
-
#343
c59d33dThanks @threepointone! - update deps -
Updated dependencies [
c59d33d]:- partyserver@0.3.1