Releases: nats-io/nats.go
Releases · nats-io/nats.go
Release v1.39.1
Changelog
Fixed
- KeyValue:
- Prevent
ListKeysFiltered
from returning deleted keys. Thanks @kruegernet for the contribution (#1803)
- Prevent
Improved
- Remove stale experimental comment in Service API (#1805)
Complete Changes
v1.39.0
Changelog
Overview
This release bumps the minimal go version in go.mod
to 1.22
.
Added
- JetStream:
- KeyValue:
- Added
ListKeysFiltered
for listing keys with multiple filters. Thanks @somratdutta for the contribution (#1711)
- Added
Fixed
- JetStream:
- Fixed invalid heartbeat timer for
Consumer.Messages()
(#1786)
- Fixed invalid heartbeat timer for
- ObjectStore:
- Fixed invalid error being returned from
DeleteObjectStore
(#1762)
- Fixed invalid error being returned from
- WebSockets:
- Fixed protocol parsing errors with websocket compression and PONGs. Thanks @rsafonseca for the contribution (#1790)
- Core NATS:
- Protect against possible nil pointer panic (#1771)
Changed
- Bump go version to v1.22 (#1773)
Improved
- Fixed typo in JetStream docs. Thanks @davydog187 for the contribution (#1758)
- Improved documentation of JetStream
Consume
andMessages
options (#1770) - Removed obsolete build tags (#1787)
Complete Changes
v1.38.0
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)
Complete Changes
Release v1.37.0
Changelog
Added
- JetStream:
Fixed
- JetStream:
- Legacy JetStream:
- Change
Fetch
andFetchBatch
client timeout to a higher value (#1689)
- Change
Improved
- Trim trailing slash if set on server address which can cause errors during lookup (#1654)
- Fixed README.md formatting. Thanks @patrick-othmer for the contribution (#1692)
Deprecated
- Deprecate encoded connections (#1674)
Complete Changes
Release v1.36.0
Release v1.35.0
Changelog
Added
- Service API:
- Core NATS:
- Added
ForceReconnect
method on connection for manually triggering reconnect (#1624)
- Added
Fixed
- KeyValue:
- JetStream:
- Fixed validation for streams, consumers and KV buckets to avoid protocol errors (#1613)
- Core NATS:
- Fixed
ConnectedCB
not being invoked when usingRetryOnFailedConnect: true
and the initialnats.Connect
fails (#1619)
- Fixed
Improved
- Core NATS:
- Remove unnecessary allocations from
readMIMEHeader
(#1609)
- Remove unnecessary allocations from
- KeyValue:
- Added json tags to KeyValueConfig struct. Thanks @pricelessrabbit for the contribution (#1630)
- Legacy JetStream:
- Added documentation for
StreamConfig
in jsm.go. Thanks @kazmerdome for the contribution (#1625)
- Added documentation for
Complete Changes
Release v1.34.1
Changelog
Fixed
- JetStream:
Complete Changes
Release v1.34.0
Changelog
Added
- Core NATS:
Fixed
- Object Store:
- Add missing
Compression
struct tag (#1559)
- Add missing
- Legacy JetStream:
Fetch
andFetchBatch
will no longer publish a pull request if the subscription is closed or draining (#1582)
- Service API:
- Fixed incorrect error handling when creating a service. Thanks @ramonberrutti for the contribution (#1585)
Improved
- Object Store:
- Bind Object Store bucket stream when getting object. Thanks @dmitryabramov-f3 for the contribution (#1568, #1578)
- Add testing section and format
CONTRIBUTING.md
. Thanks @yordis for the contribution (#1574) - Improved performance of
respToken
in muxer. Thanks for the report @chgz (#1575) - Fixed typos in comments. Thanks @paoloteti for the contribution (#1581)
Complete Changes
Release v1.33.1
Changelog
Overview
This release fixes v1.33.0
release which was re-released with different tag, causing checksum mismatch when running go get github.com/nats-io/nats.go@v1.33.0
.
Complete Changes
Release v1.33.0
Changelog
Overview
This release introduces significant documentation improvements across jetstream
package components (JetStream, Object Store, and KeyValue).
Added
- JetStream:
- Object Store:
- KeyValue:
UpdateKeyValue
andCreateOrUpdateKeyValue
methods (#1549)
Fixed
- JetStream:
- Object Store:
- Fixed hardcoded read deadline when reading an object (#1531)
Improved
- Refactored and improved documentation across
jetstream
package (JetStream, KeyValue and ObjectStore) (#1532, #1537, #1551, #1553, #1555) - Change "unsafe" comment on
nats.Secure
connect option. Thanks to @thorntonmc for the contribution (#1529) - Fixed documentation typos across the codebase. Thanks to @fancycode for the contribution (#1547)