{"full_name":"Reactive-Extensions/RxJS","owner":"Reactive-Extensions","name":"RxJS","shard":"1","url":"https://github.com/Reactive-Extensions/RxJS","description":"The Reactive Extensions for JavaScript","homepage":"http://reactivex.io","topics":[],"tag_pages":[],"language":"JavaScript","license":"NOASSERTION","avatar":"https://avatars.githubusercontent.com/u/984368?v=4","created_at":"2012-01-07T00:31:41Z","pushed_at":"2018-04-18T20:17:39Z","metrics":{"stars":19311,"forks":2045,"watchers":0,"issues":874,"prs":637,"releases":34,"issues_open":231,"issues_closed":643,"prs_open":54,"prs_closed":63,"prs_merged":520,"discussions":0},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[19311,19312,19312,19312,19312,19311,19311],"forks":[2046,2046,2045,2045,2045,2045,2045],"watchers":[null,0,0,0,0,0,0],"issues_open":[null,231,231,231,231,231,231],"prs_open":[null,55,54,54,54,54,54]},"boards":{},"same_owner":[],"issues":[{"number":1487,"title":"Compilation fails with TypeScript 2.4","comments":19,"created_at":"2017-06-15T16:41:51Z"},{"number":1088,"title":"BehaviourSubject toPromise isn't working","comments":15,"created_at":"2016-01-07T10:10:45Z"},{"number":1349,"title":"Implement Single Observable variant","comments":11,"created_at":"2016-10-25T23:27:06Z"},{"number":893,"title":"Many TypeScript compile errors when using  NuGet RxJS-All?","comments":11,"created_at":"2015-09-08T15:22:19Z"},{"number":1040,"title":"switchFirst, flatMapLatest, flatMapDebounce?","comments":10,"created_at":"2015-11-22T12:26:29Z"},{"number":1247,"title":"zipproto.ts and mergeproto.ts not found","comments":9,"created_at":"2016-05-28T10:29:25Z"},{"number":958,"title":"Strange bugs in zip","comments":9,"created_at":"2015-10-10T02:25:39Z"},{"number":114,"title":"doc request","comments":9,"created_at":"2014-02-20T15:52:35Z"}],"discussions":[],"latest_release":{"name":"RxJS v4.1.0","tag":"v4.1.0","published_at":"2016-03-07T21:05:49Z","body":"We are happy to announce the release of RxJS version 4.1.  With this release came a few new additions as well as a new system for pulling in what you want.\n\nSome of the changes are the following:\n- Build What You Want with `@rxjs/rx`\n- Adding `repeatWhen`\n- Parity with RxJS v5 names\n- Other changes\n\n## Build What You Want with `@rxjs/rx`\n\nOne of the biggest requests with RxJS was to build only what you wanted.  In previous attempts, we looked at a CLI to build what you wanted, but that was suboptimal experience.  Instead, we have ported the existing code base to CommonJS format so that it works right out of the box with Node.js, or with your favorite bundler whether it is Browserify, Webpack, Rollup, etc.\n\nBy default, this brings in all of RxJS when you require the `@rxjs/rx` module:\n\n``` js\nconst Rx = require('@rxjs/rx');\n\nconst subscription = Rx.Observable.from([1,2,3])\n  .filter(x => x % 2 === 0)\n  .map(x => x + 2)\n  .subscribe(x => console.log(`The answer is ${x}`));\n// => The answer is 4 \n```\n\nNow it is possible to bring in as much or as little as you want by only including the operators you want:\n\n``` js\nconst fromArray = require('@rxjs/rx/observable/fromArray');\nconst filter = require('@rxjs/rx/observable/filter');\nconst map = require('@rxjs/rx/observable/map');\n\nconst source = fromArray([1,2,3]);\n\nconst filtered = filter(source, x => x % 2 === 0);\n\nconst mapped = map(filtered, x => x + 2);\n\nconst subscription = mapped.subscribe( x => console.log(`The answer is ${x}`) );\n// => The answer is 4 \n```\n\nNot only can you bring in certain operators, but you can also add each one to the prototype if you want the nice chaining feature as well.\n\n``` js\nconst Observable = require('@rxjs/rx/observable');\n\n// Add class methods \nObservable.addToObject({\n  fromArray: require('@rxjs/rx/observable/fromarray')\n});\n\n// Add instance methods \nObservable.addToPrototype({\n  filter: require('@rxjs/rx/observable/filter'),\n  map: require('@rxjs/rx/observable/map')\n});\n\nconst subscription = Observable.fromArray([1,2,3])\n  .filter(x => x % 2 === 0)\n  .map(x => x + 2)\n  .subscribe(x => console.log(`The answer is ${x}`));\n```\n\nIn addition, we also added some distributions that you will find under our `src/modular/dist` folder which contains all of RxJS built in a UMD style as well as a \"lite\" version as well.  This should give you the building blocks for creating your own builds of RxJS and taking the only the operators you need.\n\n## Adding `repeatWhen`\n\nWe often try to keep parity with other Rx versions such as RxJava.  To that end, we've added `repeatWhen` which complements the `retryWhen` we've had for quite some time.  Rather than buffering and replaying the sequence from the source Observable, the `repeatWhen` resubscribes to and mirrors the source Observable, but only conditionally based upon the Observable you return from the call.\n\nHere is an example where we can repeat a sequence twice with a delay of 200ms in between time.\n\n``` js\nconst source = Rx.Observable.just(42)\n  .repeatWhen(function(notifications) {\n    return notifications.scan((acc, x) => return acc + x, 0)\n    .delay(200)\n    .takeWhile(count => count < 2);\n  });\n\nvar subscription = source.subscribe(\n  x => console.log(`Next ${x}`,\n  err => console.log(`Error ${err}`),\n  () => console.log('Completed')\n);\n\n// => Next: 42\n// 200 ms pass\n// => Next: 42\n// 200 ms pass\n// => Completed\n```\n\n## Parity with RxJS v5 names\n\nGiven the differences between [RxJS v4 and RxJS v5](https://github.com/ReactiveX/RxJS/blob/master/MIGRATION.md), we've made the migration path easier by creating aliases for you such as the following:\n\n``` js\n// Prototype methods\nObservable.prototype.race = Observable.prototype.amb;\nObservable.prototype.mergeMap = Observable.prototype.flatMap;\nObservable.prototype.switchMap = Observable.prototype.flatMapLatest;\nObservable.prototype.exhaustMap = Observable.prototype.flatMapFirst;\nObservable.prototype.exhaust = Observable.prototype.switchFirst;\nObservable.prototype.publi","is_prerelease":false},"readme":false,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}