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

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

Changelog

Overview

This release focuses on improvements in micro package, most notably adding a possibility to create a service with multiple endpoints.

Added

  • Service API (micro):
    • Support for multi-endpoint services (#1180)
    • type field in monitoring handlers responses (#1173)

Changed

  • JetStream:
    • Optimize AddConsumer() performance by not sending JS request if consumer config has not changed (#1185)
  • Service API (micro):
    • Use interface instead of struct for micro.Request (#1174)
    • Use time.Time instead of string for Started field in STATS response (#1175)
    • Service schemas are now defined per-endpoint.

Improved

  • Check whether credentials in nats.Connect() are missing before using them (#1181)
  • Reduce the size of the bufio.Reader for message header parsing. Thanks to @thomas-long-f3 for the contribution (#1187)
  • Update go version in go.mod to 1.18 and update go version used by Travis (#1182)
  • Start adopting error wrapping syntax (%w) in various errors (#1182)
  • Added note on disabling reconnect buffer on nats.ReconnectBufSize() (#1169)
  • Fix typos in comments in micro package. Thanks to @chenjpu for the contribution (#1171)

Fixed

  • JetStream
    • Pass opts to ConsumerInfo call in AddConsumer() (#1176)
    • Use custom inbox prefix in async reply. Thanks to @guyguy333 for the contribution (#1190)

Complete Changes

v1.22.1...v1.23.0

Don't miss a new nats.go release

NewReleases is sending notifications on new releases.