Releases: brunocodutra/reducer
v3.0.1
v3.0.0
🚀 What's New
- #142 Leveraged const generics to implement
Reactor
for arrays of arbitrary length.
💥 Breaking Changes
- #108 Removed deprecated impls of
Reducer
for references, slices, and arrays. - #112 Removed trait
SpawnDispatcher
in favor of the more flexible associated functionStore::into_task
. - #141 Removed
<dyn Reactor>::from_sink
and<dyn Dispatcher>::from_sink
in favor ofAsyncReactor
andAsyncDispatcher
respectively, both of which can be constructed from any type that implementsfutures::sink::Sink
.
🧹 Chore
- #109 Relaxed requirement that
Store
necessarily requires a type that implementsReactor
as the second argument to simplify testing.
v2.1.1
v2.1.0
🚀 What's New
#70 Added feature alloc
for finer grained control over dependencies.
#76 Generalized Reactor<S>
for dynamically sized types, i.e. S: ?Sized
.
#79 Marked blanket impls of R: Reducer
for [R]
, [R; N]
and &mut R
that have no practical for removal in a future release.
#82 Added Dispatcher::from_sink
that adapts any Sink
into a Dispatcher
.
#85 Added Reactor::from_sink_with
that takes a user defined function Fn(&S) -> O
to adapt any Sink<O>
into a Sink<&S>
.
💥 Breaking Changes
#81 Refactored SpawnDispatcher
by introducing generic parameters and extracting outputs into associated types. Though code may fail to compile as a result of this, the fix should be trivial boils down to specifying the missing generic parameters.
#85 Store<S, R>
now implements Sink<A>
only if R: Reactor<A> + for<'s> Sink<&'s S>
, where previously it required R: Reactor<A> + Sink<S>
instead and internally cloned &S
into S
. To migrate from the previous version, consider taking advantage of Reactor::from_sink
.
v2.0.0
🚀 What's New
- #45, #50 Removed deprecated default implementations of
Reactor
forOption
andmpsc::Sender
. - #46 Restricted
Reactor
to always returnResult
and to bind to&mut self
. - #49 Any type that implements
Sink
may now be transformed into aReactor
usingReactor::from_sink
. - #50 Integration with
futures-rs
(featureasync
) is now enabled by default. - #52 Reducer may now be used in
#[no_std]
environments.
v2.0.0-beta.1
🚀 What's New
- #63 Replaced dependency on
futures-preview
by the recently releasedfutures
v0.3.
v2.0.0-alpha.3
🚀 What's New
- #60 Updated dependencies.
v2.0.0-alpha.2
🚀 What's New
- #55 Updated futures-rs to 0.3.0-alpha.17.
v1.3.0
v2.0.0-alpha.1
🚀 What's New
- #45, #50 Removed deprecated default implementations of
Reactor
forOption
andmpsc::Sender
. - #46 Restricted
Reactor
to always returnResult
and to bind to&mut self
. - #49 Any type that implements
Sink
may now be transformed into aReactor
usingReactor::from_sink
. - #50 Integration with
futures-rs
(featureasync
) is now enabled by default. - #52 Reducer may now be used in
#[no_std]
environments.