Ethan
RxSwift 6 is here!
New year, new version, new logo - such an exciting day! 🥳
To get a glimpse of what this new major version packs, check out the following blog post: What's new in RxSwift 6
Note: RxSwift 6 supports Xcode 12 and Swift 5.3 and has a minimum deployment target of iOS 9.
- All
ReactiveCompatibleobjects (.rxnamespace) getBinders for all properties for free using@dynamicMemberLookup. - New
Infallibleobject which is identical toObservablewith the guarantee of never failing. - Add variadic
drive()andemit()to multiple observers and relays. - New
decode(type:decoder:)operator forObsrvableTypes ofData. SingleEventis now simplyResult<Element, Swift.Error>and methods changed accordingly (e.g.subscribe(onSuccess:onFailure:)).- Add
ReplayRelay. - Add new
withUnretained(_:)operator. - Add
distinctUntilChanged(at keyPath:). - Add
UIApplicationReactive extensions . - Rename
catchError(_:)tocatch(_:). - Rename
catchErrorJustReturn(_:)tocatchAndReturn(_:). - Rename
elementAt(_:)toelement(at:). - Rename
retryWhen(_:)toretry(when:). - Rename
takeUntil(_:)totake(until:)andtakeUntil(behavior:_:)totake(until:behavior:). - Rename
takeWhile(_:)totake(while:)andtakeWhile(behavior:_:)totake(while:behavior:). - Rename
take(_:)duration overload totake(for:)(e.g.take(for: .seconds(3))). - Rename
skipWhile(_:)toskip(while:). - Rename
takeUntil(_:)totake(until:). - Rename
observeOnandsubscribeOntoobserve(on:)andsubscribe(on:). ignoreElements()now returnsObservable<Never>.- Make
SharedSequenceconform toObservableConvertibleType. - Add
onDisposedtoMaybe,CompletableandSingle. - Unify and optimize swizzling extensions into a single one.
- Add
DisposeBagfunction builder to allow easy comma-less initialization of aDisposeBag. - Advance support of XCFrameworks by enabling
BUILD_LIBRARY_FOR_DISTRIBUTIONand cleaning up. - Move URLSession logging settings to a more appropriate URLSession.rx.shouldLogRequest configurable closure.
- Many, many, many quality of life bugs and fixes.
