async-nats v0.17.0
·
691 commits
to main
since this release
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
- Rename push consumer
Stream
iterator toMessages
by @caspervonb in #566 - Add pull builder for Fetch and Batch by @Jarema in #565
Fixed
Other
- Fix license headers by @Jarema in #564
- Add missing module docs headers by @Jarema in #563
- Remove fault injection run from workflow by @caspervonb in #567
Full Changelog: async-nats/v0.16.0...async-nats/v0.17.0