Skip to content

Releases: nats-io/nats.go

Release v1.3.0

10 Aug 20:47
Compare
Choose a tag to compare

Changelog

Added

  • FlusherTimeout option to limit the time the flusher can block (#252)
  • DiscoveredServersCB connection handler invoked when a server joins the cluster (#282)
  • context.Context support with new APIs: RequestWithContext, NextMsgWithContext (#275)
  • GetDefaultOptions() produces new default Options. Should be used instead of DefaultOptions. Thanks to @nogoegst (#308)

Improved

  • Performance when connection publishes to itself and reduces risk of getting slow consumer (#285)
  • Less chatty request protocol (#295, #299)
  • Use of pool for timers in Request/NextMsg/FlushTimeout calls (#297)

Changed

  • Repo name (now go-nats) (#239)
  • Authorization errors now trigger the async error callback and do not close the connection (#300)

Fixed

  • Server pool shuffling when adding new URLs when servers join the cluster (#260)
  • Very rare panic in WaitGroup.Wait() (#268)
  • Locking in handling permission violation error from server (#289)

Deprecated

  • DefaultOptions. You should use GetDefaultOptions() instead. See #308

Complete Changes

nats-io/go-nats@v1.2.2...v1.3.0

Release v1.2.2

26 Oct 23:37
Compare
Choose a tag to compare

Changelog

Added

  • Support for cluster auto-discovery with servers v0.9.4+
  • Conn.IsConnected method to verify if client is connected
  • Conn.DiscoveredServers to get the list of servers discovered after initial connect
    to server part of a cluster (with servers v0.9.4+)
  • Custom Dialers for nats.Connect()
  • staticcheck in Travis build

Updated

  • README’s Clustered Usage section
  • Travis build with go 1.7.3

Removed

  • Travis build with go 1.5

Fixed

  • Use default connect timeout in opts.Connect() if none is specified
  • Chan subscribers could not receive more than 65536 messages
  • Allow message size of 0 in examples/nats-bench.go
  • Ensure message count is greater than 0 in examples/nats-bench.go
  • If Options.Url is set, ensure it is tried first on initial connect
  • Data race with Conn.LastError()
  • Warning from go 1.7.3 with TLS config copy

Complete Changes

v1.2.0...v1.2.2