Skip to content

Releases: ReactiveX/RxSwift

Juraj

20 Oct 09:53
Compare
Choose a tag to compare
Juraj Pre-release
Pre-release

This is a beta version of RxSwift 2.0.

Updated

  • Adds Driver unit. This unit uses Swift compiler to prove certain properties about observable sequences. Specifically
    • that fallback error handling is put in place
    • results are observed on main thread
    • work is performed only when there is a need (at least one subscriber)
    • computation results are shared between different observers (replay latest element)
  • Renames ObserverOf to AnyObserver.
  • Adds new interface ObservableConvertibleType.
  • Adds BlockingObservable to RxBlocking and makes it more consistent with RxJava.
  • Renames func subscribe(next:error:completed:disposed:) to func subscribe(onNext:onError:onCompleted:onDisposed:)
  • Adds concat convenience method public func concat<O : ObservableConvertibleType where O.E == E>(second: O) -> RxSwift.Observable<Self.E>
  • Adds skipUntil operator.
  • Adds takeWhile operator.
  • Renames takeWhile indexed version to takeWhileWithIndex
  • Adds skipWhile operator.
  • Adds skipWhileWithIndex operator.
  • Adds using operator.
  • Renames func doOn(next:error:completed:) to func doOn(onNext:onError:onCompleted:).
  • Makes RecursiveImmediateSchedulerOf private.
  • Makes RecursiveSchedulerOf private.
  • Adds ConcurrentMainScheduler.
  • Adds overflow error so now in case of overflow, operators will return RxErrorCode.Overflow.
  • Adds rx_modelAtIndexPath to UITableView and UICollectionView.
  • Adds var rx_didUpdateFocusInContextWithAnimationCoordinator: ControlEvent<(context:animationCoordinator:)> to UITableView and UICollectionView
  • Makes resultSelector argument in combineLatest explicit func combineLatest<O1, O2, R>(source1: O1, _ source2: O2, resultSelector: (O1.E, O2.E) throws -> R) -> RxSwift.Observable<R>.
  • Makes resultSelector argument in zip explicit func combineLatest<O1, O2, R>(source1: O1, _ source2: O2, resultSelector: (O1.E, O2.E) throws -> R) -> RxSwift.Observable<R>.
  • Adds activity indicator example in RxExample app.
  • Adds two way binding example in RxExample app.
  • many other small features

Fixed

  • Problem with xcodebuild 7.0.1 treating tvOS shared schemes as osx schemes.

Check out Migration guide to RxSwift 2.0

Screenzilla

04 Oct 11:06
Compare
Choose a tag to compare
Screenzilla Pre-release
Pre-release

This is a alpha version of RxSwift 2.0.

Updated

  • Adds tvOS support
  • Adds watchOS support
  • Adds auto loading example to example app
  • Restores old Variable behavior. Variable doesn't send anything on dealloc.
  • Adds performance tests target.
  • Adds more detailed resource tracing during unit tests (important for further optimizations).
  • Adds UIStepper extensions.
  • Adds UIBarButtonItem enabled property wrapper.
  • Adds response data to userInfo of error for rx_response extensions of NSURLSession.
  • Adds onNext, onError and onCompleted convenience methods to ObserverType.

Fixed

  • Fixes problem on some systems with unregistering CurrentThreadScheduler from current thread.
  • Fixes retry parameter naming (maxAttemptCount).
  • Fixes a lot of unit test warnings.
  • Removes embedding of Swift library with built frameworks.

Check out Migration guide to RxSwift 2.0

Anamorphism

13 Sep 14:41
Compare
Choose a tag to compare
Anamorphism Pre-release
Pre-release

This is a alpha version of RxSwift 2.0.

  • Renames ImmediateScheduler protocol to ImmediateSchedulerType
  • Renames Scheduler protocol to SchedulerType
  • Adds CurrentThreadScheduler
  • Adds generate operator
  • Cleanup of dead observer code.
  • Removes SpinLocks in disposables in favor of more performant OSAtomicCompareAndSwap32.
  • Adds buffer operator (version with time and count).
  • Adds range operator.
  • Adds repeat operator.

Check out Migration guide to RxSwift 2.0

l3O

09 Sep 10:28
Compare
Choose a tag to compare
l3O Pre-release
Pre-release

This is a alpha version of RxSwift 2.0.

  • Renames ScopedDispose to ScopedDisposable
  • Deprecates observeSingleOn in favor of observeOn
  • Adds inline documentation
  • Renames from to asObservable extension method on SequenceType
  • Renames catchErrorResumeNext in favor of catchErrorJustReturn
  • Deprecates catchErrorToResult, the preferred way is to use Swift do/try/catch mechanism.
  • Deprecates RxResult, the preferred way is to use Swift do/try/catch mechanism.
  • Deprecates sendNext on Variable in favor of just using value setter.
  • Renames rx_searchText to rx_text on UISearchBar+Rx.
  • Changes parameter type for rx_imageAnimated to be transitionType (kCATransitionFade, kCATransitionMoveIn, ...).

Check out Migration guide to RxSwift 2.0

NS

01 Sep 11:33
Compare
Choose a tag to compare
NS Pre-release
Pre-release

This is a alpha version of RxSwift 2.0.

New version of the language helped us to improve a lot of things and this is a short summary of changes.

  • Removes deprecated APIs
  • Adds ObservableType
  • Moved from using >- operator to protocol extensions .
  • Adds support for Swift 2.0 error handling try/do/catch

You can now just write

    API.fetchData(URL)
      .map { rawData in
          if invalidData(rawData) {
              throw myParsingError
          }

          ...

          return parsedData
      }
  • RxCocoa introduces bindTo extensions
    combineLatest(firstName.rx_text, lastName.rx_text) { $0 + " " + $1 }
            .map { "Greeting \($0)" }
            .bindTo(greetingLabel.rx_text)

... works for UITableView/UICollectionView too

viewModel.rows
            .bindTo(resultsTableView.rx_itemsWithCellIdentifier("WikipediaSearchCell")) { (_, viewModel, cell: WikipediaSearchCell) in
                cell.viewModel = viewModel
            }
            .addDisposableTo(disposeBag)
  • Adds new operators (array version of zip, array version of combineLatest, ...)
  • Renames catch to catchError
  • Change from disposeBag.addDisposable to disposable.addDisposableTo
  • Deprecates aggregate in favor of reduce
  • Deprecates variable in favor of shareReplay(1) (to be consistent with RxJS version)

Check out Migration guide to RxSwift 2.0

1.9.1

17 Aug 08:45
Compare
Choose a tag to compare

Updated

  • Adds Calculator example app
  • Performance improvements for Queue

Fixed

  • Crash in rx_didChangeAuthorizationStatus. #89

493 Unit tests
23 files changed, 833 insertions(+), 136 deletions(-)

Bellevue

02 Aug 21:58
Compare
Choose a tag to compare
  • Documentation
  • Improves observeOn for concurrent schedulers
  • Adds official iOS 7 support
  • Adds KVO specializations for CGPoint, CGRect and CGSize
  • Adds automation tests
  • Adds CI
  • Fixes a couple of problems

493 Unit tests
189 files changed, 6074 insertions(+), 1511 deletions(-)

1.8.1

21 Jul 20:51
Compare
Choose a tag to compare
  • Fixes problem with finite observables being bound to collection/table view
  • Adds UITextView+Rx

Pole

12 Jul 19:55
Compare
Choose a tag to compare
  • rx_deallocating
  • rx_deallocated
  • enables weak KVO observing
  • adds blocking operators (toArray, first, last) and new RxBlocking project
  • CLLocationManager integration
  • UIGestureRecognizer integration
  • UIActionSheet integration
  • UIAlertView integration
  • UISegmentedControl integration
  • UISwitch integration
  • enables partial Carthage integration

73 files changed, 4386 insertions(+), 702 deletions(-)
481 unit tests passed

Dane

05 Jul 21:30
Compare
Choose a tag to compare
  • RxCocoa revamp, enables easy delegate wrapping rx_delegate.observe("scrollView:willDisplayCell:")
  • Adds reactive data sources
  • RxDataSourceKit - automatic animated updates from streams
  • Removes AnyObject constraint from Table/CollectionView array subscription methods
  • Adds concurrent dispatch queue scheduler
  • Adds skip operator with count and time interval
  • Renames Subject to PublishSubject
  • Lots of new playgrounds
  • New examples in example app

437 unit tests total
154 files changed, 8386 insertions(+), 2222 deletions(-)