Reducer Versions Save

A predictable reactive framework for Rust apps inspired by Redux

v3.0.1

2 years ago

:broom: Chore

  • #146, #149, #172 Updated the documentation.
  • #164 Reverted back to fixing dependency patch versions.

v3.0.0

2 years ago

:rocket: What's New

  • #142 Leveraged const generics to implement Reactor for arrays of arbitrary length.

:boom: Breaking Changes

  • #108 Removed deprecated impls of Reducer for references, slices, and arrays.
  • #112 Removed trait SpawnDispatcher in favor of the more flexible associated function Store::into_task.
  • #141 Removed <dyn Reactor>::from_sink and <dyn Dispatcher>::from_sink in favor of AsyncReactor and AsyncDispatcher respectively, both of which can be constructed from any type that implements futures::sink::Sink.

:broom: Chore

  • #109 Relaxed requirement that Store necessarily requires a type that implements Reactor as the second argument to simplify testing.

v2.1.1

4 years ago

:rocket: What's New

#87 Dropped redundant dependency on thiserror.

v2.1.0

4 years ago

:rocket: 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>.

:boom: 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

4 years ago

:rocket: What's New

  • #45, #50 Removed deprecated default implementations of Reactor for Option and mpsc::Sender.
  • #46 Restricted Reactor to always return Result and to bind to &mut self.
  • #49 Any type that implements Sink may now be transformed into a Reactor using Reactor::from_sink.
  • #50 Integration with futures-rs (feature async) is now enabled by default.
  • #52 Reducer may now be used in #[no_std] environments.

v2.0.0-beta.1

4 years ago

:rocket: What's New

  • #63 Replaced dependency on futures-preview by the recently released futures v0.3.

v2.0.0-alpha.3

4 years ago

:rocket: What's New

  • #60 Updated dependencies.

v2.0.0-alpha.2

4 years ago

:rocket: What's New

  • #55 Updated futures-rs to 0.3.0-alpha.17.

v1.3.0

4 years ago

:rocket: What's New

  • #41 Reducer doesn't require 'static bound anymore.
    • A default implementation of Reducer for &mut T is now provided.
  • #42, #51 Default implementations of Reactor for Option and mpsc::Sender are now deprecated in preparation for v2.0 release.

v2.0.0-alpha.1

4 years ago

:rocket: What's New

  • #45, #50 Removed deprecated default implementations of Reactor for Option and mpsc::Sender.
  • #46 Restricted Reactor to always return Result and to bind to &mut self.
  • #49 Any type that implements Sink may now be transformed into a Reactor using Reactor::from_sink.
  • #50 Integration with futures-rs (feature async) is now enabled by default.
  • #52 Reducer may now be used in #[no_std] environments.