github nats-io/nats.go v1.21.0
Release v1.21.0

latest releases: v1.37.0, v1.36.0, v1.35.0...
21 months ago

Changelog

Added

  • ConnectHandler connect option to detect that initial connection was established. This is especially useful when combined with RetryOnFailedConnect (#1133 )
  • IgnoreAuthErrorAbort connect option to prevent aborting reconnect attempts after receiving the same authentication error twice (#1141)
  • SkipTLSHandshake option to CustomDialer. SkipTLSHandshake method can be implemented on a custom dialer to prevent TLS handshake if not needed (#1147)
  • KV:
    • Return ErrKeyExists error when attempting to Create() a KV pair for an existing key (#1135, #1136)
  • JetStream:
    • Add ErrLeadershipChanged error, returned when consumer leadership has changed during a pull request on a consumer. Thanks to @sata-form3 for the contribution (#1151)

Improved

  • Remove deprecated usages of io/ioutil. Thanks to @cesarvspr for the contribution (#1150)
  • Remove experimental notice from KV implementation (#1154)

Complete Changes

v1.20.0...v1.21.0

Don't miss a new nats.go release

NewReleases is sending notifications on new releases.