Skip to content

Release v1.23.0

Compare
Choose a tag to compare
@piotrpio piotrpio released this 18 Jan 13:20
· 271 commits to main since this release
966ad0d

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