Skip to content

partyserver@0.4.0

Choose a tag to compare

@github-actions github-actions released this 25 Mar 17:13
· 55 commits to main since this release

Minor Changes

  • #360 852e900 Thanks @threepointone! - Add uri property to Connection that captures the original WebSocket upgrade request URL

    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.