JSPM

  • Created
  • Published
  • Downloads 62423
  • Score
    100M100P100Q145041F
  • License Apache-2.0

Reactive Extensions for modern JavaScript

Package Exports

  • @reactivex/rxjs
  • @reactivex/rxjs/dist/cjs/Notification
  • @reactivex/rxjs/dist/cjs/Observable
  • @reactivex/rxjs/dist/cjs/Rx
  • @reactivex/rxjs/dist/cjs/Subject
  • @reactivex/rxjs/dist/cjs/Subscriber
  • @reactivex/rxjs/dist/cjs/Subscription
  • @reactivex/rxjs/dist/cjs/observables/ArrayObservable
  • @reactivex/rxjs/dist/cjs/observables/ConnectableObservable
  • @reactivex/rxjs/dist/cjs/observables/DeferObservable
  • @reactivex/rxjs/dist/cjs/observables/EmptyObservable
  • @reactivex/rxjs/dist/cjs/observables/ErrorObservable
  • @reactivex/rxjs/dist/cjs/observables/ForkJoinObservable
  • @reactivex/rxjs/dist/cjs/observables/FromEventObservable
  • @reactivex/rxjs/dist/cjs/observables/FromEventPatternObservable
  • @reactivex/rxjs/dist/cjs/observables/FromObservable
  • @reactivex/rxjs/dist/cjs/observables/InfiniteObservable
  • @reactivex/rxjs/dist/cjs/observables/IntervalObservable
  • @reactivex/rxjs/dist/cjs/observables/IteratorObservable
  • @reactivex/rxjs/dist/cjs/observables/PromiseObservable
  • @reactivex/rxjs/dist/cjs/observables/RangeObservable
  • @reactivex/rxjs/dist/cjs/observables/ScalarObservable
  • @reactivex/rxjs/dist/cjs/observables/SubscribeOnObservable
  • @reactivex/rxjs/dist/cjs/observables/TimerObservable
  • @reactivex/rxjs/dist/cjs/operators/buffer
  • @reactivex/rxjs/dist/cjs/operators/bufferCount
  • @reactivex/rxjs/dist/cjs/operators/bufferTime
  • @reactivex/rxjs/dist/cjs/operators/bufferToggle
  • @reactivex/rxjs/dist/cjs/operators/bufferWhen
  • @reactivex/rxjs/dist/cjs/operators/catch
  • @reactivex/rxjs/dist/cjs/operators/combineAll
  • @reactivex/rxjs/dist/cjs/operators/combineLatest
  • @reactivex/rxjs/dist/cjs/operators/combineLatest-static
  • @reactivex/rxjs/dist/cjs/operators/combineLatest-support
  • @reactivex/rxjs/dist/cjs/operators/concat
  • @reactivex/rxjs/dist/cjs/operators/concat-static
  • @reactivex/rxjs/dist/cjs/operators/concatAll
  • @reactivex/rxjs/dist/cjs/operators/concatMap
  • @reactivex/rxjs/dist/cjs/operators/concatMapTo
  • @reactivex/rxjs/dist/cjs/operators/count
  • @reactivex/rxjs/dist/cjs/operators/debounce
  • @reactivex/rxjs/dist/cjs/operators/defaultIfEmpty
  • @reactivex/rxjs/dist/cjs/operators/delay
  • @reactivex/rxjs/dist/cjs/operators/distinctUntilChanged
  • @reactivex/rxjs/dist/cjs/operators/distinctUntilKeyChanged
  • @reactivex/rxjs/dist/cjs/operators/do
  • @reactivex/rxjs/dist/cjs/operators/expand
  • @reactivex/rxjs/dist/cjs/operators/filter
  • @reactivex/rxjs/dist/cjs/operators/finally
  • @reactivex/rxjs/dist/cjs/operators/flatMap
  • @reactivex/rxjs/dist/cjs/operators/flatMap-support
  • @reactivex/rxjs/dist/cjs/operators/flatMapTo
  • @reactivex/rxjs/dist/cjs/operators/flatMapTo-support
  • @reactivex/rxjs/dist/cjs/operators/groupBy
  • @reactivex/rxjs/dist/cjs/operators/map
  • @reactivex/rxjs/dist/cjs/operators/mapTo
  • @reactivex/rxjs/dist/cjs/operators/materialize
  • @reactivex/rxjs/dist/cjs/operators/merge
  • @reactivex/rxjs/dist/cjs/operators/merge-static
  • @reactivex/rxjs/dist/cjs/operators/merge-support
  • @reactivex/rxjs/dist/cjs/operators/mergeAll
  • @reactivex/rxjs/dist/cjs/operators/multicast
  • @reactivex/rxjs/dist/cjs/operators/observeOn
  • @reactivex/rxjs/dist/cjs/operators/observeOn-support
  • @reactivex/rxjs/dist/cjs/operators/partition
  • @reactivex/rxjs/dist/cjs/operators/publish
  • @reactivex/rxjs/dist/cjs/operators/publishBehavior
  • @reactivex/rxjs/dist/cjs/operators/publishReplay
  • @reactivex/rxjs/dist/cjs/operators/reduce
  • @reactivex/rxjs/dist/cjs/operators/repeat
  • @reactivex/rxjs/dist/cjs/operators/retry
  • @reactivex/rxjs/dist/cjs/operators/retryWhen
  • @reactivex/rxjs/dist/cjs/operators/scan
  • @reactivex/rxjs/dist/cjs/operators/skip
  • @reactivex/rxjs/dist/cjs/operators/skipUntil
  • @reactivex/rxjs/dist/cjs/operators/startWith
  • @reactivex/rxjs/dist/cjs/operators/subscribeOn
  • @reactivex/rxjs/dist/cjs/operators/switchAll
  • @reactivex/rxjs/dist/cjs/operators/switchLatest
  • @reactivex/rxjs/dist/cjs/operators/switchLatestTo
  • @reactivex/rxjs/dist/cjs/operators/take
  • @reactivex/rxjs/dist/cjs/operators/takeUntil
  • @reactivex/rxjs/dist/cjs/operators/throttle
  • @reactivex/rxjs/dist/cjs/operators/timeout
  • @reactivex/rxjs/dist/cjs/operators/timeoutWith
  • @reactivex/rxjs/dist/cjs/operators/toArray
  • @reactivex/rxjs/dist/cjs/operators/toPromise
  • @reactivex/rxjs/dist/cjs/operators/window
  • @reactivex/rxjs/dist/cjs/operators/windowCount
  • @reactivex/rxjs/dist/cjs/operators/windowTime
  • @reactivex/rxjs/dist/cjs/operators/windowToggle
  • @reactivex/rxjs/dist/cjs/operators/windowWhen
  • @reactivex/rxjs/dist/cjs/operators/withLatestFrom
  • @reactivex/rxjs/dist/cjs/operators/zip
  • @reactivex/rxjs/dist/cjs/operators/zip-static
  • @reactivex/rxjs/dist/cjs/operators/zip-support
  • @reactivex/rxjs/dist/cjs/operators/zipAll
  • @reactivex/rxjs/dist/cjs/schedulers/FutureAction
  • @reactivex/rxjs/dist/cjs/schedulers/ImmediateScheduler
  • @reactivex/rxjs/dist/cjs/schedulers/NextTickAction
  • @reactivex/rxjs/dist/cjs/schedulers/NextTickScheduler
  • @reactivex/rxjs/dist/cjs/schedulers/immediate
  • @reactivex/rxjs/dist/cjs/schedulers/nextTick
  • @reactivex/rxjs/dist/cjs/subjects/BehaviorSubject
  • @reactivex/rxjs/dist/cjs/subjects/GroupSubject
  • @reactivex/rxjs/dist/cjs/subjects/ReplaySubject
  • @reactivex/rxjs/dist/cjs/subjects/SubjectSubscription
  • @reactivex/rxjs/dist/cjs/util/FastMap
  • @reactivex/rxjs/dist/cjs/util/Immediate
  • @reactivex/rxjs/dist/cjs/util/Map
  • @reactivex/rxjs/dist/cjs/util/Symbol_iterator
  • @reactivex/rxjs/dist/cjs/util/bindCallback
  • @reactivex/rxjs/dist/cjs/util/errorObject
  • @reactivex/rxjs/dist/cjs/util/isDate
  • @reactivex/rxjs/dist/cjs/util/isNumeric
  • @reactivex/rxjs/dist/cjs/util/noop
  • @reactivex/rxjs/dist/cjs/util/not
  • @reactivex/rxjs/dist/cjs/util/root
  • @reactivex/rxjs/dist/cjs/util/throwError
  • @reactivex/rxjs/dist/cjs/util/tryCatch
  • @reactivex/rxjs/dist/cjs/util/tryOrOnError
  • @reactivex/rxjs/dist/es6/Subject

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@reactivex/rxjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status

RxJS Next (pre-alpha)

Reactive Extensions Library for JavaScript

Apache 2.0 License

Important

By contributing or commenting on issues in this repository, whether you've read them or not, you're agreeing to the Contributor Code of Conduct. Much like traffic laws, ignorance doesn't grant you immunity.

Installation

npm install @ReactiveX/RxJS

Goals

  • Provide better performance than preceding versions of RxJS
  • To model/follow the ES7 Observable Spec to the observable.
  • Provide more modular file structure in a variety of formats
  • Provide more debuggable call stacks than preceding versions of RxJS

Building/Testing

The build and test structure is fairly primitive at the moment. There are various npm scripts that can be run:

  • build_es6: Transpiles the TypeScript files from src/ to dist/es6
  • build_cjs: Transpiles the ES6 files from dist/es6 to dist/cjs
  • build_amd: Transpiles the ES6 files from dist/es6 to dist/amd
  • build_global: Transpiles/Bundles the CommonJS files from dist/cjs to dist/global/Rx.js
  • build_all: Performs all of the above in the proper order.
  • build_test: builds ES6, then CommonJS, then runs the tests with jasmine
  • build_perf: builds ES6, CommonJS, then global, then runs the performance tests with protractor
  • test: runs tests with jasmine, must have built prior to running.

Example

# build all the things!
npm run build_all

Performance Tests

First you'll need to host the root directory under a web server, the simplest way to do that is to install http-server with npm i -g http-server, then start it in the home directory. After that you can run npm run build_perf or npm run perf to run the performance tests with protractor (which also needs to be globally installed)

Prerequisites

Running the performance tests requires protractor globally installed and an http server of some sort. http-server the node module will work:

npm i -g protractor http-server