Skip to content

Releases: ReactorKit/ReactorKit

3.2.0

13 Jan 02:08
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.1.0...3.2.0

3.1.0

01 Oct 09:51
Compare
Choose a tag to compare
  • Upgrade swift tool version to 5.3 (@OhKanghoon)
  • Fix deprecated class type to AnyObject type (@jsryudev)
  • Swizzle viewDidLoad in +load rather than +initialize. (@GetToSet)
  • Introduce Pulse 📡 (@tokijh)

3.0.0

02 Feb 12:47
Compare
Choose a tag to compare

2.1.1

25 Nov 09:52
Compare
Choose a tag to compare
  • Update Swift Package to be compatible with Xcode 12 (#163, @dodgecm)

2.1.0

19 Apr 07:15
Compare
Choose a tag to compare
  • Guarantee thread safety (#126)
  • Add an availability to specify a scheduler (#128)
  • Fix a crash in Mac Catalyst (#129, @mariohahn)
  • Import RxSwift with @_exported attribute (#130)
  • Ensure that mutate and reduce are executed in the same serial scheduler (#131)
  • Ensure that the last published state can be observed immediately (#135, @wplong11)
  • Introduce IdentityEquatable and IdentityHashable (#136)
  • Use WeakMapTable from dependency (#138)

⚠️ Breaking Change Notice

This version contains a potential breaking API change (#128). Reactors will no longer force to observe states in the main thread. Since the default scheduler is changed to CurrentThreadScheduler, you need to specify an observer if there is a UI binding on a non-main thread:

performOnBackgroundThread {
  reactor.state.map { $0.someText }
    .observeOn(MainScheduler.instance)
    .bind(to: myLabel.rx.text)
}

Alternatively, you can use the Scheduling API to specify the scheduler:

class MyReactor {
  let scheduler: Scheduler = MainScheduler.instance
}

2.0.1

15 Jun 05:47
Compare
Choose a tag to compare
  • Add Reactor.isStubEnabled and deprecate Stub.isEnabled for the runtime performance. (e813112)

2.0.0

15 Jun 05:39
Compare
Choose a tag to compare
  • Add Swift 5 support 🚀 (#106)

Special thanks to @mariohahn and @tokijh 🎉

1.2.1

25 Oct 09:57
Compare
Choose a tag to compare
  • Introduce StateRelay as a replacement of Variable (#82, @tokijh)

1.2.0

26 Sep 11:12
Compare
Choose a tag to compare

1.1.0

17 Nov 15:19
Compare
Choose a tag to compare
  • Create a state stream automatically when accessing action (#49, @creasty)