Update module github.com/nats-io/nats.go to v1.18.0 - autoclosed #3

Closed
kjuulh wants to merge 1 commits from renovate/github.com-nats-io-nats.go-1.x into main
Owner

This PR contains the following updates:

Package Type Update Change
github.com/nats-io/nats.go require minor v1.16.0 -> v1.18.0

Release Notes

nats-io/nats.go

v1.18.0

Compare Source

Changelog

Added
  • JetStream:
    • 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](https://github.com/nats-io/nats.go/issues/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](https://github.com/nats-io/nats.go/issues/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](https://github.com/nats-io/nats.go/issues/1091))
      
      
Fixed
  • JetStream:
    • Invalid JSON tag on Tiers field on AccountInfo struct (#​1095)
Complete Changes

v1.17.0

Compare Source

Changelog

IMPORTANT

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)
    • MaxRequestMaxBytes() PullConsumer() option allowing setting the maximum number of bytes a single Fetch()can receive (#​1043)
    • Filter streams and stream names by subject in StreamsInfo() and StreamNames() using StreamListFilter() option (#​1062)
    • Accept AckAll for pull consumers. Thanks to @​neilalexander for the contribution (#​1063)
    • Support for setting consumer replicas through Subscribe() options. Thanks to @​goku321 for the contribution (#​1019)
    • Support for setting memory storage on consumer with ConsumerMemoryStorage() option in Subscribe(). Thanks to @​goku321 for the contribution (#​1078)
  • KV:

    • RePublish option on key value configuration (#​1031)
  • ObjectStore:

    • ObjectStores() and ObjectStoreNames() methods for listing object store buckets (#​1074)
  • TLSConnectionState() to expose TLS connection state (#​996)

  • UserJWTAndSeed helper function accepting JWT and seed as parameters (#​1046)

  • natsProtoErr type for proto error normalization and comparison using errors.Is() (#​1082)

Improved
  • JetStream

    • Add JetStreamError type for all JetStream related errors, containing error codes (for API errors). JetStreamError supports comparing and unwrapping errors using native errors package (#​1044, #​1047)
    • Force Subscribe() to use memory storage and no replicas when using OrderedConsumer() (#​989)
    • Consistent error value of context timeout when using Fetch() on pull subscription. Thanks to @​wdhongtw for the contribution (#​1011)
    • Add additional note to PullSubscribe() on durable semantics (#​994)
  • KV:

    • Utilize DirectGet() in KV for improved performence (#​1020)
  • Add support for reporting flusher errors. THanks to @​GeorgeEngland for the contribution (#​1015)

  • Mention field defaults in Options struct documentation. Thanks to @​costela for the contribution (#​1013)

Changed
  • JetStream:
    • DeleteMsg() now uses NoErase option by default, not overwriting the message on stream (only marking it as deleted) (#​1025)
    • StreamInfo() will now return all subjects when requested (#​1072)
Updated
  • JetStream:
    • BREAKING] Use 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` ([#​1080](https://github.com/nats-io/nats.go/issues/1080))
      
    • Add missing fields to AccountInfo schema (#​1026)
    • Align StreamSourceInfo schema with server (#​1039)
  • Use nats-server 2.9.0 in tests (#​1073)
  • Add new test TLS certs and run tests for go 1.18 in CI (#​1023, #​1055)
Fixed
  • JetStream

    • Subscribe() automatically sending ACK when AckPolicyNone is set (#​987)
    • Return error when attempting to ACK a message on a AckNone consumer (#​1032)
    • Use native time.Time.Equal method for equality check when comparing consumer configs (#​993)
    • Ephemeral PullConsumer's Fetch() failing with "no responders" (#​1022)
    • ConsumerInfo nil pointer dereference when jsi is not initialized. Thanks to @​Sergey-Belyakov for the contribution (#​1024)
    • Paging in stream and consumer name listing (#​1060)
  • ObjectStore

    • Update object Put() to avoid loosing last chunk when Reader returns both value and EOF. Thanks to @​tinou98 for the contribution (#​995)
    • Invalid digest decoding on object Get(), not propagating errors from Get() to the user (#​1052)
    • Allow updating meta if new name exists but is deleted (#​1053)
    • Disallow adding links in Put() object meta (#​1057)
  • Typo in CustomInboxPrefix() error message. Thanks to @​subtle-byte for the contribution (#​1028)

  • Ignore trailing comma at the end of URL lists (#​1058)

Complete Changes

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) | require | minor | `v1.16.0` -> `v1.18.0` | --- ### Release Notes <details> <summary>nats-io/nats.go</summary> ### [`v1.18.0`](https://github.com/nats-io/nats.go/releases/tag/v1.18.0) [Compare Source](https://github.com/nats-io/nats.go/compare/v1.17.0...v1.18.0) #### Changelog ##### Added - JetStream: - Support for `DiscardNewPerSubject` on stream configuration ([#&#8203;1102](https://github.com/nats-io/nats.go/issues/1102)) - KV: - `KeyValueStores()` and `KeyValueStoreNames()` methods for listing key value buckets ([#&#8203;1088](https://github.com/nats-io/nats.go/issues/1088)) - `Bytes()` method on `KeyValueStatus` returning size of the bucket ([#&#8203;1092](https://github.com/nats-io/nats.go/issues/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 [@&#8203;sylr](https://github.com/sylr) for the contribution ([#&#8203;1100](https://github.com/nats-io/nats.go/issues/1100)) ##### Changed - JetStream: - Ordered consumer is now being recreated on missing heartbeat ([#&#8203;1097](https://github.com/nats-io/nats.go/issues/1097)) - `AckNone` policy can now be set for pull consumers ([#&#8203;1090](https://github.com/nats-io/nats.go/issues/1090)) - ObjectStore: - \[BREAKING] `ObjectStores()` now returns channel of `ObjectStoreStatus` instead of `ObjectStore` interface ([#&#8203;1099](https://github.com/nats-io/nats.go/issues/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 ([#&#8203;1091](https://github.com/nats-io/nats.go/issues/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()` ([#&#8203;1091](https://github.com/nats-io/nats.go/issues/1091)) ##### Fixed - JetStream: - Invalid JSON tag on `Tiers` field on `AccountInfo` struct ([#&#8203;1095](https://github.com/nats-io/nats.go/issues/1095)) ##### Complete Changes ### [`v1.17.0`](https://github.com/nats-io/nats.go/releases/tag/v1.17.0) [Compare Source](https://github.com/nats-io/nats.go/compare/v1.16.0...v1.17.0) #### Changelog ##### IMPORTANT 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 ([#&#8203;988](https://github.com/nats-io/nats.go/issues/988)) - Option to fetch `DeletedDetails` when fetching `StreamInfo`. `StreamInfo()` now accepts `StreamInfoRequest` allowing to pass `DeletedDetails` flag ([#&#8203;990](https://github.com/nats-io/nats.go/issues/990)) - Option to report subjects on `StreamInfo()` request. `StreamInfo()` now accepts `StreamInfoRequest` allowing to pass `SubjectsFilter` value ([#&#8203;1010](https://github.com/nats-io/nats.go/issues/1010)) - Support `AllowDirect` in stream configuration, enabling faster access to individual messages on a stream ([#&#8203;991](https://github.com/nats-io/nats.go/issues/991)) - Support for `DirectGet` API in `GetMsg()` through `DirectGet()` and `DirectGetNext()` options ([#&#8203;1020](https://github.com/nats-io/nats.go/issues/1020), [#&#8203;1030](https://github.com/nats-io/nats.go/issues/1030)) - `HeadersOnly` option to `RePublish` field on stream configuration and change struct name to `RePublish` ([#&#8203;991](https://github.com/nats-io/nats.go/issues/991)) - `SecureDeleteMsg()` method to securely delete and overwrite a message on a stream ([#&#8203;1025](https://github.com/nats-io/nats.go/issues/1025)) - `MaxRequestMaxBytes()` `PullConsumer()` option allowing setting the maximum number of bytes a single `Fetch()`can receive ([#&#8203;1043](https://github.com/nats-io/nats.go/issues/1043)) - Filter streams and stream names by subject in `StreamsInfo()` and `StreamNames()` using `StreamListFilter()` option ([#&#8203;1062](https://github.com/nats-io/nats.go/issues/1062)) - Accept `AckAll` for pull consumers. Thanks to [@&#8203;neilalexander](https://github.com/neilalexander) for the contribution ([#&#8203;1063](https://github.com/nats-io/nats.go/issues/1063)) - Support for setting consumer replicas through `Subscribe()` options. Thanks to [@&#8203;goku321](https://github.com/goku321) for the contribution ([#&#8203;1019](https://github.com/nats-io/nats.go/issues/1019)) - Support for setting memory storage on consumer with `ConsumerMemoryStorage()` option in `Subscribe()`. Thanks to [@&#8203;goku321](https://github.com/goku321) for the contribution ([#&#8203;1078](https://github.com/nats-io/nats.go/issues/1078)) - KV: - `RePublish` option on key value configuration ([#&#8203;1031](https://github.com/nats-io/nats.go/issues/1031)) - ObjectStore: - `ObjectStores()` and `ObjectStoreNames()` methods for listing object store buckets ([#&#8203;1074](https://github.com/nats-io/nats.go/issues/1074)) - `TLSConnectionState()` to expose TLS connection state ([#&#8203;996](https://github.com/nats-io/nats.go/issues/996)) - `UserJWTAndSeed` helper function accepting JWT and seed as parameters ([#&#8203;1046](https://github.com/nats-io/nats.go/issues/1046)) - `natsProtoErr` type for proto error normalization and comparison using `errors.Is()` ([#&#8203;1082](https://github.com/nats-io/nats.go/issues/1082)) ##### Improved - JetStream - Add `JetStreamError` type for all JetStream related errors, containing error codes (for API errors). `JetStreamError` supports comparing and unwrapping errors using native `errors` package ([#&#8203;1044](https://github.com/nats-io/nats.go/issues/1044), [#&#8203;1047](https://github.com/nats-io/nats.go/issues/1047)) - Force `Subscribe()` to use memory storage and no replicas when using `OrderedConsumer()` ([#&#8203;989](https://github.com/nats-io/nats.go/issues/989)) - Consistent error value of context timeout when using `Fetch()` on pull subscription. Thanks to [@&#8203;wdhongtw](https://github.com/wdhongtw) for the contribution ([#&#8203;1011](https://github.com/nats-io/nats.go/issues/1011)) - Add additional note to `PullSubscribe()` on durable semantics ([#&#8203;994](https://github.com/nats-io/nats.go/issues/994)) - KV: - Utilize `DirectGet()` in KV for improved performence ([#&#8203;1020](https://github.com/nats-io/nats.go/issues/1020)) - Add support for reporting flusher errors. THanks to [@&#8203;GeorgeEngland](https://github.com/GeorgeEngland) for the contribution ([#&#8203;1015](https://github.com/nats-io/nats.go/issues/1015)) - Mention field defaults in `Options` struct documentation. Thanks to [@&#8203;costela](https://github.com/costela) for the contribution ([#&#8203;1013](https://github.com/nats-io/nats.go/issues/1013)) ##### Changed - JetStream: - `DeleteMsg()` now uses `NoErase` option by default, not overwriting the message on stream (only marking it as deleted) ([#&#8203;1025](https://github.com/nats-io/nats.go/issues/1025)) - `StreamInfo()` will now return all subjects when requested ([#&#8203;1072](https://github.com/nats-io/nats.go/issues/1072)) ##### Updated - JetStream: - \[BREAKING] Use 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` ([#&#8203;1080](https://github.com/nats-io/nats.go/issues/1080)) - Add missing fields to `AccountInfo` schema ([#&#8203;1026](https://github.com/nats-io/nats.go/issues/1026)) - Align `StreamSourceInfo` schema with server ([#&#8203;1039](https://github.com/nats-io/nats.go/issues/1039)) - Use nats-server 2.9.0 in tests ([#&#8203;1073](https://github.com/nats-io/nats.go/issues/1073)) - Add new test TLS certs and run tests for go 1.18 in CI ([#&#8203;1023](https://github.com/nats-io/nats.go/issues/1023), [#&#8203;1055](https://github.com/nats-io/nats.go/issues/1055)) ##### Fixed - JetStream - `Subscribe()` automatically sending ACK when `AckPolicyNone` is set ([#&#8203;987](https://github.com/nats-io/nats.go/issues/987)) - Return error when attempting to ACK a message on a `AckNone` consumer ([#&#8203;1032](https://github.com/nats-io/nats.go/issues/1032)) - Use native time.Time.Equal method for equality check when comparing consumer configs ([#&#8203;993](https://github.com/nats-io/nats.go/issues/993)) - Ephemeral PullConsumer's Fetch() failing with "no responders" ([#&#8203;1022](https://github.com/nats-io/nats.go/issues/1022)) - `ConsumerInfo` nil pointer dereference when `jsi` is not initialized. Thanks to [@&#8203;Sergey-Belyakov](https://github.com/Sergey-Belyakov) for the contribution ([#&#8203;1024](https://github.com/nats-io/nats.go/issues/1024)) - Paging in stream and consumer name listing ([#&#8203;1060](https://github.com/nats-io/nats.go/issues/1060)) - ObjectStore - Update object `Put()` to avoid loosing last chunk when `Reader` returns both value and `EOF`. Thanks to [@&#8203;tinou98](https://github.com/tinou98) for the contribution ([#&#8203;995](https://github.com/nats-io/nats.go/issues/995)) - Invalid digest decoding on object `Get()`, not propagating errors from `Get()` to the user ([#&#8203;1052](https://github.com/nats-io/nats.go/issues/1052)) - Allow updating meta if new name exists but is deleted ([#&#8203;1053](https://github.com/nats-io/nats.go/issues/1053)) - Disallow adding links in `Put()` object meta ([#&#8203;1057](https://github.com/nats-io/nats.go/issues/1057)) - Typo in `CustomInboxPrefix()` error message. Thanks to [@&#8203;subtle-byte](https://github.com/subtle-byte) for the contribution ([#&#8203;1028](https://github.com/nats-io/nats.go/issues/1028)) - Ignore trailing comma at the end of URL lists ([#&#8203;1058](https://github.com/nats-io/nats.go/issues/1058)) ##### Complete Changes </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
kjuulh added 1 commit 2022-10-25 23:08:44 +02:00
kjuulh changed title from Update module github.com/nats-io/nats.go to v1.18.0 to Update module github.com/nats-io/nats.go to v1.18.0 - autoclosed 2022-10-26 09:48:30 +02:00
kjuulh closed this pull request 2022-10-26 09:48:30 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kjuulh/ceen#3
No description provided.