ReactorKit Versions Save

A library for reactive and unidirectional Swift applications

3.2.0

2 years ago

What's Changed

Full Changelog: https://github.com/ReactorKit/ReactorKit/compare/3.1.0...3.2.0

3.1.0

2 years ago
  • 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

3 years ago
  • Add RxSwift 6 support :fire: (#172, @tokijh)
  • Remove RxExpect dependency (#171, @tokijh)

2.1.1

3 years ago
  • Update Swift Package to be compatible with Xcode 12 (#163, @dodgecm)

2.1.0

4 years ago
  • 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

4 years ago
  • Add Reactor.isStubEnabled and deprecate Stub.isEnabled for the runtime performance. (e813112e4497a66f046e1fa0e9783adbace388bf)

2.0.0

4 years ago
  • Add Swift 5 support 🚀 (#106)

Special thanks to @mariohahn and @tokijh 🎉

1.2.1

5 years ago
  • Introduce StateRelay as a replacement of Variable (#82, @tokijh)

1.2.0

5 years ago
  • Add Swift 4.2 support :tada: (#77, @murselturk)

1.1.0

6 years ago
  • Create a state stream automatically when accessing action (#49, @creasty)