diff --git a/CHANGELOG.md b/CHANGELOG.md index e93a8d6..2b198ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ ## Master +## [2.0.0](https://github.com/kzaher/RxFeedback/releases/tag/2.0.0) + +* Renames `Event` to `Mutation`. +* Removes deprecated APIs. +* Adds the most general version of feedback loop +```swift +public func react( + requests: @escaping (State) -> [RequestID: Request], + effects: @escaping (_ initial: Request, _ state: Observable) -> Observable +) -> (ObservableSchedulerContext) -> Observable { +``` +* Simpler feedback loops are now just a specialization of the general one. +* Removes hacky versions of feedback loops that existed because Swift compiler didn't generate automatic `Equality` conformance. + ## [1.1.1](https://github.com/kzaher/RxFeedback/releases/tag/1.1.1) * Fixes problem building with Carthage. #41 diff --git a/README.md b/README.md index 29a19ae..7cea646 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,10 @@ The simplest architecture for [RxSwift](https://github.com/ReactiveX/RxSwift) me.minus.rx.tap.map { Event.decrement } ] - return Bindings(subscriptions: subscriptions, - events: events) + return Bindings( + subscriptions: subscriptions, + events: events + ) } ) ``` diff --git a/RxFeedback.podspec b/RxFeedback.podspec index b0c4e3f..b135488 100644 --- a/RxFeedback.podspec +++ b/RxFeedback.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "RxFeedback" - s.version = "1.1.1" + s.version = "2.0.0" s.summary = "Simplest architecture for RxSwift. State + feedback loops." s.description = <<-DESC * Straightforward