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

5 hours ago

Changelog

This release raises the minimum supported Go version to 1.26 and adds support for nats-server v2.15 stream and consumer info fields.

ADDED

  • Core NATS:
    • nats.MultipathTCP() option to enable or disable MPTCP for outbound connections (#2145)
    • Conn.ConnectedDomain() to read the JetStream domain advertised by the connected server (#2139)
  • JetStream:
    • ClusterInfo.Desired, PeerInfo.Peer, PeerInfo.Pending and StreamSourceInfo.Seq in stream and consumer info, reported by nats-server v2.15 (#2144)
    • Nats-Schedule-Rollup header const and WithScheduleRollup() publish option (#2142)

FIXED

  • Core NATS:
    • Panic in DecodeHeadersMsg on inline status tokens shorter than 3 characters. Thanks @nikitha-m for the contribution (#2101)
    • Data race on Subscription.sid between applyNewSID and removeSub (#2122)
  • JetStream:
    • Messages() iterator going silent after a reconnect that completes between Next() calls. Thanks @1995parham for the contribution (#2135)
    • Legacy ordered consumer silently losing messages when the subscription hits its pending limits (#2137)
    • Legacy ordered consumer reset resurrecting an unsubscribed or draining subscription (#2133)

IMPROVED

  • Core NATS:
    • Avoid allocation when parsing header message arguments with a fifth token. Thanks @0xAozora for the contribution (#2130)
    • Preallocate reply subject buffers. Thanks @0xAozora for the contribution (#2123)
  • JetStream:
    • Prevent doErr closure escaping to the heap in async publish reply handling. Thanks @0xAozora for the contribution (#2127)
    • Fix typo in Publisher interface methods comment. Thanks @sreeram77 for the contribution (#2120)
  • Minimum Go version is now 1.26 (#2146)
  • Bump klauspost/compress to v1.20.0 and nkeys to v0.4.16 (#2117, #2146)
  • Tests run locally without docker via an in-process ntf tester (#2131), and CI now runs against nats-server v2.15.0 (#2146)
  • Fix flaky cluster restart tests (#2141) and list consumers test against latest server (#2138)

Complete Changes

v1.53.1...v1.54.0

Don't miss a new nats.go release

NewReleases is sending notifications on new releases.