Skip to content

Commit

Permalink
fix(deps): Add support for RxJS 6
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

Minimum dependency on RxJS is ^5.6.0-forward-compat.0 || ^6.0.0-rc.1
  • Loading branch information
Brandon Roberts authored and SamVerschueren committed Apr 11, 2018
1 parent d28fb95 commit 44cb4db
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/task.js
@@ -1,7 +1,7 @@
'use strict';
const isPromise = require('is-promise');
const streamToObservable = require('stream-to-observable');
const Subject = require('rxjs/Subject').Subject;
const Subject = require('rxjs').Subject;
const renderer = require('./renderer');
const state = require('./state');
const utils = require('./utils');
Expand All @@ -10,7 +10,6 @@ const ListrError = require('./listr-error');
const defaultSkipFn = () => false;

class Task extends Subject {

constructor(listr, task, options) {
super();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -51,7 +51,7 @@
"log-update": "^1.0.2",
"ora": "^0.2.3",
"p-map": "^1.1.1",
"rxjs": "^5.4.2",
"rxjs": "^5.6.0-forward-compat.0 || ^6.0.0-rc.0",
"stream-to-observable": "^0.2.0",
"strip-ansi": "^3.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion test/output.js
@@ -1,5 +1,5 @@
import test from 'ava';
import {Observable} from 'rxjs/Observable';
import {Observable} from 'rxjs';
import Listr from '../';
import SimpleRenderer from './fixtures/simple-renderer';
import {testOutput} from './fixtures/utils';
Expand Down
2 changes: 1 addition & 1 deletion test/tty.js
@@ -1,5 +1,5 @@
import test from 'ava';
import {Observable} from 'rxjs/Observable';
import {Observable} from 'rxjs';
import Listr from '../';
import SimpleRenderer from './fixtures/simple-renderer';
import TTYRenderer from './fixtures/tty-renderer';
Expand Down
2 changes: 1 addition & 1 deletion test/utils.js
@@ -1,5 +1,5 @@
import test from 'ava';
import {Observable as RxObservable} from 'rxjs/Observable';
import {Observable as RxObservable} from 'rxjs';
import ZenObservable from 'zen-observable';
import Listr from '../';
import {isListr, isObservable} from '../lib/utils';
Expand Down

0 comments on commit 44cb4db

Please sign in to comment.