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() and Messages() (#1303)
Changed
JetStream Simplified API:
[BREAKING CHANGE] Renamed AddConsumer to CreateOrUpdateConsumer. This change is introduced in anticipation for separation of create and update operations in nats-server (#1300)
[BREAKING CHANGE] Change default AckPolicy to AckPolicyExplicit (#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 from PublishAsync and PublishMsgAsync (#1300)
Service API (micro):
[BREAKING CHANGE] More verbose endpoint INFO schema (#1277)
Endpoint metadata was moved from STATS response to INFO response
INFO now returns endpoints object, containing subject, name and metatada. This replaces subject field.
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)
Object Store:
Fixed leaking goroutines after calling Put() and PutBytes() (#1282)
Flaky tests picking the used port for cluster connections (#1284, #1298)
Division by zero fixes in bechmark tests. Thanks @Zamony fot the contribution! (#1293)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/nats-io/nats.go from 1.26.0 to 1.27.0.
Release notes
Sourced from github.com/nats-io/nats.go's releases.
Commits
b2d067b
Release v1.27.0 (#1309)e87441c
[ADDED] Info on new JetStream API in readme (#1308)abd4cb0
[CHANGED] Simplified JetStream API changes and improvements (#1300)15f03a8
[IMPROVED] Lock handling for pull consumers (#1303)f554c44
[ADDED] Lookup stream name by subject (#1292)10a535a
[CHANGED] More verbose endpoint info on INFO requests (#1277)8f2b734
[FIXED] Prematurely closing TCP conn when getting random addr in test (#1298)0d68857
[FIXED] Datarace when using simplified consumer #1279 (#1291)860dcc5
Divisions by zero fixes (#1293)2570703
Fix incorrect example in jetstream README. (#1295)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)