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

5 hours ago

Minor release of the nats-py client.

pip install nats-py

Added

  • Lame duck mode handling for graceful reconnection (#869)
  • rtt method to Client for measuring round-trip time (#858)
  • client_ip property to Client (#861)
  • consumer_limits support to StreamConfig (#780)
  • first_seq support to StreamConfig (#779)
  • limit_marker_ttl support for KV watchers (#911)
  • updates_only mode to object store watch (#666)
  • Stream created datetime to StreamInfo (#772)
  • JetStream direct get timestamp parsing (#810)
  • Send auth_token alongside nkey/JWT in CONNECT (#900)

Changed

  • Replace email.parser path in _process_headers with a byte-level parser (#928)
  • Restrict msg_ttl to the create and purge key-value operations (#834)
  • Validate stream and consumer names before API requests (#890)
  • Avoid $JS.API.STREAM.NAMES call since the stream name is known (#807)
  • Use a string default in connect() to avoid a mutable default argument (#884)
  • Replace deprecated asyncio.iscoroutinefunction (#932)
  • Migrate the build from setuptools to uv_build (#813)
  • Include the LICENSE file in the nats-py sdist (#840)

Fixed

  • Avoid hang when KeyWatcher.stop() runs on a full queue (#899)
  • Fix PullSubscription.fetch hang due to an orphan lingering request (#934)
  • Fix flush hanging when internal tasks are cancelled externally (#853)
  • Avoid cancelling the current task on close (#841)
  • Guard close() against a None _io_reader (#839)
  • Fix dropped message when cancelling the subscription messages iterator (#804)
  • Handle CAS error code 10164 in KV update (#883)
  • Strip whitespace from nkeys seed input (#882)
  • Disable WebSocket max message size (#855)
  • Handle non-binary WebSocket frame types (#893)
  • Normalize ISO timestamp fractional seconds to 6 digits for Python <3.11 (#796)
  • Fix error in UTC to ISO conversion (#846)

Full Changelog: v2.14.0...v2.15.0

Don't miss a new nats.py release

NewReleases is sending notifications on new releases.