github nats-io/nats.py v2.17.0
Release v2.17.0

27 minutes ago

Added

  • JetStream pull consumer priority groups, including pinned, overflow and prioritized policies, consumer unpinning and priority-group state (#1015)
  • Metadata support in KeyValueConfig and create_key_value (#1045)
  • StreamAlternate and StreamInfo.alternates for alternate locations of mirrored stream data (#1098)

Changed

  • Reject durable consumer and queue-group settings when creating or binding ordered consumers (#1047)

Fixed

  • Enforce configured TLS across seed selection, discovery, server-pool replacement and reconnects, including WebSocket connections. Connections that previously fell back to plaintext now fail when TLS is required (#1118)

  • Discard server discovery received in the plaintext INFO greeting before a TLS upgrade; accept fresh discovery received over the encrypted connection (#1119)

  • Ignore credentials in server-advertised addresses. Preserve client URL credentials separately, keep discovery credentials bound to the active connection, and retain inherited credentials across server-pool replacement (#1120)

  • Publish key-value mutations through the configured JetStream API prefix for domain contexts (#1011)

  • Surface credential file permission errors instead of retrying them during connection and reconnect (#1024)

  • Process queued callback messages before stopping at the auto-unsubscribe limit (#1035)

  • Reconnect when authentication expires and report AuthenticationExpiredError (#1029)

  • Keep stale-connection detection working after cancelled or timed-out flushes (#1031)

  • Send explicit passwords alongside signed NKey/JWT CONNECT credentials, including callable passwords (#1043)

  • Interrupt pending pull fetches on connection loss with FetchDisconnectedError, a subclass of nats.errors.TimeoutError, instead of waiting indefinitely or until the fetch timeout (#1065)

  • Raise nats.errors.TimeoutError when the pull-fetch deadline expires before a lingering request can be sent (#980)

  • Parse V2 ACK subjects correctly in ordered consumers and Object Store reads (#1071)

  • Bind Object Store reads and watchers to the backing stream by name so mirrored buckets support get, watch and list (#976)

  • Use timezone-aware UTC timestamps in micro services without changing their wire format (#1115)

Full Changelog: v2.16.0...v2.17.0

Don't miss a new nats.py release

NewReleases is sending notifications on new releases.