Release async-nats v0.22.0
·
579 commits
to main
since this release
Overview
This release introduces a number of changes and two breaking changes:
JetStream publish
Used to return ack:
let ack = jetstream.publish().await.unwrap();
But while adding publish that does not wait for an acknowledgement before returning,
we realized that we can leverage IntoFuture, so the new api is:
// This publishes the message, but do not wait until ack is received.
let future_ack = jetstream.publish().await.unwrap();
// to receive the acknowledge, `await()` the returned value:
let ack = future_ack.await().unwrap();
Event logging
After adding the initial retry on connect option, Event::Reconnect
didn't make much sense.
Hence it was renamed to Event::Connected
, which describes the current state without implications about the previous one.
For consistency, Event::Disconnect
was renamed to Event::Disconnected
.
Breaking changes
Added
- Add support for mirrors and sources in Key Value Store by @Jarema in #676
- Add sources and mirror to stream config by @Jarema in #673
- Add retry on initial connect by @Jarema in #662
- Add docs to client methods by @Jarema in #664
- Add license to nats-server wrapper by @Jarema in #704
Fixed
- Fix object store bucket names by @Jarema in #697
- Fix event connected display by @Jarema in #669
- Fix missing hearbeats future wakup by @Jarema in #671
- Fix pull consumer without hearbeats by @Jarema in #667
- Fix typos in async-nats docs by @jdon in #663
- Fix clippy errors by @caspervonb in #690
- Fix broken clippy pipeline and errors by @caspervonb in #695
Changed
- Bump rustls-pemfile version by @paulgb in #666
- Use get direct in KV by @Jarema in #651
- Ordered consumer recreate & use mem_storage R1 by @Jarema in #654
- Change event logs to info level by @Jarema in #677
- Remove unused dependency on tokio-util by @caspervonb in #679
- Merge periodic ping into connection handler loop by @caspervonb in #681
- Update K/V purge documentation verbiage by @corbinu in #688
- Make pull consumer having exact pending numbers by @Jarema in #668
- Improve object get example by @Jarema in #706
New Contributors
Full Changelog: async-nats/v0.21.0...async-nats/v0.22.0