ReleaseCloudflare (Workers AI)Cloudflare (Workers AI)published Mar 25, 2026seen Jun 26

cloudflare/partykit partyserver@0.4.0

cloudflare/partykit

Open original ↗

Captured source

source ↗
published Mar 25, 2026seen Jun 26captured 4whttp 200method plain

partyserver@0.4.0

Repository: cloudflare/partykit

Tag: partyserver@0.4.0

Published: 2026-03-25T17:13:17Z

Prerelease: no

Release notes:

Minor Changes

WebSocketPair doesn't accept a URL parameter, so the originating URL was previously lost after the handshake. The uri is now persisted in the WebSocket attachment alongside id and tags, so it survives hibernation. Returns null for connections established before this change.

Patch Changes

  • #358 `7172dd1` Thanks @threepointone! - Add configurable: true to id, tags, and socket property descriptors in createLazyConnection to fix Vite HMR compatibility

When using PartyServer with Vite's Cloudflare Workers dev mode, HMR reloads recreate the module-scoped WeakSet used to track wrapped sockets, while the underlying WebSocket instances survive. This caused Object.defineProperties to throw TypeError: Cannot redefine property on properties that were missing the configurable flag.