Skip to content

on(.Completed)

Compare
Choose a tag to compare
@kzaher kzaher released this 02 Jan 00:58
· 2610 commits to main since this release

This is release version of RxSwift 2.0.0.

If you are using RxSwift 1.9, check out Migration guide to RxSwift 2.0

If you are using ~> RxSwift-beta.0, you can use release candidate as a guide towards release version of the API.

We've tried to make transition as painless as possible, so we've included hints what new API to use in deprecation messages of 2.0.0-rc.0

You can also read more about those changes in release notes of 2.0.0-rc.0.

Most of the changes from beta versions are cosmetic and are intended to make the API more consistent internally and between Rx versions.

Major changes from beta versions include changing from using free functions to create observable sequences to using factory methods:

Observable.just(1)

... instead of

just(1)

In case you want to use old behavior, you'll need to create those aliases to Observable factory methods in your project.

Major changes also include Variable not being observable directly, but through asObservable interface. In that way we can always complete the sequence once nothing is referencing particular variable instance. That should make it's behavior consistent with ControlProperty and ControlEvent.

You can read more about differences from beta version and release version of the api in 2.0.0-rc.0.

This is a change log from release candidate:

Features

  • Changes package names to io.rx.[library]
  • Packages data sources from RxDataSourceStarterKit into it's own repository RxDataSources under RxSwiftCommunity.
  • Removes deprecated APIs.

Anomalies

  • Replaces hacky code that solved anomaly caused by interaction between autocorrect and text controls notification mechanism with proper solution. #333