Releases: DeclarativeHub/ReactiveKit
Releases · DeclarativeHub/ReactiveKit
v3.13.0
API alignment with Combine
PublishSubject<Element, Error>
has been renamed toPassthroughSubject<Element, Error>
.next(value)
,completed()
andfailed(error)
methods on theObserver
type have been renamed toreceive(value)
,receive(completion: .finished)
andreceive(completion: .failure(error))
respectively.next(value)
,completed()
andfailed(error)
methods on theSubject
type have been renamed tosend(value)
,send(completion: .finished)
andsend(completion: .failure(error))
respectively.shareReplay(limit:)
has been renamed toshare(limit:)
.sink(receiveCompletion:receiveValue:)
operator is added.
let didChange = PassthroughSubject<Void, Never>()
didChange.sink { (value) in
print(value)
}
didChange.sink(receiveCompletion: { (completion) in
print(completion)
}, receiveValue: { value in
print(value)
})
didChange.send()
didChange.send(completion: .finished)
v3.12.3
- Fix possible race conditions in dispose bag and subjects - thanks @trupin!
- Fix possible threading issue in Property - thanks @aethe!
- Properly set new value in LoadingProperty - thanks @tonyarnold!
v3.12.2
- Introduces operator
repeat(when:)
.
v3.12.0
New Signal(takingOver:)
initializer that you can use to make signals from closures!
var didTapReload: () -> Void = {}
let reloadTaps = Signal(takingOver: &didTapReload)
reloadTaps.observeNext {
print("reload")
}
didTapReload() // prints "reload"
didTapReload() // prints "reload"
v3.11.0
- Add deferring initializer.
- Bump macOS deployment target to 10.11.
v3.10.0
🎊 Swift 5.0 release 🎉
- Migrate to Swift 5.0 syntax
- Remove custom
Result
type - Clean up and standardize APIs
- Deprecate
NoError
in favour ofNever
from the standard library - Improve inline documentation and enhance it with links to RxMarbles
- Add more playgrounds with tutorials
The release is backward compatible.
Do not update if you are still using Swift 4.2 or earlier!
v3.9.7
- Update to Swift 4.2
v3.9.6
- Fix possible subject deadlock.
v3.9.5
- Disable code coverage in Release.