Changelog
Overview
This release focuses on improvements to new JetStream API and Service API (micro
) preview functionalities.
Added
- JetStream Simplified API:
StreamNameBySubject()
method for stream discovery based on provided subject (#1292)
Improved
- JetStream Simplified API:
- Simplified lock handling for
Consume()
andMessages()
(#1303)
- Simplified lock handling for
Changed
- JetStream Simplified API:
- [BREAKING CHANGE] Renamed
AddConsumer
toCreateOrUpdateConsumer
. This change is introduced in anticipation for separation of create and update operations innats-server
(#1300) - [BREAKING CHANGE] Change default
AckPolicy
toAckPolicyExplicit
(#1278) - [BREAKING CHANGE] Fixed typo in
PullThresholdBytes
type name (#1300) - [BREAKING CHANGE] Removed push consumer only fields from
ConsumerConfig
(#1300) - [BREAKING CHANGE] Removed
context.Context
fromPublishAsync
andPublishMsgAsync
(#1300)
- [BREAKING CHANGE] Renamed
- Service API (
micro
):- [BREAKING CHANGE] More verbose endpoint
INFO
schema (#1277)- Endpoint metadata was moved from
STATS
response toINFO
response INFO
now returnsendpoints
object, containing subject, name and metatada. This replacessubject
field.
- Endpoint metadata was moved from
- [BREAKING CHANGE] More verbose endpoint
Fixed
- JetStream Simplified API:
- Fixed data race on
ErrNoHeartbeat
. Thanks @alexisvisco for the contibution! (#1291) - Fixed incorrect example in
jetstream/README.md
). Thanks @bojanz for the contribution! (#1295)
- Fixed data race on
- Object Store:
- Fixed leaking goroutines after calling
Put()
andPutBytes()
(#1282)
- Fixed leaking goroutines after calling
- Flaky tests picking the used port for cluster connections (#1284, #1298)
- Division by zero fixes in bechmark tests. Thanks @Zamony fot the contribution! (#1293)