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.5
mattpodwysocki
released this
17 Nov 22:59
·
2082 commits
to master
since this release
Important update to the Reactive Extensions for JavaScript (RxJS) including the addition of the notion of a lite file, which contains most of what the user needs in one file.
Changes:
Rx.Observable.create
now takes either aDisposable
as a return in the function, a function, or nothing.
/* With a disposable */
var observable = Rx.Observable.create(function (observer) {
observer.onNext(42);
observer.onCompleted();
return Rx.Disposable.create(function () {
console.log('disposed!');
});
});
/* With a function*/
var observable = Rx.Observable.create(function (observer) {
observer.onNext(42);
observer.onCompleted();
return function () {
console.log('disposed!');
};
});
/* With no retutnr*/
var observable = Rx.Observable.create(function (observer) {
observer.onNext(42);
observer.onCompleted();
// Nothing to dispose
});
New Files:
- rx.lite.js - a lighter version of RxJS which contains most operators used on a daily basis including standard operators, time-based, and async event, callback and promise based operators.
- rx.lite.compat.js - much like
rx.lite.js
but has compatibility back to IE6
New NuGet Packages:
- RxJS-Lite - A NuGet package containing both
rx.lite.js
andrx.lite.compat.js
.
Operators included in RxJS-Lite:
- Creation Operators
create
defer
empty
fromArray
generate
never
range
repeat
return
throw
- Multiple Value Operators
catch
combineLatest
concat
concatObservable
|concatAll
merge
mergeObservable
|mergeAll
skipuntil
switch
takeuntil
zip
ziparray
- Single Value Operators
asObservable
dematerialize
distinctUntilChanged
do
finally
ignoreElements
materialize
repeat
retry
scan
skipLast
startWith
takeLast
takeLastBuffer
- Standard Query Operators
select
|map
selectMany
|flatMap
selectSwitch
|flatMapLatest
skip
skipWhile
take
takeWhile
where
|filter
- Async Operators
fromCallback
fromNodeCallback
fromEvent
fromEventPattern
fromPromise
- Binding Operators
multicast
publish
publishLast
publishValue
replay
- Time-based Operators
interval
timer
delay
throttle
timeInterval
timestamp
sample
timeout
generateWithAbsolutetime
generateWithRelativetime
delaySubscription
delayWithSelector
timeoutWithSelector
throttleWithSelector
skipLastWithTime
takeLastWithTime
takeLastBufferWithtime
takewithtime
skipWithTime
skipUntilWithTime
takeUntilWithtime