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

one day ago

Added

  • Client-side subject validation for publish, subscribe and request, with a skip_subject_validation connect option to opt out (#1016)
  • Allow user and password to be callables for credential refresh on reconnect (#891)
  • StreamSource.consumer and AckPolicy.FLOW_CONTROL for pre-created sourcing consumers (#937)
  • JetStreamManager.reset_consumer and ConsumerInvalidResetError (#941)
  • Counter stream wire support (#940)
  • Atomic batch publish headers and PubAck fields (#938)
  • Message schedule header constants (#939)

Changed

  • Validate header keys and sanitize header values before publishing (#1017)
  • Subscribing to subjects with empty tokens or misplaced wildcards now fails client-side with BadSubjectError instead of a server error (#1016)

Fixed

  • Default a missing port to 4222 and preserve the scheme and userinfo for every server in a URL list (#913, #1009)
  • Resolve the WebSocket close task when a connection was never established, so close() no longer hangs (#993)

Don't miss a new nats.py release

NewReleases is sending notifications on new releases.