npm / centrifuge
centrifuge
What changed in centrifuge 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
3 new APIs and options12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcentrifuge 515 changes
New APIs and options 3
A new getState callback is available for stream subscriptions.
Map subscriptions are added as a subscription type.
Shared Poll subscriptions are added as a subscription type.
Fixes and other changes 12
Fixes UTF-8 corruption when a character spans two stream chunks.
Byte counts for non-ASCII JSON payloads are corrected, so delta stats report accurate sizes.
Pending publish-debounce timers are canceled on reconnect.
The server-side subscription recovery position is reset when state is invalidated.
Prevents a crash when the final WebTransport read chunk has no value.
Fixes an out-of-bounds transport index during initialization.
Sets the _triedAllTransports flag when unsupported transports are skipped.
Fixes a localStorage access error in Safari private browsing mode.
Fixes edge cases in channel compaction.
Aligns state invalidation across both disconnect paths and unrecoverable resubscribe, with named codes.
Fixes a bug with instanceof checks for Array.
Fixes a TypeError caused by localStorage.getItem not being a function on NodeJS 25.