Skip to content

Releases: centrifugal/centrifuge

v0.32.2

02 May 05:14
567fb8a
Compare
Choose a tag to compare

What's Changed

  • Fix unsubscribe during inflight subscribe in goroutine by @FZambia in #372
  • Up redis/rueidis to v1.0.35

Full Changelog: v0.32.1...v0.32.2

v0.32.1

07 Apr 04:43
3034cf7
Compare
Choose a tag to compare

What's Changed

  • Fix WebSocket compression (io: read/write on closed pipe) in JSON protocol case, see commit in centrifugal/protocol
  • Delay initial timer schedule until all ops set by @FZambia in #369 - fixes occasional panic in tests
  • Reuse connection timer by @FZambia in #349 - a minor performance optimization
  • Dependencies updated

Full Changelog: v0.32.0...v0.32.1

v0.32.0

14 Mar 06:35
23c243d
Compare
Choose a tag to compare

What's Changed

  • Fix: per channel meta ttl for in memory broker by @FZambia in #366. Memory broker did not properly inherit history meta TTL provided on per-call basis - was only looking at globally configured. Now it's fixed

Full Changelog: v0.31.0...v0.32.0

v0.31.0

02 Mar 10:22
dbce3c1
Compare
Choose a tag to compare

What's Changed

This is quite a huge release. It has several backwards incompatible changes: in PresenceManager and Broker interfaces. Also, SockJS transport was removed. And several nice improvements are here. Check out the details below.

Notable changes

  • ❗Embed Gorilla Websocket to Centrifuge internal package by @FZambia in #354 . This was an unfortunate but weighted decision due to poor maintenance of Gorilla WebSocket these days. See the exact motivation in #353.
  • ❗SockJS transport was removed - see #352. Note, that since transport in Centrifuge is pluggable - you can still use SockJS in your projects if you need it. You can take SockJS transport implementation from Centrifugo (which is required to keep SockJS until v6 - that's why we still have it there).
  • 🔥 Addition of Idempotency key for Publish API by @FZambia in #336 . Centrifuge keeps publications with idempotency key set in cache for 5 mins by default and drops publications with the same key. See WithIdempotencyKey and WithIdempotentResultTTL. Check out how this could be useful in practice in Centrifugo chat/messenger tutorial. This required change in Broker interface Publish method (should not affect most users until they use custom Broker, but simple to adopt otherwise)
  • 🔥 Maintain user mapping in Redis to speed up presence stats significantly by @FZambia in #343 . This required changes in PresenceManager interface (should not affect most users until they use custom PresenceManager, but simple to adopt otherwise). But the benefit is that we have new option for RedisPresenceManager called EnableUserMapping - this allows increasing performance of PresenceStats call drastically. For channels with huge amount of subscribers the benefit may be up to 10000x better performance. Though more memory may be required on Redis side (up to 2x) since Centrifuge keeps additional data structure in that case. See also related discussion in Centrifugo
  • 🐍 Python real-time SDK - this is a 6th official real-time SDK in Centrifugal ecosystem. We had this SDK for old versions of Centrifuge/Centrifugo – but now it was revived for the latest protocol and supports all major Centrifugal protocol features.

Other changes

  • Increments cristalhq/jwt to v5 by @shyce in #351
  • All dependencies bumped to latest versions

New Contributors ❤️

All API additions/changes

Using gorelease tool:

❯ gorelease -base v0.30.6 -version v0.31.0
# github.com/centrifugal/centrifuge
## incompatible changes
(*MemoryBroker).Publish: changed from func(string, []byte, PublishOptions) (StreamPosition, error) to func(string, []byte, PublishOptions) (StreamPosition, bool, error)
(*MemoryPresenceManager).RemovePresence: changed from func(string, string) error to func(string, string, string) error
(*RedisBroker).Publish: changed from func(string, []byte, PublishOptions) (StreamPosition, error) to func(string, []byte, PublishOptions) (StreamPosition, bool, error)
(*RedisPresenceManager).RemovePresence: changed from func(string, string) error to func(string, string, string) error
Broker.Publish: changed from func(string, []byte, PublishOptions) (StreamPosition, error) to func(string, []byte, PublishOptions) (StreamPosition, bool, error)
NewSockjsHandler: removed
PresenceManager.RemovePresence: changed from func(string, string) error to func(string, string, string) error
SockjsConfig: removed
SockjsHandler: removed
## compatible changes
PublishOptions.IdempotencyKey: added
PublishOptions.IdempotentResultTTL: added
PublishResult.FromCache: added
RedisBrokerConfig.SkipPubSub: added
RedisPresenceManagerConfig.EnableUserMapping: added
WithIdempotencyKey: added
WithIdempotentResultTTL: added

# summary
v0.31.0 is a valid semantic version for this release.

Full Changelog: v0.30.6...v0.31.0

v0.30.6

25 Nov 06:26
9476a84
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.30.5...v0.30.6

v0.30.5

04 Nov 07:47
8ebee8a
Compare
Choose a tag to compare

What's Changed

  • Reversed history fix for meta keys with epoch only by @FZambia in #331
  • Avoid zero offset in meta hash keys by @FZambia in #332
  • Up rueidis to v1.0.21, commit

Full Changelog: v0.30.4...v0.30.5

v0.30.4

31 Oct 04:48
91778bc
Compare
Choose a tag to compare

What's Changed

  • Remove metric locks to reduce contention in hot paths, frame type and optional channel namespace resolution for transport messages sent/received, new metric to show size of messages sent/received over transport by @FZambia in #325
  • Redis reversed history fix when meta does not exist by @FZambia in #328
  • Emulation logging tweaks by @FZambia in #326
❯ gorelease -base v0.30.3 -version v0.30.4
# github.com/centrifugal/centrifuge
## compatible changes
Config.ChannelNamespaceLabelForTransportMessagesReceived: added
Config.ChannelNamespaceLabelForTransportMessagesSent: added
Config.GetChannelNamespaceLabel: added
TransportWriteEvent.Channel: added
TransportWriteEvent.FrameType: added

# summary
v0.30.4 is a valid semantic version for this release.

Full Changelog: v0.30.3...v0.30.4

v0.30.3

12 Oct 17:06
6036b76
Compare
Choose a tag to compare

What's Changed

  • Changes for individual subscription streams by @FZambia in #310
  • Redis presence code style/layout improvements by @FZambia in #322
❯ gorelease -base v0.30.2 -version v0.30.3
# github.com/centrifugal/centrifuge
## compatible changes
(*Client).WritePublication: added
SubscribeReply.SubscriptionReady: added

# summary
v0.30.3 is a valid semantic version for this release.

Full Changelog: v0.30.2...v0.30.3

v0.30.2

10 Sep 10:01
1d2f4d2
Compare
Choose a tag to compare

What's Changed

  • Fix response controller usage in HTTP/2 case by @FZambia in #317
  • Fix Redis connection over Unix socket by @tie in #318

New Contributors

  • @tie made their first contribution in #318

Full Changelog: v0.30.1...v0.30.2

v0.30.1

27 Aug 04:11
e9246e6
Compare
Choose a tag to compare

What's Changed

  • up github.com/redis/rueidis to v1.0.16
  • up github.com/google/uuid to v1.3.1

Full Changelog: v0.30.0...v0.30.1