Skip to content

Instantly share code, notes, and snippets.

@FZambia
Created May 8, 2020 12:38
Show Gist options
  • Save FZambia/f59ce1c82ceb23286ccf427623a45e37 to your computer and use it in GitHub Desktop.
Save FZambia/f59ce1c82ceb23286ccf427623a45e37 to your computer and use it in GitHub Desktop.
Centrifuge v0.8.0 release diff vs v0.7.0
$ gorelease -base=v0.7.0 -version=v0.8.0
github.com/centrifugal/centrifuge
---------------------------------
Incompatible changes:
- (*Client).Send: changed from func(github.com/centrifugal/protocol.Raw) error to func([]byte) error
- (*MemoryEngine).AddHistory: changed from func(string, *github.com/centrifugal/protocol.Publication, *ChannelOptions) (*github.com/centrifugal/protocol.Publication, error) to func(string, *github.com/centrifugal/protocol.Publication, *ChannelOptions) (StreamPosition, bool, error)
- (*Node).Disconnect: changed from func(string, bool) error to func(string, ...DisconnectOption) error
- (*Node).History: changed from func(string) ([]*github.com/centrifugal/protocol.Publication, error) to func(string, ...HistoryOption) (HistoryResult, error)
- (*Node).Publish: changed from func(string, []byte, ...PublishOption) error to func(string, []byte, ...PublishOption) (PublishResult, error)
- (*Node).Unsubscribe: changed from func(string, string) error to func(string, string, ...UnsubscribeOption) error
- (*RedisEngine).AddHistory: changed from func(string, *github.com/centrifugal/protocol.Publication, *ChannelOptions) (*github.com/centrifugal/protocol.Publication, error) to func(string, *github.com/centrifugal/protocol.Publication, *ChannelOptions) (StreamPosition, bool, error)
- ChannelContext.Info: changed from github.com/centrifugal/protocol.Raw to []byte
- ConnectEvent.Data: changed from github.com/centrifugal/protocol.Raw to []byte
- ConnectReply.Data: changed from github.com/centrifugal/protocol.Raw to []byte
- ErrPublished: removed
- HistoryManager.AddHistory: changed from func(string, *github.com/centrifugal/protocol.Publication, *ChannelOptions) (*github.com/centrifugal/protocol.Publication, error) to func(string, *github.com/centrifugal/protocol.Publication, *ChannelOptions) (StreamPosition, bool, error)
- Join: removed
- Leave: removed
- LogStringToLevel: removed
- MessageEvent.Data: changed from github.com/centrifugal/protocol.Raw to []byte
- ProtocolType: changed from github.com/centrifugal/protocol.Type to ProtocolType
- ProtocolTypeJSON: changed from github.com/centrifugal/protocol.Type to ProtocolType
- ProtocolTypeProtobuf: changed from github.com/centrifugal/protocol.Type to ProtocolType
- PublishEvent.Data: changed from github.com/centrifugal/protocol.Raw to []byte
- PublishReply.Data: changed from github.com/centrifugal/protocol.Raw to []byte
- Push: removed
- PushTypeJoin: removed
- PushTypeLeave: removed
- PushTypePublication: removed
- RPCEvent.Data: changed from github.com/centrifugal/protocol.Raw to []byte
- RPCReply.Data: changed from github.com/centrifugal/protocol.Raw to []byte
- RecoveryPosition.Gen: removed
- RecoveryPosition.Seq: removed
- RecoveryPosition: removed
- RedisEngineConfig.SequenceTTL: removed
- RefreshReply.Info: changed from github.com/centrifugal/protocol.Raw to []byte
- SubRefreshReply.Info: changed from github.com/centrifugal/protocol.Raw to []byte
- SubscribeReply.ChannelInfo: changed from github.com/centrifugal/protocol.Raw to []byte
- TransportInfo.Protocol: changed from func() github.com/centrifugal/protocol.Type to func() ProtocolType
Compatible changes:
- CompatibilityFlags: added
- DisconnectOption: added
- DisconnectOptions: added
- HistoryOption: added
- HistoryOptions: added
- HistoryResult: added
- MemoryEngineConfig.HistoryMetaTTL: added
- PublishResult: added
- RPCEvent.Method: added
- RecoveryPosition.Offset: added
- RedisEngineConfig.HistoryMetaTTL: added
- RedisEngineConfig.UseStreams: added
- RedisShardConfig.ClusterAddrs: added
- Since: added
- StreamPosition: added
- UseSeqGen: added
- WithLimit: added
- WithNoLimit: added
- WithReconnect: added
v0.8.0 is a valid semantic version for this release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment