Skip to content

build(repo): Bump async-nats from 0.42.0 to 0.52.0 - #64

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/async-nats-0.52.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/async-nats-0.52.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 15, 2026

Copy link
Copy Markdown
Contributor

Bumps async-nats from 0.42.0 to 0.52.0.

Release notes

Sourced from async-nats's releases.

Release async-nats/v0.52.0

Overview

This release fixes panics on line breaks in header values. A \r inside a received header value panicked the connection task, so any client allowed to publish on a subject could stop its subscribers' connections. Upgrading is recommended.

It is a minor release because HeaderValue no longer implements From<&str> and From<String>.

Fixed

Breaking changes

  • HeaderValue no longer implements From<&str> and From<String>. It implements TryFrom<&str>, TryFrom<&String> and TryFrom<String> instead, returning ParseHeaderValueError for a value with \r or \n (#1673). Affected code fails to compile:

    • headers.insert(k, HeaderValue::from(s)) → headers.insert(k, s)
    • HeaderValue::from(s), s.into() → HeaderValue::try_from(s)? to reject line breaks, HeaderValue::from_lossy(s) to replace them
    • T: Into<HeaderValue> → T: IntoHeaderValue
    • let Ok(v) = HeaderValue::try_from(s) → handle ParseHeaderValueError, the error is no longer Infallible

    String and integer values passed straight to insert or append, and str::parse, keep working.

Behaviour changes

  • A string header value with \r or \n gets a space in place of each instead of panicking. This covers HeaderMap::insert and append, PublishMessage::header, message_id and expected_*, service respond(Err(..)) and received messages. To reject such a value, convert it with HeaderValue::try_from first (#1673).
  • Stream::get_raw_message, get_last_raw_message_by_subject and KV entry without direct get no longer fail on such a header value; they replace the line breaks the same way (#1673).

Full Changelog: nats-io/nats.rs@async-nats/v0.51.0...async-nats/v0.52.0

Release async-nats/v0.51.0

Overview

This release adds pinned client support for pull consumers and fixes a number of panics and hangs across JetStream, KV, Object Store and Service APIs. JetStream API requests are now bounded by the JetStream context timeout when it is set.

It is a minor release because it adds variants to error kind enums, adds public fields to consumer types and raises the MSRV to 1.89.

Added

Fixed

... (truncated)

Commits
  • 2269277 Release async-nats v0.52
  • 90d3602 Refuse line breaks in HeaderValue::try_from
  • 1c898db Replace line breaks in string header values instead of panicking
  • e22f657 Release async-nats/v0.51.0
  • 4e70300 Redact secrets in ConnectInfo Debug output
  • 1815112 Fix service error Display swapping code and status
  • de95c75 Name the pull id helper for the pull it reads
  • e10693c Split the pinned tests back into one behaviour each
  • 37a030f Cover the 423 pin reset, get_last and the standby in pinned tests
  • b61f5f5 Point the PinnedClient docs at stream().group(..).messages()
  • 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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 [async-nats](https://github.com/nats-io/nats.rs) from 0.42.0 to 0.52.0.
- [Release notes](https://github.com/nats-io/nats.rs/releases)
- [Commits](nats-io/nats.rs@async-nats/v0.42.0...async-nats/v0.52.0)

---
updated-dependencies:
- dependency-name: async-nats
  dependency-version: 0.52.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 15, 2026
@github-actions
github-actions Bot enabled auto-merge November 15, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants