Minor release of the nats-py client.
pip install nats-py
Added
- Lame duck mode handling for graceful reconnection (#869)
rttmethod toClientfor measuring round-trip time (#858)client_ipproperty toClient(#861)consumer_limitssupport toStreamConfig(#780)first_seqsupport toStreamConfig(#779)limit_marker_ttlsupport for KV watchers (#911)updates_onlymode to object store watch (#666)- Stream created datetime to
StreamInfo(#772) - JetStream direct get timestamp parsing (#810)
- Send
auth_tokenalongside nkey/JWT inCONNECT(#900)
Changed
- Replace
email.parserpath in_process_headerswith a byte-level parser (#928) - Restrict
msg_ttlto the create and purge key-value operations (#834) - Validate stream and consumer names before API requests (#890)
- Avoid
$JS.API.STREAM.NAMEScall 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
LICENSEfile in the nats-py sdist (#840)
Fixed
- Avoid hang when
KeyWatcher.stop()runs on a full queue (#899) - Fix
PullSubscription.fetchhang 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 aNone_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