Skip to content

Releases: nats-io/nats.rs

async-nats v0.17.0

13 Jul 10:02
Compare
Choose a tag to compare

Overview

This release focuses on two main things:

  • Refactor of JetStream API
  • Fix of slow connect (thanks @brooksmtownsend for reporting this!)

The changes in JetStream API make usage of builder more intuitive and seamless.
Before, you had to call

// before changes
let messages = consumer.stream().await?;
// or use a shortcut
let messages = consumer.messages().await?;

// after changes
let messages = consumer.stream().messages().await?;
// or with options
let messages = consumer.stream().max_bytes_per_bytes(1024).messages().await?;

Changed

Fixed

  • Fix slow connect in no-auth scenarios by @Jarema in #568

Other

Full Changelog: async-nats/v0.16.0...async-nats/v0.17.0

async-nats/v0.16.0, nats/v0.22.0

10 Jul 10:58
Compare
Choose a tag to compare

async-nats. v0.16.0

This release features a lot of improvements and additions to JetStream API and adds Push Consumer.

Added

Changed

  • Allow unknown directives to be skipped when parsing by @caspervonb in #514
  • Narrow error type returned from client publishing by @caspervonb in #525
  • Change create_consumer to return Consumer by @Jarema in #544
  • Switch webpki to rustls-native-certs by @Jarema in #558
  • Normalize error type used in subscribe methods by @caspervonb in #524
  • Optimize jetstream::consumer::pull::Consumer::stream method. by @Jarema in #529
  • Make deliver_subject required for push::Config by @caspervonb in #531

Fixed

  • Handle missing error cases in Stream by @Jarema in #542
  • Handle connecting to ipv6 addresses correctly by @jszwedko in #386

Other

nats v0.22.0

This is a minor release for the nats client with one fix and several documentation improvements.

What's changed

  • Handle connecting to ipv6 addresses correctly by @jszwedko in #386
  • Use correct flush_timeout operation in doc test by @krady21 in #556
  • Fix typo in jetstream/pull_subscription.rs by @bbigras in #521

New Contributors

Huge thanks to all contributors. Your help, feedback and insights allows us to drive this library with confidence and speed!

Full Changelog: async-nats/v0.15.0...async-nats/v0.16.0

async-nats 0.15.0 with JetStream, nats 0.21.0

17 Jun 13:27
Compare
Choose a tag to compare

Overview

This release is the first JetStream 🍾 feature set for async-nats!

It includes:

  • New simplified JetStream API approach
  • JetStream Publish
  • Streams management
  • Consumers Management
  • Pull Consumers implementation
  • Ack's

This is an experimental release of JetStream (simplified) API. It may change, and it may have bugs. We appreciate any feedback and contributions to help it reach maturity soon!

For nats client, authentication with token was added by @paulgb

async-nats

Added

Changed

Fixed

nats

Added

  • Allow tokens in connection strings and add tests by @paulgb in #506

New Contributors

Thanks to all contributors! Your work is very appreciated!

Full Changelog: async-nats/v0.14.0...async-nats/v0.15.0

async-nats/v0.14.0

25 May 10:42
Compare
Choose a tag to compare

Overview

This release contains a set of internal codebase behavior improvements, missing elements for JetStream features found out while working on it and some user-facing features.

Added

Changed

Thanks, @stevelr for your contributions!

Full Changelog: nats/v0.13.0...async-nats/v0.14.0

nats/v0.20.1

23 May 12:29
Compare
Choose a tag to compare

Overview

A patch release fixing stack overflow happening when there was kv watcher for a key that did not change for a long time.

Fixed

New Contributors

Full Changelog: nats/v0.20.0...nats/v0.20.1

Release nats/v0.20.0

09 May 19:21
Compare
Choose a tag to compare

Overview

A minor sync client release adding requests with timeouts and headers.

Added

  • Add request with headers and timeouts by @Jarema in #431

Full Changelog: nats/v0.19.1...nats/v0.20.0

Release async-nats beta v0.13.0

05 May 11:22
Compare
Choose a tag to compare

Overview

This time around it's just async-nats Client release.

Its most important part is headers support which enables work around JetStream that first PRs should show up in next release.

Added

Changed

Other

Full Changelog: async-nats/v0.12.0...async-nats/v0.13.0

Release async-nats beta v0.12.0, nats v0.19.1

28 Apr 09:16
Compare
Choose a tag to compare

Overview

This is a double release.
Most work has been done around the async-nats client.
nats client got a fix around Key Value.

async-nats v0.12.0

This release adds a few features accompanied by some architecture overhauls in preparation for JetStream support and good maintainability of the codebase.

Added

Other

nats v0.19.1

Only one fix around this time, as most work is focused around the async client.

Fixed

Contributors

Big thanks to all contributors! Your input is invaluable!

Full Changelog: async-nats/v0.11.0...async-nats/v0.12.0

Release async-nats beta v0.11.0, nats 0.19.0

17 Apr 21:53
Compare
Choose a tag to compare

Overview

This is a double release.
First and foremost, the new async-nats Crate become available, as a bleeding edge beta release.
Secondly, a minor nats crate.

Please also note that the repository has been reorganized into a workspace, with the nats directory being the old synchronous NATS Crate and async-nats being the new one.

New async-client v0.11.0

This was in the works for quite some time, focused on having a performant, easy-to both use and maintain, idiomatic async Rust NATS client. This is a bleeding-edge beta release to bring some visibility, get your feedback and enable transparency and contributions.

The versioning starts from v0.11.0, as the crate was used a long time ago by NATS.io org for some former work around the async client.

What it already does:

  • fully native tokio implementation
  • async-std tokio compact mode working out of the box without performance penalty
  • Core NATS Protocol support
  • TLS with and without client auth
  • publish
  • subscribe
  • request/response
  • Clonable Client
  • subscriptions as streams

What is missing (Core NATS)

  • authorization via Options
  • Errors (those sent by the server) callbacks/streams
  • reconnections
  • no responders handling
  • lame duck mode

Next steps

In the following days, all missing features will be added, and work on Jetstream support will initiate.

Thanks

Discussions around the architecture of the async client were long and fruitful. We would like to thank you all for that efforts. Especially those participating in #298 discussion, @stevelr and @MattesWhite.

nats client release v0.19.0

Changed

Fixed

New Contributors

Full Changelog: v0.18.1...async-nats/v0.11.0

Release v0.18.1

11 Feb 14:04
Compare
Choose a tag to compare

Overview

A patch release fixing long durations until close() returned. It was introduced in the graceful shutdown of client connection threads in v0.18.0.
Dropping NATS connection was not affected.

Fixed

  • Fix slow connection closing by @Jarema in #319
  • Fix close() hang after js.subscribe() is called by @Jarema #321
  • Fix close() hang after Push Consumer subsription edge case by @Jarema #323

Minor

  • Replace custom Into trait with From by @Jarema in #315

Full Changelog: v0.18.0...v0.18.1