5.0.0
版本发布时间: 2019-04-30 03:40:13
ReactiveX/RxSwift最新发布版本:6.7.1(2024-05-01 23:50:41)
RxSwift 5 is a mostly source-compatible release targeting the Swift 5 compiler.
Xcode 10.2 is the minimum supported version (or Swift 5 on Linux).
If you're using Xcode 10.1 and below, please use RxSwift 4.5.
- Relays have been moved to a separate framework - RxRelay, and can be used without RxCocoa. #1924
-
TimeInterval
has been deprecated in favor ofDispatchTimeInterval
. For example -throttle(1.2)
would change tothrottle(.milliseconds(1200))
, whilethrottle(3)
would change tothrottle(.seconds(3))
. #1472 -
Variable
is now entirely deprecated. #1922 -
do
now provides additional "after" closures. For example,do(onNext:)
anddo(afterNext:)
. #1898 -
bind(to:)
now supports multiple observers (e.g.bind(to: observer1, observer2)
). #1702 - Changes the return type of
ObservableType.toArray
toSingle
. #1923 - Adds
compactMap
. #1925 - Deprecate
Completable.merge
in favor ofCompletable.zip
. #1929 #1931 - RxSwift can be built as a Static Library using Carthage 0.33 and up. #1940
Anomalies
-
SubjectType.SubjectObserverType
has been renamed toSubjectType.Observer
. #1950 - The
S
associated type has been renamed toSubject
where applicable. #1950 - The
S
generic constraint onSharedSequence
has been renamed toSharingStrategy
. #1951 - The
E
associated type onObservableConvertibleType
andObserverType
have been renamed toElement
. #1945 - The
C
andS
associated types have been renamed toCollection
andSequence
accordingly. #1949 - Renamed
ElementType
associatedtype toElement
. #1945 - Renamed
TraitType
associatedtype toTrait
. #1945 - Make
RxMutableBox
supported on Linux in Swift 5. #1917 - Fix incorrect assignment to
Thread.threadDictionary
on Linux. #1912 -
combineLatest
of an empty array now completes immediately. #1879 - Add
resultsSelector
missing closure labels for some overloads ofcombineLatest
&zip
.
1、 RxSwift.framework.zip 67.02MB