Releases: centrifugal/centrifuge-js
5.4.0
What's Changed
This version introduces a transition to the minimal build of ProtobufJS, contributed by @wrangelvid. It speeds up Protobuf encode/decode methods (in our benchmark suite: encode from 5.94 µs/op -> 4.80 µs/op, i.e. 19% improvement, and decode from 2.54 µs/op -> 1.87 µs/op, i.e. 26% improvement). While the minified build of centrifuge-js with Protobuf codec is larger now, the gzipped version is actually 18% smaller.
- make functions async, more type safety internally by @FZambia in #323
- use minimal protobufjs by @wrangelvid in #324
- add codecs benchmarks by @FZambia in #322
- fix decode benchmark by @FZambia in #327
- add hasRecoveredPublications field to SubscribedContext by @pavelmakeenko in #326
- hasRecoveredPublications for ServerSubscribedContext by @FZambia in #328
- document that SDK does not catch any app-level exceptions by @FZambia in #321
New Contributors
- @wrangelvid made their first contribution in #324
- @pavelmakeenko made their first contribution in #326
Full Changelog: 5.3.5...5.4.0
5.3.5
5.3.4
What's Changed
- Remove cache: no-cache from emulation fetch to allow caching preflight by @FZambia in #313
- Remove cache: no-cache from http streaming fetch to allow caching preflight by @FZambia in #314
- Mention react native on android issue by @FZambia in #309
- Better error message when WS is not supported by @FZambia in #312
5.3.3 is working also, but we skipped making Github release for that version because forgot to include #314 into it.
Full Changelog: 5.3.2...5.3.4
5.3.2
What's Changed
- Fix calling subscription getToken twice by @FZambia in #307
- SDK now reconnects/resubscribes upon connection and subscription
getData
call exceptions - Bump undici from 5.28.4 to 5.28.5 by @dependabot in #305
Full Changelog: 5.3.1...5.3.2
5.3.1
5.3.0
What's Changed
- Headers emulation by @FZambia in #299 . This feature works only with Centrifugo v6. See the details in the Centrifugo v6 release blog post
SockJS transport warning
SockJS transport is removed in Centrifugo v6, but it will be supported in centrifuge-js
for some time, but eventually will be removed in centrifuge-js
v6.
Full Changelog: 5.2.2...5.3.0
5.2.2
What's Changed
- fix max call stack exceeded when applying fossil delta by @FZambia in #293
- Bump braces from 3.0.2 to 3.0.3 by @dependabot in #291
- Bump ws from 8.14.1 to 8.17.1 by @dependabot in #290
Full Changelog: 5.2.1...5.2.2
5.2.1
What's Changed
- Synchronize subscribe with unsubscribe to properly work in emulation case by @FZambia in #288. This solves a possible race condition when working with HTTP-streaming and SSE fallback transports and issuing subscribe/unsubscribe requests quickly - the race could lead to
already subscribed
error.
Full Changelog: 5.2.0...5.2.1
5.2.0
What's Changed
- Support delta compression by @FZambia in #282 . See Centrifugo v5.4.0 release notes for more details
Full Changelog: 5.1.1...5.2.0
5.1.1
What's Changed
- Fix reconnect on close before transport open by @FZambia in #281 . If you observed rare
WebSocket is closed before the connection is established
warnings in console and no reconnect after that - this should fix it.
Full Changelog: 5.1.0...5.1.1