* [npm] upgrade to RxJS 6 (#18885) This PR upgrades RxJS to version 6 and switches to a fork of `stream-to-observable` which includes an updated version of `any-observable` that supports RxJS 6 until https://github.com/jamestalmage/stream-to-observable/pull/10 is merged. The primary change in this version of RxJS is the movement of stream operators from `Obersable.prototype` to the `rxjs/operators` module. Some of the operators, like `catch` and `do`, have been renamed (`catchError`, and `tap`). The Obsevable factories have also been moved from static methods on the `Observable` class to named exports of the root `rxjs` module. Some of those factories have also changed slightly, like `fromEvent` which now emits arrays if the event handler is called with multiple arguments. ```js // import the Rx namespace to get the Observable factories import * as Rx from 'rxjs'; // import the operators as named imports import { map, tap, switchMap } from 'rxjs/operators'; ``` * [rxjs/dev-utils] fix old operator usage * [rxjs/dev-utils] remove one more old operator |
||
---|---|---|
.. | ||
build_version.js | ||
get_flags.js | ||
get_plugins.js | ||
git_info.js | ||
globs.js | ||
logger.js |