From 892e5f570e50687eadcf98929cca672e47862faf Mon Sep 17 00:00:00 2001 From: LaunchDarklyCI Date: Thu, 23 Jul 2020 21:13:13 +0000 Subject: [PATCH] Releasing version 1.6.0 --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b55b89e..798b5e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to the project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org). +## [1.6.0] - 2020-07-23 +### Added: +- `Server.Unregister` method for removing a `Repository` registration and optionally forcing clients to disconnect. +- `Server.PublishWithAcknowledgement` method for ensuring that an action does not happen until an event has been dispatched. + +### Fixed: +- Fixed a race condition in which `Server` might close a channel while another goroutine is trying to write to it. This would happen if you registered a `Repository` that replays events, started a handler, then closed the `Server` while the events were still replaying. +- Improved unit test coverage. + ## [1.5.0] - 2020-07-15 ### Added: - `Server.MaxConnTime` is an optional setting to make the `Server` automatically close any stream connection that has stayed open for at least that amount of time. This may be useful in preventing server instances from accumulating too many connections in a load-balanced environment.