From 90424a34349f9c7796c7f935a3953a82431dbcb4 Mon Sep 17 00:00:00 2001 From: Tomasz Pietrek Date: Wed, 13 Jul 2022 11:34:11 +0200 Subject: [PATCH] Release async-nats/v0.17.0 Signed-off-by: Tomasz Pietrek --- async-nats/CHANGELOG.md | 35 +++++++++++++++++++++++++++++++++++ async-nats/Cargo.toml | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/async-nats/CHANGELOG.md b/async-nats/CHANGELOG.md index aa34be895..357fdc085 100644 --- a/async-nats/CHANGELOG.md +++ b/async-nats/CHANGELOG.md @@ -1,3 +1,38 @@ +# 0.17.0 +## 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 +```rust +// 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 +* Rename push consumer `Stream` iterator to `Messages` by @caspervonb in https://github.com/nats-io/nats.rs/pull/566 +* Add pull builder for Fetch and Batch by @Jarema in https://github.com/nats-io/nats.rs/pull/565 + +## Fixed +* Fix slow connect in no-auth scenarios by @Jarema in https://github.com/nats-io/nats.rs/pull/568 + +## Other +* Fix license headers by @Jarema in https://github.com/nats-io/nats.rs/pull/564 +* Add missing module docs headers by @Jarema in https://github.com/nats-io/nats.rs/pull/563 +* Remove fault injection run from workflow by @caspervonb in https://github.com/nats-io/nats.rs/pull/567 + + +**Full Changelog**: https://github.com/nats-io/nats.rs/compare/async-nats/v0.16.0...async-nats/v0.17.0 + # 0.16.0 This release features a lot of improvements and additions to `JetStream` API and adds `Push Consumer`. diff --git a/async-nats/Cargo.toml b/async-nats/Cargo.toml index 9eb13d2fe..9b3471bb3 100644 --- a/async-nats/Cargo.toml +++ b/async-nats/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "async-nats" authors = ["Tomasz Pietrek ", "Casper Beyer "] -version = "0.16.0" +version = "0.17.0" edition = "2021" description = "A async Rust NATS client" license = "Apache-2.0"