Skip to content

Release v1.11.0

Choose a tag to compare

@kozlovic kozlovic released this 04 May 01:52
3b1f6fc

Changelog

Added

  • Message Headers support
    • Conn.HeadersSupported() returns a boolean indicating if the server, the client is currently connected to, supports headers (#582)
  • JetStream support
  • Websocket support (#719)
  • LameDuckModeHandler to be notified when the server the application is connected to enters lame-duck mode (#572)
  • RequestMsg(), RequestMsgWithContext() and RespondMsg() APIs, which makes it possible to use message headers with requests and replies (#574)
  • RetryOnFailedConnect() option, which means that the Connect() calls will not fail right away if servers are not running at the first attempt to connect. Instead, the library will behave as if it was just disconnected. Thanks to @tomwilkie, @Zambiorix, @kekoav, @mnarrell, @serajam and @hbobenicio for their feedback (#581)
  • Support for "no responders" error on requests (#576)
  • Examples:
    • TLS options in nats-pub and mats-sub examples. Thanks @egodigitus for the contribution (#615)
    • --nkey flat to enable NKey authentication (#728)

Changed

  • ErrNoResponders is now returned for a request call for which there is no application servicing the request's subject (when connecting to a server that supports the feature). Applications checking for ErrTimeout only as a "normal" error would need to be updated (#576)

Updated

  • Dependencies (#573)
  • Added a go_test.mod file to limit tests dependencies versus library dependencies (#705)

Fixed

  • Comment for PublishRequest API. Thanks to @hasheddan for the contribution (#570)
  • Comment for encoded connection's Handler. Thanks to @aym-v for the contribution (#590)
  • Possible data race between an AutoUnsubscribe() and the routine delivering messages (#726)

Complete Changes

v1.10.0...v1.11.0