Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Reactive Extensions for JavaScript (RxJS) version 2.2.28

Compare
Choose a tag to compare
@mattpodwysocki mattpodwysocki released this 11 Jul 22:44
· 1822 commits to master since this release

Minor update from previous versions to include the following:

New Features

  • Added Rx.Observable.of to match Array.of

Rx.Observable.of

To match the semantics of ES6 Arrays, we have added Rx.Observable.of and Rx.Observable.ofWithScheduler to match the ES6 proposal of Array.of. The latter is required for scheduling purposes if you wish to swap a scheduler for the default scheduler.

Below is an example of its usage:

var source = Rx.Observable.of(1,2,3);

var subscription = source.subscribe(
    function (x) {
        console.log('Next: ' + x);
    },
    function (err) {
        console.log('Error: ' + err);   
    },
    function () {
        console.log('Completed');   
    });

// => Next: 1
// => Next: 2
// => Next: 3
// => Completed

Bug Fixes

  • Issue #203 - Rx.Observable.timer fails with rx.lite.js
  • Issue #196 - Add back Rx.Observable#shareReplay to all distributions
  • Issue #189 - Rx.AnonymousObservable refactored