Changelog
Added
- Core NATS:
- Added
UserInfoHandler
for dynamically setting user/password (#1713) - Added
PermissionErrOnSubscribe
option, causingSubscribeSync
to returnnats.ErrPermissionViolation
onNextMsg()
if there was a permission error (#1728) - Added
Msgs()
method onSubscription
, returning an iterator (iter.Seq2[*nats.Msg, error]
) for the subscription. This method is only available for go version >=1.23 (#1728)
- Added
- KeyValue:
- Added
WatchFiltered
method to watch for updates with multiple filters (#1739)
Fixed
- Core NATS:
- Fixed closing connections on max subscriptions exceeded (#1709)
- Removed redundant nil checks. Thanks @ramonberrutti for the contribution (#1751)
- Add missing nats prefix to error (#1753)
- JetStream:
- Legacy JetStream:
- Fixed race condition in
MessageBatch
(#1743)
- Fixed race condition in
Changed
- Legacy Jetstream:
- Added client retry for jetstream async publish old API. Thanks @pranavmehta94 for the contribution (#1695)
Improved
- Moved CI to github actions (#1623, #1716)
- Use errors.New instead of fmt.Errorf to improve efficiency. Thanks @canack for the contribution (#1707)
- Fixed invalid schemas in Service API documentation (#1720)
- Added mention of TTL reset in
kv.Update
method. Thanks @fmontorsi-equinix for the contribution (#1727) - Updated installation commands in
README.md
(#1745) - Bump
nkeys
to v0.4.9 (#1750)