Support for DiscardNewPerSubject on stream configuration (#1102)
KV:
KeyValueStores() and KeyValueStoreNames() methods for listing key value buckets (#1088)
Bytes() method on KeyValueStatus returning size of the bucket (#1092)
Improved
JetStream:
Comment on Subscribe() method in JetStream interface now has a better description of the behavior after unsubscribing from a durable consumer. Thanks to @sylr for the contribution (#1100)
Changed
JetStream:
Ordered consumer is now being recreated on missing heartbeat (#1097)
AckNone policy can now be set for pull consumers (#1090)
ObjectStore:
[BREAKING] ObjectStores() now returns channel of ObjectStoreStatus instead of ObjectStore interface (#1099)
[BREAKING] Options on various ObjectStore methods now have individual types (GetObjectOpt, GetObjectInfoOpt and ListObjectsOpt). 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() and ListObjectsShowDeleted() (#1091)
Fixed
JetStream:
Invalid JSON tag on Tiers field on AccountInfo struct (#1095)
This release uses a new consumer create API when interacting with nats-server version 2.9.0 or higher. This changes the subjects used by the client to create consumers, which might in some cases require changes in access and import/export configuration. To opt out of this feature, use UseLegacyDurableConsumers() option when creating JetStreamContext.
Added
JetStream:
Support for enhanced stream purge. PurgeStream() now accepts StreamPurgeRequest as an option, allowing partial purge by subject sequence number or keeping selected number of messages (#988)
Option to fetch DeletedDetails when fetching StreamInfo. StreamInfo() now accepts StreamInfoRequest allowing to pass DeletedDetails flag (#990)
Option to report subjects on StreamInfo() request. StreamInfo() now accepts StreamInfoRequest allowing to pass SubjectsFilter value (#1010)
Support AllowDirect in stream configuration, enabling faster access to individual messages on a stream (#991)
Support for DirectGet API in GetMsg() through DirectGet() and DirectGetNext() options (#1020, #1030)
HeadersOnly option to RePublish field on stream configuration and change struct name to RePublish (#991)
SecureDeleteMsg() method to securely delete and overwrite a message on a stream (#1025)
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.10.0 to 1.18.0.
Release notes
Sourced from github.com/nats-io/nats.go's releases.
... (truncated)
Commits
885ad13
Release v1.18.0 (#1105)7d22790
Change listing KVs and object stores to return status (#1099)543e628
Merge pull request #1095 from nats-io/js-account-info-typob142f60
Add DiscardNewPerSubject to stream config (#1102)2b03e25
Improve durable consumer unsubscribe comment (#1100)1ee76ea
[CHANGED] Ordered consumer recreate on missing heartbeat (#1097)ac7358d
js: Fix typo in AccountInfo JSON to handle Tiers36d2b65
Merge pull request #1092 from nats-io/jnm/kv_expose_bytes820a067
Exposes Bytes from the stream info in KeyValueBucketStatus991297b
Merge pull request #1085 from nats-io/update-chan-subscribe-docDependabot 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)