Releases: nats-io/nats.go
Releases · nats-io/nats.go
Release v1.25.0
Changelog
Added
Improved
- Fix
TestJetStreamStreamInfoWithSubjectDetails
test (#1225) - Fix typo in JetStream
Durable()
option comment. Thanks @jlvallelonga fot the contribution (#1229) - Bump nkeys to latest version (#1235)
Changed
- JetStream:
Complete Changes
Release v1.24.0
Changelog
Added
- Core:
- Option to skip host lookup. Thanks to @chen-shmilovich-sysdig for the contribution (#1204)
- JetStream
FetchChan
method to utilize non-blocking pull subscription requests (#1211)
- Service API (
micro
):ContextHandler
helper function which implementsmicro.Handler
and allows passingcontext.Context
to request handler (#1215)
Improved
- Use go 1.19 in
go.mod
and skip using deprecatedrand.Seed
for go version +1.20 (#1209)
Fixed
- JetStream:
- Service API (
micro
):- Avoid panic on schema request when no schemas were given (#1195)
- KV:
Complete Changes
Release v1.23.0
Changelog
Overview
This release focuses on improvements in micro
package, most notably adding a possibility to create a service with multiple endpoints.
Added
- Service API (
micro
):
Changed
- JetStream:
- Optimize
AddConsumer()
performance by not sending JS request if consumer config has not changed (#1185)
- Optimize
- Service API (
micro
):
Improved
- Check whether credentials in
nats.Connect()
are missing before using them (#1181) - Reduce the size of the bufio.Reader for message header parsing. Thanks to @thomas-long-f3 for the contribution (#1187)
- Update go version in
go.mod
to 1.18 and update go version used by Travis (#1182) - Start adopting error wrapping syntax (
%w
) in various errors (#1182) - Added note on disabling reconnect buffer on
nats.ReconnectBufSize()
(#1169) - Fix typos in comments in
micro
package. Thanks to @chenjpu for the contribution (#1171)
Fixed
- JetStream
- Pass opts to
ConsumerInfo
call inAddConsumer()
(#1176) - Use custom inbox prefix in async reply. Thanks to @guyguy333 for the contribution (#1190)
- Pass opts to
Complete Changes
Release v1.22.1
Changelog
Changed
- Service API:
Complete Changes
Release v1.22.0
Changelog
Overview
This release adds a beta implementation of micro
package, which provides API for creating and monitoring microservices on top of NATS connection.
Added
Complete Changes
Release v1.21.0
Changelog
Added
ConnectHandler
connect option to detect that initial connection was established. This is especially useful when combined withRetryOnFailedConnect
(#1133 )IgnoreAuthErrorAbort
connect option to prevent aborting reconnect attempts after receiving the same authentication error twice (#1141)SkipTLSHandshake
option toCustomDialer
.SkipTLSHandshake
method can be implemented on a custom dialer to prevent TLS handshake if not needed (#1147)- KV:
- JetStream:
- Add
ErrLeadershipChanged
error, returned when consumer leadership has changed during a pull request on a consumer. Thanks to @sata-form3 for the contribution (#1151)
- Add
Improved
- Remove deprecated usages of
io/ioutil
. Thanks to @cesarvspr for the contribution (#1150) - Remove experimental notice from KV implementation (#1154)
Complete Changes
Release v1.20.0
Changelog
Changed
- JetStream:
- [BREAKING CHANGE] Extract
nats: Consumer Deleted
server error toErrConsumerDeleted
variable. This error is returned when consumer is deleted while waiting on pull request and was introduced in nats-server v2.9.6 (#1125)
- [BREAKING CHANGE] Extract
Improved
- JetStream:
- Fix broken comments on
ErrConsumerNameAlreadyInUse
andStreamNameBySubject()
. Thanks to @subtle-byte for the contribution (#1128)
- Fix broken comments on
- Core NATS:
- Improve comment on
RetryOnFailedConnect
connect option (#1127)
- Improve comment on
Complete Changes
Release v1.19.1
Release v1.19.0
Changelog
Added
- KV:
- Support for KV mirrors and sources (#1112)
Improved
- JetStream:
- Comment on
InactiveThreshold
to align with server version 2.9.0. Thanks to @neilalexander for the contribution (#1106)
- Comment on
Experimental
- Added Service framework for microservice communication using core NATS. This is an experimental preview and may be changed in future releases (#1111)
Complete Changes
Release v1.18.0
Changelog
Added
- JetStream:
- Support for
DiscardNewPerSubject
on stream configuration (#1102)
- Support for
- KV:
Improved
- JetStream:
Changed
- JetStream:
- ObjectStore:
- [BREAKING]
ObjectStores()
now returns channel ofObjectStoreStatus
instead ofObjectStore
interface (#1099) - [BREAKING] Options on various
ObjectStore
methods now have individual types (GetObjectOpt
,GetObjectInfoOpt
andListObjectsOpt
). Only options applicable for a particular method can be used (#1091) - [BREAKING] When listing/fetching object info, deleted objects are now hidden by default. New options are added to enable fetching deleted objects (
GetObjectInfoShowDeleted()
,GetObjectShowDeleted()
andListObjectsShowDeleted()
(#1091)
- [BREAKING]
Fixed
- JetStream:
- Invalid JSON tag on
Tiers
field onAccountInfo
struct (#1095)
- Invalid JSON tag on