Skip to content

Commit

Permalink
RxJS 5: Remove cache operator
Browse files Browse the repository at this point in the history
The `cache()` operator was removed by ReactiveX/rxjs#2012. Since this
is still a prerelease (and Flow doesn't yet support prerelease
versions), we'll just remove it.
  • Loading branch information
matthewwithanm committed Oct 28, 2016
1 parent 2775e62 commit 6a3a99c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions definitions/npm/rxjs_v5.0.x/flow_v0.29.0-/rxjs_v5.0.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ declare class rxjs$Observable<+T> {

buffer(bufferBoundaries: rxjs$Observable<any>): rxjs$Observable<Array<T>>;

cache(bufferSize?: number, windowTime?: number): rxjs$Observable<T>;

catch<U>(selector: (err: any, caught: rxjs$Observable<T>) => rxjs$Observable<U>): rxjs$Observable<U>;

concat(...sources: rxjs$Observable<T>[]): rxjs$Observable<T>;
Expand Down
3 changes: 0 additions & 3 deletions definitions/npm/rxjs_v5.0.x/test_rxjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ const never: Observable<number> = Observable.empty()
// $ExpectError
(Observable.of(2).startWith(1, '2', 3): Observable<number>);

(numbers.cache(): Observable<number>);
(numbers.cache(1): Observable<number>);

(numbers.withLatestFrom(strings): Observable<[number, string]>);
// $ExpectError
(numbers.withLatestFrom(numbers): Observable<[number, string]>);
Expand Down

0 comments on commit 6a3a99c

Please sign in to comment.