+
Skip to content

Releases: centrifugal/centrifuge

v0.37.2

11 Sep 04:12
c2a3246

Choose a tag to compare

What's Changed

Full Changelog: v0.37.1...v0.37.2

v0.37.1

05 Sep 12:11
b2d5f6f

Choose a tag to compare

What's Changed

  • WebSocket frame ping/pong tweaks by @FZambia in #503
  • Client details: connection time, ping/pong latency by @FZambia in #504
  • Up dependencies
❯ gorelease -base v0.37.0 -version v0.37.1
# github.com/centrifugal/centrifuge
## compatible changes
(*Client).ConnectedAtMS: added
(*Client).LatestPingPongLatency: added

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

Full Changelog: v0.37.0...v0.37.1

v0.37.0

23 Jul 03:00
3d7e182

Choose a tag to compare

What's Changed

This release slightly changes the behaviour of the library by setting a max cap on TTL for connections and subscriptions (in #495). This happens internally and does not require changes in application's code. We expect this to not affect anyone since the max cap is large – one year. But making a new minor version bump to emphasise the change.

  • Fix duration overflow due to buggy exp, max ttl 1 year by @FZambia in #495
  • Make websocket package to not depend on centrifuge internal packages by @FZambia in #492
  • Avoid math/rand usage for ws client masking by @FZambia in #493
  • Method to get redis shard mode by @FZambia in #494
  • Adding recovered publications histogram (must be explicitly enabled via MetricsConfig), has_recovered_publications label for recover counter by @FZambia in #496
  • Up dependencies by @FZambia in #497
❯ gorelease -base=v0.36.2 -version=v0.37.0
# github.com/centrifugal/centrifuge
## compatible changes
(*RedisShard).Mode: added
MetricsConfig.EnableRecoveredPublicationsHistogram: added
RedisShardMode: added
RedisShardModeCluster: added
RedisShardModeSentinel: added
RedisShardModeStandalone: added

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

Full Changelog: v0.36.2...v0.37.0

v0.36.2

09 Jul 18:34
0033e3e

Choose a tag to compare

What's Changed

Full Changelog: v0.36.1...v0.36.2

v0.36.1

08 Jun 06:36
7e7d5a7

Choose a tag to compare

What's Changed

  • Refactor benchmark layout, remove non-actual examples by @FZambia in #482
  • Up dependencies

Full Changelog: v0.36.0...v0.36.1

v0.36.0

03 May 08:10
e582c1f

Choose a tag to compare

What's Changed

  • Add Controller interface by @FZambia in #467 - cross-node communication may be not a part of Broker now
  • Fix concurrent map iteration and write panic by @FZambia in #473 - the panic could happen during issues with Redis
  • Add FlushLatestPublication option for ChannelBatchConfig by @FZambia in #471 - this is nice to save bandwidth in channels where the loss of intermediary messages is acceptable and beneficial
  • Possibility to provide version and version epoch fields for publication by @FZambia in #472 - drop unordered messages on Centrifuge Broker level, can be useful in channels where the entire state is send in every Publication
  • Possibility to register custom client timer scheduler by @FZambia in #474
  • Remove one alloc on subprotocol selection by @FZambia in #476 - speed ups WebSocket upgrades a bit
  • Channel level batching: keep latest publication separate by @FZambia in #479 - makes per-channel batching more memory effective since Centrifuge only keeps latest publication in the intermediary buffer
  • Use base64.StdEncoding.AppendEncode in encodeAcceptKey by @FZambia in #481 - simplifies code a bit by using a new helper from Go std lib.
❯ gorelease -base v0.35.0 -version v0.36.0
# github.com/centrifugal/centrifuge
## incompatible changes
(*MemoryBroker).PublishControl: removed
(*MemoryBroker).Run: removed
(*RedisBroker).Run: removed
Broker.PublishControl: removed
Broker.RegisterBrokerEventHandler: added
Broker.Run: removed
BrokerEventHandler.HandleControl: removed
## compatible changes
(*MemoryBroker).RegisterBrokerEventHandler: added
(*Node).SetController: added
(*RedisBroker).RegisterBrokerEventHandler: added
(*RedisBroker).RegisterControlEventHandler: added
ChannelBatchConfig.FlushLatestPublication: added
Config.ClientTimerScheduler: added
ControlEventHandler: added
Controller: added
PublishOptions.Version: added
PublishOptions.VersionEpoch: added
TimerCanceler: added
TimerScheduler: added
WithVersion: added

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

Full Changelog: v0.35.0...v0.36.0

v0.35.0

21 Mar 17:57

Choose a tag to compare

What's Changed

  • Support rediss:// scheme in Redis address and autodetect Redis Cluster by @FZambia in #463. Modern cloud providers usually provide redis://host:port or rediss://host:port URLs to users, which may correspond to either standalone Redis or Redis Cluster under the hood. Things should now work out of the box for Centrifuge users when using this string as the Redis address, making Centrifuge Redis Broker more cloud-friendly.
  • Per channel writer for per channel batching by @FZambia in #466 - experimental API for joining messages on channel level. Enabling batching on channel level adds overhead since messages go through additional buffers for every connection. But at the same time in channels with many messages per second it can actually result into drastically reduced CPU usage since less syscalls are being made.
  • Up rueidis to v1.0.56, min Go version 1.23 by @FZambia in #468
❯ gorelease -base v0.34.4 -version v0.35.0
# github.com/centrifugal/centrifuge
## compatible changes
ChannelBatchConfig: added
Config.GetChannelBatchConfig: added

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

Full Changelog: v0.34.4...v0.35.0

v0.34.4

04 Mar 06:20

Choose a tag to compare

What's Changed

  • Cache preflight requests by @FZambia in #461 - this allows to reduce number of preflight requests in cross-origin bidirectional emulation scenarios for http_stream and emulation endpoints. Good to reduce total number of requests and get only one RTT instead of two. Cache value used is 300 seconds.
  • Return 204 instead of 200 for preflight requests
  • Document http.ResponseController usage in emulation transports
  • Downgrade rueidis to v1.0.53 to avoid auth errors when forcing RESP2 (should be fixed in the next rueidis version)

Full Changelog: v0.34.3...v0.34.4

v0.34.3

20 Feb 18:34
37f5699

Choose a tag to compare

What's Changed

  • Unidirectional transports: optimizations and delta encoding support enabler by @FZambia in #459
  • Add Valkey (standalone and cluster) to integration tests by @FZambia in #460
  • Only redact non-empty tokens by @FZambia in #455
  • Fix not using redis prefix for xrange support check by @FZambia in #456
  • Redact Connect.Headers values by @FZambia in #458

Full Changelog: v0.34.2...v0.34.3

❯ gorelease -base v0.34.2 -version v0.34.3
# github.com/centrifugal/centrifuge
## compatible changes
(*Client).ProtocolConnect: added
(*Client).ProtocolConnectNoErrorToDisconnect: added
ConnectRequest.Headers: added

v0.34.2

24 Jan 17:30
02337e6

Choose a tag to compare

What's Changed

  • Use errors.As for disconnect extraction by @FZambia in #454

Full Changelog: v0.34.1...v0.34.2

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载