cloudflare/partykit partyserver@0.4.0
cloudflare/partykit
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
- #360 `852e900` Thanks @threepointone! - Add
uriproperty toConnectionthat 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: truetoid,tags, andsocketproperty descriptors increateLazyConnectionto 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.