Release async-nats/v0.34.0 #1228
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
0.34.0
Overview
This release introduces performance improvements (thanks to poll_recv_many #1189), improves resilience of
ordered consumers by recreating them in more cases while having less server calls. It also adds some new features.
Breaking Changes
Breaking changes are minor, however, all are worth mentioning.
This change simplifies lifetimes of Boxed Futures, by making them static. It should not affect most users,
and if it does, removal of the lifetime should be a quick fix.
The client was not checking if the message payload size was not exceeding the limits of the server it is connected to.
While doing the fix, the error returned was changed into one consistent with others: a struct with enum of possible
error variants under
kind()method, of which one isMaxPayloadExceeded. This should not break users,as before there was no enum in the first place, but it is a breaking change.
It added new enum variant to Consumer and Stream error kinds. Breaking for those who match those errors in exhaustive manner.
This changes to be a
mut selffromselfwhile removing unnecessary clone.Fixed
Added
createfunction to kv store by @praveenperera in Addcreatefunction to kv store #1206into_stringmethod toSubjectby @thomastaylor312 in feat(subject): Addsinto_stringmethod toSubject#1161Changed
Events by @paolobarbolini in Always logEvents #1123ServerAddr::socket_addrsby @paolobarbolini in Do asynchronous DNS lookups inServerAddr::socket_addrs#1191Subject::from_statica const fn by @paolobarbolini in MakeSubject::from_statica const fn #1207selfto a borrow inRequest::respond()by @jlandahl in Changedselfto a borrow inRequest::respond()#1139No Messagesby @Jarema in Terminate fetch onNo Messages#1171New Contributors
selfto a borrow inRequest::respond()#1139createfunction to kv store #1206Full Changelog: nats/v0.24.1...async-nats/v0.34.0
Signed-off-by: Tomasz Pietrek [email protected]