Skip to content

Releases: ReactiveX/RxJava

0.19.6

09 Jul 05:11
Compare
Choose a tag to compare

Inclusion of rxjava-scalaz in release.

Artifacts: Maven Central

0.19.4

07 Jul 21:56
Compare
Choose a tag to compare
  • Pull 1401 OnError while emitting onNext value: object.toString
  • Pull 1409 Avoiding OperatorObserveOn from calling subscriber.onNext(..) after unsubscribe
  • Pull 1406 Kotlin M8
  • Pull 1400 Internal Data Structures
  • Pull 1399 Update Perf Tests
  • Pull 1396 RxScala: Fix the compiler warnings
  • Pull 1397 Adding the hooks unsafeSubscribe

Artifacts: Maven Central

0.19.2

26 Jun 16:24
Compare
Choose a tag to compare
  • Pull 1388 CompositeException stops mutating nested Exceptions
  • Pull 1387 Upgrade to JMH 0.9
  • Pull 1297 [RxScala] rxjava-scalaz: providing some type class instances
  • Pull 1332 IOSSchedulers for RoboVM
  • Pull 1380 Variety of Fixes
  • Pull 1379 Parallel Operator Rewrite
  • Pull 1378 BugFix: Pivot Concurrency
  • Pull 1376 Revision of JMH Tests
  • Pull 1375 RxScala: Add idiomatic toXXX methods
  • Pull 1367 Fix the bug that 'flatMap' swallows OnErrorNotImplementedException
  • Pull 1374 Fix head/tail false sharing issues
  • Pull 1369 DebugHook got miswired before
  • Pull 1361 Fix a race condition if queued actions have been handled already
  • Pull 1336 RxScala: Add the rest missing methods to BlockingObservable
  • Pull 1362 RxScala: Fix #1340 and #1343
  • Pull 1359 Fixed padding of the integer and node classes

Artifacts: Maven Central

0.19.1

12 Jun 18:13
Compare
Choose a tag to compare
  • Pull 1357 MergeWith, ConcatWith, AmbWith
  • Pull 1345 RxScala: Simplify doOnCompleted/Terminate, finallyDo callback usage
  • Pull 1337 Make Future receive NoSuchElementException when the BlockingObservable is empty
  • Pull 1335 RxAndroid: Bump build tools to 19.1 and android plugin to 0.11
  • Pull 1327 Join patterns extension for 4..9 and N arity joins.
  • Pull 1321 RxAndroid: Ensuring Runnables posted with delay to a Handler are removed when unsubcribed
  • Pull 1347 Allow use of the returned subscription to cancel periodic scheduling
  • Pull 1355 Don't add the subscriber to the manager if it unsubscribed during the onStart call
  • Pull 1350 Baseline Performance Tests
  • Pull 1316 RxScala: Add the rest operators
  • Pull 1324 TrampolineScheduler & Unsubscribe
  • Pull 1311 Tiny integration test change

Artifacts: Maven Central

0.19.0

03 Jun 16:29
Compare
Choose a tag to compare

This release focused on performance and cleanup. If all goes according to plan the next release should be 0.20.0 with backpressure and then we will release 1.0 Release Candidate with the public API no longer allowing breaking changes.

Performance and Object Allocation

Fairly significant object allocation improvements are included in this release which reduce GC pressure and improve performance.

Two pull requests (amongst several) with details are:

  • #1281 Reduce Subscription Object Allocation
  • #1246 Moved to atomic field updaters

With the following simple test code relative performance has increased as shown below:

Observable<Integer> o = Observable.just(1);
o.map(i -> {
    return String.valueOf(i);
}).map(i -> {
    return Integer.parseInt(i);
}).subscribe(observer);
Rx 0.19
Run: 10 - 10,692,099 ops/sec 
Run: 11 - 10,617,627 ops/sec 
Run: 12 - 10,938,405 ops/sec 
Run: 13 - 10,917,388 ops/sec 
Run: 14 - 10,783,298 ops/sec 
Rx 0.18.4
Run: 11 - 8,493,506 ops/sec 
Run: 12 - 8,403,361 ops/sec 
Run: 13 - 8,400,537 ops/sec 
Run: 14 - 8,163,998 ops/sec 
Rx 0.17.6
Run: 10 - 4,930,966 ops/sec 
Run: 11 - 6,119,951 ops/sec 
Run: 12 - 7,062,146 ops/sec 
Run: 13 - 6,514,657 ops/sec 
Run: 14 - 6,369,426 ops/sec 
Rx 0.16.1
Run: 10 - 2,879,355 ops/sec 
Run: 11 - 3,236,245 ops/sec 
Run: 12 - 4,468,275 ops/sec 
Run: 13 - 3,237,293 ops/sec 
Run: 14 - 4,683,840 ops/sec 

Note that these numbers are relative as they depend on the JVM and hardware.

Scala Changes

Many missing operators have been added to the RxScala APIs along with fixes and other maturation.

toBlockingObservable() -> toBlocking()

The toBlockingObservable() method has been deprecated in favor of toBlocking() for brevity and fit better with possible future additions such as toParallel() without always needing the Observable suffix.

forEach

forEach as added as an alias for subscribe to match the Java 8 naming convention.

This means code can now be written as:

Observable.from(1, 2, 3).limit(2).forEach(System.out::println);

which is an alias of this:

Observable.from(1, 2, 3).take(2).subscribe(System.out::println);

Since forEach exists on BlockingObservable as well, moving from non-blocking to blocking looks like this:

// non-blocking
Observable.from(1, 2, 3).limit(2).forEach(System.out::println);
// blocking
Observable.from(1, 2, 3).limit(2).toBlocking().forEach(System.out::println);

Schedulers

Thread caching is restored to Schedulers.io() after being lost in v0.18.

A replacement for ExecutorScheduler (removed in 0.18) is accessible via Schedulers.from(Executor e) that wraps an Executor and complies with the Rx contract.

ReplaySubject

All "replay" functionality now exists directly on the ReplaySubject rather than in an internal type. This means there are now several different create methods with the various overloads of size and time.

Changelist

  • Pull 1165 RxScala: Add dropUntil, contains, repeat, doOnTerminate, startWith, publish variants
  • Pull 1183 NotificationLite.accept performance improvements
  • Pull 1177 GroupByUntil to use BufferUntilSubscriber
  • Pull 1182 Add facilities for creating Observables from JavaFX events and ObservableValues
  • Pull 1188 RxScala Schedulers changes
  • Pull 1175 Fixed synchronous ConnectableObservable.connect problem
  • Pull 1172 ObserveOn: Change to batch dequeue
  • Pull 1191 Fix attempt for OperatorPivotTest
  • Pull 1195 SwingScheduler: allow negative schedule
  • Pull 1178 Fix RxScala bug
  • Pull 1210 Add more operators to RxScala
  • Pull 1216 RxScala: Exposing PublishSubject
  • Pull 1208 OperatorToObservableList: use LinkedList to buffer the sequence’s items
  • Pull 1185 Behavior subject time gap fix 2
  • Pull 1226 Fix bug in zipWithIndex and set zip(that, selector) public in RxScala
  • Pull 1224 Implement shorter toBlocking as shorter alias for toBlockingObservable.
  • Pull 1223 ReplaySubject enhancement with time and/or size bounds
  • Pull 1160 Add replay and multicast variants to RxScala
  • Pull 1229 Remove Ambiguous Subscribe Overloads with Scheduler
  • Pull 1232 Adopt Limit and ForEach Java 8 Naming Conventions
  • Pull 1233 Deprecate toBlockingObservable in favor of toBlocking
  • Pull 1237 SafeSubscriber memory reduction
  • Pull 1236 CompositeSubscription with atomic field updater
  • Pull 1243 Remove Subscription Wrapper from Observable.subscribe
  • Pull 1244 Observable.from(T) using Observable.just(T)
  • Pull 1239 RxScala: Update docs for "apply" and add an example
  • Pull 1248 Fixed testConcurrentOnNextFailsValidation
  • Pull 1246 Moved to atomic field updaters.
  • Pull 1254 ZipIterable unsubscription fix
  • Pull 1247 Add zip(iterable, selector) to RxScala
  • Pull 1260 Fix the bug that BlockingObservable.singleOrDefault doesn't call unsubscribe
  • Pull 1269 Fix the bug that int overflow can bypass the range check
  • Pull 1272 ExecutorScheduler to wrap an Executor
  • Pull 1264 ObserveOn scheduled unsubscription
  • Pull 1271 Operator Retry with predicate
  • Pull 1265 Add more operators to RxScala
  • Pull 1281 Reduce Subscription Object Allocation
  • Pull 1284 Lock-free, MPSC-queue
  • Pull 1288 Ensure StringObservable.from() does not perform unnecessary read
  • Pull 1286 Rename some Operator* classes to OnSubscribe*
  • Pull 1276 CachedThreadScheduler
  • Pull 1287 ReplaySubject remove replayState CHM and related SubjectObserver changes
  • Pull 1289 Schedulers.from(Executor)
  • Pull 1290 Upgrade to JMH 0.7.3
  • Pull 1293 Fix and Update JMH Perf Tests
  • Pull 1291 Check unsubscribe within observable from future
  • Pull 1294 rx.operators -> rx.internal.operators
  • Pull 1295 Change void accept to boolean accept
  • Pull 1296 Move re-used internal Scheduler classes to their own package
  • Pull 1298 Remove Bad Perf Test
  • Pull 1301 RxScala: Add convenience method for adding unsubscription callback
  • Pull 1304 Add flatMap and concatMap to RxScala
  • Pull 1306 Hooked RxJavaPlugins errorHandler up within all operators that swallow onErrors
  • Pull 1309 Hide ChainedSubscription/SubscriptionList from Public API

Artifacts: Maven Central

0.18.4

29 May 23:05
Compare
Choose a tag to compare

This is a fix for CompositeSubscription object allocation problems. Details can be found in issue #1204.

  • Pull 1283 Subscription object allocation fix

Artifacts: Maven Central

0.18.3

09 May 17:57
Compare
Choose a tag to compare
  • Pull 1161 Removed use of deprecated API from tests & operators
  • Pull 1162 fix to remove drift from schedulePeriodic
  • Pull 1159 Rxscala improvement
  • Pull 1164 JMH Perf Tests for Schedulers.computation
  • Pull 1158 Scheduler correctness improvements.

Artifacts: Maven Central

0.18.2

05 May 21:13
Compare
Choose a tag to compare

Continued work on migrating operators on path to 1.0 along with various bug fixes.

Artifacts: Maven Central

0.18.1

25 Apr 03:27
Compare
Choose a tag to compare

Artifacts: Maven Central

0.18.0

23 Apr 05:16
Compare
Choose a tag to compare

This release takes us a step closer to 1.0 by completing some of the remaining work on the roadmap.

Scheduler

The first is simplifying the Scheduler API.

The Scheduler API is now simplified to this:

class Scheduler {
    public abstract Worker createWorker(); 
    public int parallelism();
    public long now();

    public abstract static class Worker implements Subscription {
        public abstract Subscription schedule(Action0 action, long delayTime, TimeUnit unit);
        public abstract Subscription schedule(Action0 action);
        public Subscription schedulePeriodically(Action0 action, long initialDelay, long period, TimeUnit unit);
        public long now();
    }
}

This is a breaking change if you have a custom Scheduler implementation or use a Scheduler directly. If you only ever pass in a Scheduler via the Schedulers factory methods, this change does not affect you.

Additionally, the ExecutionScheduler was removed because a general threadpool does not meet the requirements of sequential execution for an Observable. It was replaced with rx.schedulers.EventLoopScheduler which is the new default for Schedulers.computation(). It is a pool of event loops.

rx.joins

The rx.joins package and associated when, and and then operators were moved out of rxjava-core into a new module rxjava-joins. This is done as the rx.joins API was not yet matured and is not going to happen before 1.0. It was determined low priority and not worth blocking a 1.0 release. If the API matures inside the separate module to the point where it makes sense to bring it back into the core it can be done in the 1.x series.

Deprecation Cleanup

This releases removes many of the classes and methods that have been deprecated in previous releases. Most of the removed functionality was migrated in previous releases to contrib modules such as rxjava-math, rxjava-async and rxjava-computation-expressions.

A handful of deprecated items still remain but can not yet be removed until all internal operators are finished migrating to using the lift/Subscriber design changes done in 0.17.0.

The full list of changes in 0.18.0:

  • Pull 1047 Scheduler Simplification
  • Pull 1072 Scheduler.Inner -> Scheduler.Worker
  • Pull 1053 Deprecation Cleanup
  • Pull 1052 Scheduler Cleanup
  • Pull 1048 Remove ExecutorScheduler - New ComputationScheduler
  • Pull 1049 Move rx.joins to rxjava-joins module
  • Pull 1068 add synchronous test of resubscribe after error
  • Pull 1066 CompositeSubscription fix
  • Pull 1071 Manual Merge of AsObservable
  • Pull 1063 Fix bugs in equals and hashCode of Timestamped
  • Pull 1070 OperationAny -> OperatorAny
  • Pull 1069 OperationAll -> OperatorAll
  • Pull 1058 Typo in javadoc
  • Pull 1056 Add drop(skip) and dropRight(skipLast) to rxscala
  • Pull 1057 Fix: Retry in Scala adaptor is ambiguous
  • Pull 1055 Fix: Missing Quasar instrumentation on Observable$2.call
  • Pull 1050 Reimplement the 'SkipLast' operator
  • Pull 967 Reimplement the 'single' operator

Artifacts: Maven Central