Bump github.com/nats-io/nats.go from 1.11.0 to 1.12.1 #29

Merged
dependabot[bot] merged 1 commits from dependabot/go_modules/github.com/nats-io/nats.go-1.12.1 into master 2021-09-07 09:30:48 +03:00
dependabot[bot] commented 2021-09-06 17:26:09 +03:00 (Migrated from github.com)

Bumps github.com/nats-io/nats.go from 1.11.0 to 1.12.1.

Release notes

Sourced from github.com/nats-io/nats.go's releases.

Release v1.12.1

Changelog

JetStream users

Please review release notes from v1.12.0 regarding important changes if upgrading from an earlier release.

Added

Fixed

  • JetStream:
    • Fetch() could return immediately with a timeout error. Thanks to @​izarraga for the report (#813)
  • Inboxes suffix would contain many zeros (#808)

Complete Changes

https://github.com/nats-io/nats.go/compare/v1.12.0...v1.12.1

Release v1.12.0

Changelog

Breaking Changes

This release has some important and breaking changes for the JetStream module. Previously, it was possible to create multiple instances of non queue subscriptions to the same JetStream consumer, which was wrong since each instance would get a copy of the same message and one instance acknowledging a message would mean that the other instance's message acknowledgement (or lack thereof) would be ignored. It was also possible to create queue groups against a JetStream consumer that was used by a non queue subscription.

This update requires the upcoming server version v2.4.0 to behave correctly, that is, the library will reject a "plain" subscription on a JetStream consumer that is already bound (that is, there is already an instance actively consuming from it), or on a consumer that was created for a queue group. It will also reject a queue subscription on a JetStream consumer that was not created for a queue group, or to a consumer that has been created for a different queue group. But it means that this update will not be able to create a queue subscription on a server pre v2.4.0 because those server do not have the concept of DeliverGroup in the consumer configuration.

Look at the Changed section below for the list of those changes.

The repository master branch has been renamed main. If you have a fork or a clone of the repository, you should run those git commands:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

Added

  • JetStream:
    • Bind() and BindStream() options to the subscribe calls (#740)
    • ChanQueueSubscribe() (#744)
    • APIPrefix() and Domain() options to specify prefix or domain. Thanks to @​Jarema for the contribution (#750, #753)
    • Two new sentinel errors: ErrStreamNotFound and ErrConsumerNotFound. Thanks to @​actatum for the contribution (#760)
    • MaxMsgsPerSubject option in the StreamConfig (#768)
    • OrderedConsumer() subscription option to create a FIFO ephemeral consumer for in order delivery of messages. There are no redelivered and no ACKs, and flow control and heartbeats will be added but be taken care of without additional user code (#789, #793)
    • DeliverSubject() option to configure the deliver subject of a JetStream consumer created by the js.Subscribe() call (and variants) (#794)
    • Fields DeliverGroup in ConsumerConfig, PushBound in ConsumerInfo. They help making prevent incorrect subscriptions to JetStream consumers (#794)
    • Field Description in StreamConfig and ConsumerConfig (#795)
    • ExpectLastSequencePerSubject() publish option (#797)

... (truncated)

Commits
  • 42edba4 Merge pull request #816 from nats-io/release_1_12_1
  • 247f59b Release v1.12.1
  • 529ee11 Merge pull request #813 from nats-io/js_fix_pull_subscribe
  • f3a531d [FIXED] Fetch() could return immediately with a timeout error
  • 2c959d6 Merge pull request #812 from JosephWoodward/add-connection-status-stringer
  • c18a667 Use String() instead of fmt.Sprintf
  • a768521 Fix formatting
  • 2486c77 Update test to include connection status Stringer implementation
  • 6baaf3a Implement Stringer for connection status
  • 51262a8 Merge pull request #810 from nats-io/update_readme_badges
  • Additional commits viewable in compare view

Dependabot compatibility score

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](https://github.com/nats-io/nats.go) from 1.11.0 to 1.12.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/nats-io/nats.go/releases">github.com/nats-io/nats.go's releases</a>.</em></p> <blockquote> <h2>Release v1.12.1</h2> <h2>Changelog</h2> <p><strong><em>JetStream users</em></strong></p> <p>Please review release notes from <a href="https://github.com/nats-io/nats.go/releases/tag/v1.12.0">v1.12.0</a> regarding important changes if upgrading from an earlier release.</p> <h3>Added</h3> <ul> <li>Stringer for connection's <code>Status()</code>. Thanks to <a href="https://github.com/JosephWoodward"><code>@​JosephWoodward</code></a> for the contribution (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/812">#812</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>JetStream: <ul> <li><code>Fetch()</code> could return immediately with a timeout error. Thanks to <a href="https://github.com/izarraga"><code>@​izarraga</code></a> for the report (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/813">#813</a>)</li> </ul> </li> <li>Inboxes suffix would contain many zeros (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/808">#808</a>)</li> </ul> <h3>Complete Changes</h3> <p><a href="https://github.com/nats-io/nats.go/compare/v1.12.0...v1.12.1">https://github.com/nats-io/nats.go/compare/v1.12.0...v1.12.1</a></p> <h2>Release v1.12.0</h2> <h2>Changelog</h2> <h3>Breaking Changes</h3> <p>This release has some important and breaking changes for the JetStream module. Previously, it was possible to create multiple instances of non queue subscriptions to the same JetStream consumer, which was wrong since each instance would get a copy of the same message and one instance acknowledging a message would mean that the other instance's message acknowledgement (or lack thereof) would be ignored. It was also possible to create queue groups against a JetStream consumer that was used by a non queue subscription.</p> <p>This update requires the upcoming server version v2.4.0 to behave correctly, that is, the library will reject a &quot;plain&quot; subscription on a JetStream consumer that is already bound (that is, there is already an instance actively consuming from it), or on a consumer that was created for a queue group. It will also reject a queue subscription on a JetStream consumer that was not created for a queue group, or to a consumer that has been created for a different queue group. But it means that this update will not be able to create a queue subscription on a server pre v2.4.0 because those server do not have the concept of <code>DeliverGroup</code> in the consumer configuration.</p> <p>Look at the <code>Changed</code> section below for the list of those changes.</p> <p>The repository <code>master</code> branch has been renamed <code>main</code>. If you have a fork or a clone of the repository, you should run those git commands:</p> <pre><code>git branch -m master main git fetch origin git branch -u origin/main main git remote set-head origin -a </code></pre> <h3>Added</h3> <ul> <li>JetStream: <ul> <li><code>Bind()</code> and <code>BindStream()</code> options to the subscribe calls (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/740">#740</a>)</li> <li><code>ChanQueueSubscribe()</code> (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/744">#744</a>)</li> <li><code>APIPrefix()</code> and <code>Domain()</code> options to specify prefix or domain. Thanks to <a href="https://github.com/Jarema"><code>@​Jarema</code></a> for the contribution (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/750">#750</a>, <a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/753">#753</a>)</li> <li>Two new sentinel errors: <code>ErrStreamNotFound</code> and <code>ErrConsumerNotFound</code>. Thanks to <a href="https://github.com/actatum"><code>@​actatum</code></a> for the contribution (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/760">#760</a>)</li> <li><code>MaxMsgsPerSubject</code> option in the <code>StreamConfig</code> (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/768">#768</a>)</li> <li><code>OrderedConsumer()</code> subscription option to create a FIFO ephemeral consumer for in order delivery of messages. There are no redelivered and no ACKs, and flow control and heartbeats will be added but be taken care of without additional user code (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/789">#789</a>, <a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/793">#793</a>)</li> <li><code>DeliverSubject()</code> option to configure the deliver subject of a JetStream consumer created by the <code>js.Subscribe()</code> call (and variants) (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/794">#794</a>)</li> <li>Fields <code>DeliverGroup</code> in <code>ConsumerConfig</code>, <code>PushBound</code> in <code>ConsumerInfo</code>. They help making prevent incorrect subscriptions to JetStream consumers (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/794">#794</a>)</li> <li>Field <code>Description</code> in <code>StreamConfig</code> and <code>ConsumerConfig</code> (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/795">#795</a>)</li> <li><code>ExpectLastSequencePerSubject()</code> publish option (<a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/797">#797</a>)</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/nats-io/nats.go/commit/42edba421f77623576fb914344321612944faff7"><code>42edba4</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/816">#816</a> from nats-io/release_1_12_1</li> <li><a href="https://github.com/nats-io/nats.go/commit/247f59b17c3aeb951c4ffbd44d7faf0153e72108"><code>247f59b</code></a> Release v1.12.1</li> <li><a href="https://github.com/nats-io/nats.go/commit/529ee1144b38599a4f0ddf463c16f428a26cc3b5"><code>529ee11</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/813">#813</a> from nats-io/js_fix_pull_subscribe</li> <li><a href="https://github.com/nats-io/nats.go/commit/f3a531d0517affe9811c62b3c070f36dcb3685b5"><code>f3a531d</code></a> [FIXED] Fetch() could return immediately with a timeout error</li> <li><a href="https://github.com/nats-io/nats.go/commit/2c959d6d29fd9d8bcca6bc8e6909b5f44628e117"><code>2c959d6</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/812">#812</a> from JosephWoodward/add-connection-status-stringer</li> <li><a href="https://github.com/nats-io/nats.go/commit/c18a6675336bb88b9ff1c2186718a3c457b56f83"><code>c18a667</code></a> Use String() instead of fmt.Sprintf</li> <li><a href="https://github.com/nats-io/nats.go/commit/a768521d8e605b65ce90fa9417ea35d9d3ef59b1"><code>a768521</code></a> Fix formatting</li> <li><a href="https://github.com/nats-io/nats.go/commit/2486c77c8b710788590681b0e9413cc350b6d30f"><code>2486c77</code></a> Update test to include connection status Stringer implementation</li> <li><a href="https://github.com/nats-io/nats.go/commit/6baaf3a2234bb09a8f057f5ee3e8a9f8cb9852bc"><code>6baaf3a</code></a> Implement Stringer for connection status</li> <li><a href="https://github.com/nats-io/nats.go/commit/51262a804943ac2d8a74553ce7262e02a53a3c77"><code>51262a8</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/nats-io/nats.go/issues/810">#810</a> from nats-io/update_readme_badges</li> <li>Additional commits viewable in <a href="https://github.com/nats-io/nats.go/compare/v1.11.0...v1.12.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/nats-io/nats.go&package-manager=go_modules&previous-version=1.11.0&new-version=1.12.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details>
vtolstov commented 2021-09-07 09:30:43 +03:00 (Migrated from github.com)

@dependabot squash and merge

@dependabot squash and merge
Sign in to join this conversation.
No reviewers
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: unistack-org/micro-broker-nats#29
No description provided.