Skip to content

Releases: AlexLittlejohn/Ducks

2.0.0

02 Feb 17:11
Compare
Choose a tag to compare

A major release with a complete overhaul of the Redux pattern.

Idiomatic Redux pattern

Old Pattern

New reducer to Effect pattern

New Pattern

  • In this context an Effect is essentially a Combine stream i.e. AnyPublisher<A, Never>.

Changes

  • Removed Middleware requirement
  • Introduced an Environment object to encapsulate dependencies for side effects
  • New Reducer function signature: typealias Reducer<A, S: Equatable, E> = (A, inout S, E) -> AnyPublisher<A, Never>
  • Added a statePublisher property which mirrors the @Published state property.

1.0.1

13 Dec 19:04
Compare
Choose a tag to compare

A single bug fix for a implicitly unwrapped value

Initial release

02 Nov 18:47
Compare
Choose a tag to compare
1.0.0

Adding subscription tests