6a429d7fa3
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'; ```
25 lines
556 B
JSON
25 lines
556 B
JSON
{
|
|
"name": "@kbn/dev-utils",
|
|
"main": "./target/index.js",
|
|
"types": "./index.d.ts",
|
|
"version": "1.0.0",
|
|
"license": "Apache-2.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "babel src --out-dir target",
|
|
"kbn:bootstrap": "yarn build"
|
|
},
|
|
"dependencies": {
|
|
"chalk": "^2.3.0",
|
|
"execa": "^0.10.0",
|
|
"moment": "^2.20.1",
|
|
"rxjs": "^6.1.0",
|
|
"tree-kill": "^1.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@kbn/babel-preset": "link:../kbn-babel-preset",
|
|
"babel-cli": "^6.26.0",
|
|
"chance": "1.0.6",
|
|
"expect.js": "0.3.1"
|
|
}
|
|
}
|