Skip to content

0.25.0

Compare
Choose a tag to compare
@zsxwing zsxwing released this 08 Jun 10:38
· 115 commits to 0.x since this release

This release upgrades RxJava to 1.0.11 along with the following enhancements:

  • Deprecate ExperimentalAPIs and use @Experimental/@Beta annotations directly. Unstable APIs wil be labeled Experimental/Beta in Scaladoc.
  • Change error[T] to error: Observable[Nothing]
  • Add TestSubscriber and its examples. Writing unit tests is much easier now. See TestSubscriberExample for examples.
  • Add onBackpressureLatest and variants of flatMap and using.
  • Add more experimental methods of Subject.
  • Move examples to examples package: https://github.com/ReactiveX/RxScala/tree/0.x/examples/src/test/scala/examples
  • Some document fixes

Migration from 0.24.1 to 0.25.0

Observable.error does not have a type parameter any more. Please remove the type parameter of Observable.error in your codes.
Sometimes removing the type parameter may break your codes. E.g.,

val x = Observable.error[Int](new RuntimeException("Oops")).toBlocking.single
println(x + 1)

It won't be compiled if Int is removed. For these cases, you can add the explicit type to the variable and make the compiler happy, such as

val x: Int = Observable.error(new RuntimeException("Oops")).toBlocking.single
println(x + 1)

ExperimentalAPIs is deprecated. It's not a breaking change, but we plan to remove ExperimentalAPIs in 0.26.0. If you are using ExperimentalAPIs,
please recompile your codes and fix them as per the deprecated messages provided by the compiler as soon as possible. Once ExperimentalAPIs is removed,
you won't get the deprecated messages.

Pull Requests

  • Pull 157 Update the out-of-date example in "Notification" doc
  • Pull 159 Correct documentation for Observable.merge
  • Pull 162 Fixed minor documentation typo
  • Pull 163 Update to Scala 2.10.5 / 2.11.6
  • Pull 164 Change error[T] to error: Observable[Nothing]
  • Pull 166 Update to using RxJava 1.0.11
  • Pull 168 Move examples
  • Pull 170 Add TestSubscriber

Artifacts: Maven Central