Releases: leonsteinhaeuser/observer
Releases · leonsteinhaeuser/observer
v2.0.1
v2.0.0
Changelog
Bug fixes
- 8b93e33: fix: path to basic example (@leonsteinhaeuser)
Enhancements
- 2ab4e59: enhancement: added codecov (@leonsteinhaeuser)
- beed682: enhancement: minor ci improvements (#2) (@leonsteinhaeuser)
- bda7a73: enhancement: use sync.Map to avoid using constructor NewObserver (#1) (@andviro)
Differences between v1 and v2
The v2 release contains breaking changes. The most important ones are:
- The
Observable
interface does not provide aClients() int64
method anymore. - The constructor
NewObserver()
has been removed. Instead, usenew(observer.Observer[T])
. - The
Observer
has become aNotifyTimeout
that can be used to set a timeout for theNotifyAll
method. The default value is5 * time.Second
.
v1.1.0
Changelog
Enhancements
- c50e703: enhancement: added timeout of 5 second to NotifyAll (@leonsteinhaeuser)
- 6567b13: enhancement: close channel before deleting the client (@leonsteinhaeuser)
- 870ee8a: enhancement: simplified api (@leonsteinhaeuser)
- 422c89d: enhancement: use git instead of github to generate the changelog (@leonsteinhaeuser)
Others
- 5c605ec: examle: simplified example (@leonsteinhaeuser)