Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SamVerschueren/listr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7ef935e60f1b92fa9a70f8b92117cbfb116cf0e5
Choose a base ref
...
head repository: SamVerschueren/listr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b2955256fc12cc7dfd667616a6565c803e3dbb17
Choose a head ref
  • 4 commits
  • 17 files changed
  • 3 contributors

Commits on Nov 22, 2017

  1. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    d28fb95 View commit details

Commits on Apr 11, 2018

  1. fix(deps): Add support for RxJS 6

    BREAKING CHANGE:
    
    Minimum dependency on RxJS is ^5.6.0-forward-compat.0 || ^6.0.0-rc.1
    Brandon Roberts authored and SamVerschueren committed Apr 11, 2018
    Copy the full SHA
    44cb4db View commit details
  2. refactor(lib): Cleanup linter errors

    Brandon Roberts authored and SamVerschueren committed Apr 11, 2018
    Copy the full SHA
    42f38c2 View commit details
  3. 0.14.0

    SamVerschueren committed Apr 11, 2018
    Copy the full SHA
    b295525 View commit details
Showing with 19 additions and 23 deletions.
  1. +1 −1 example.js
  2. +0 −1 index.js
  3. +0 −1 lib/task-wrapper.js
  4. +1 −2 lib/task.js
  5. +2 −3 package.json
  6. +1 −1 test/concurrent.js
  7. +1 −1 test/enabled.js
  8. +1 −1 test/exit-on-error.js
  9. +2 −2 test/output.js
  10. +1 −1 test/renderer.js
  11. +1 −1 test/skip.js
  12. +1 −1 test/stream.js
  13. +1 −1 test/subtask.js
  14. +1 −1 test/task-wrapper.js
  15. +1 −1 test/test.js
  16. +2 −2 test/tty.js
  17. +2 −2 test/utils.js
2 changes: 1 addition & 1 deletion example.js
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
const Observable = require('rxjs/Observable').Observable;
const logSymbols = require('log-symbols');
const delay = require('delay');
const Listr = require('./');
const Listr = require('.');

const renderer = process.argv[2];

1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ const runTask = (task, context, errors) => {
};

class Listr {

constructor(tasks, opts) {
if (tasks && !Array.isArray(tasks) && typeof tasks === 'object') {
if (typeof tasks.title === 'string' && typeof tasks.task === 'function') {
1 change: 0 additions & 1 deletion lib/task-wrapper.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ const state = require('./state');
const ListrError = require('./listr-error');

class TaskWrapper {

constructor(task, errors) {
this._task = task;
this._errors = errors;
3 changes: 1 addition & 2 deletions lib/task.js
Original file line number Diff line number Diff line change
@@ -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');
@@ -10,7 +10,6 @@ const ListrError = require('./listr-error');
const defaultSkipFn = () => false;

class Task extends Subject {

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "listr",
"version": "0.13.0",
"version": "0.14.0",
"description": "Terminal task list",
"license": "MIT",
"repository": "SamVerschueren/listr",
@@ -38,7 +38,6 @@
"idle"
],
"dependencies": {
"chalk": "^1.1.3",
"cli-truncate": "^0.2.1",
"figures": "^1.7.0",
"indent-string": "^2.1.0",
@@ -52,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.1",
"stream-to-observable": "^0.2.0",
"strip-ansi": "^3.0.1"
},
2 changes: 1 addition & 1 deletion test/concurrent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {serial as test} from 'ava';
import delay from 'delay';
import Listr from '../';
import Listr from '..';
import SimpleRenderer from './fixtures/simple-renderer';
import {testOutput} from './fixtures/utils';

2 changes: 1 addition & 1 deletion test/enabled.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {serial as test} from 'ava';
import Listr from '../';
import Listr from '..';
import SimpleRenderer from './fixtures/simple-renderer';
import {testOutput} from './fixtures/utils';

2 changes: 1 addition & 1 deletion test/exit-on-error.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {serial as test} from 'ava';
import Listr from '../';
import Listr from '..';
import SimpleRenderer from './fixtures/simple-renderer';
import {testOutput} from './fixtures/utils';

4 changes: 2 additions & 2 deletions test/output.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {Observable} from 'rxjs/Observable';
import Listr from '../';
import {Observable} from 'rxjs';
import Listr from '..';
import SimpleRenderer from './fixtures/simple-renderer';
import {testOutput} from './fixtures/utils';

2 changes: 1 addition & 1 deletion test/renderer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import Listr from '../';
import Listr from '..';
import SimpleRenderer from './fixtures/simple-renderer';
import {testOutput} from './fixtures/utils';

2 changes: 1 addition & 1 deletion test/skip.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import Listr from '../';
import Listr from '..';
import SimpleRenderer from './fixtures/simple-renderer';
import {testOutput} from './fixtures/utils';

2 changes: 1 addition & 1 deletion test/stream.js
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import * as fs from 'fs';
import * as path from 'path';
import test from 'ava';
import split from 'split';
import Listr from '../';
import Listr from '..';
import SimpleRenderer from './fixtures/simple-renderer';
import {testOutput} from './fixtures/utils';

2 changes: 1 addition & 1 deletion test/subtask.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import Listr from '../';
import Listr from '..';
import SimpleRenderer from './fixtures/simple-renderer';
import {testOutput} from './fixtures/utils';

2 changes: 1 addition & 1 deletion test/task-wrapper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {serial as test} from 'ava';
import Listr from '../';
import Listr from '..';
import SimpleRenderer from './fixtures/simple-renderer';
import {testOutput} from './fixtures/utils';

2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import Listr from '../';
import Listr from '..';

test('create', t => {
t.notThrows(() => new Listr());
4 changes: 2 additions & 2 deletions test/tty.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {Observable} from 'rxjs/Observable';
import Listr from '../';
import {Observable} from 'rxjs';
import Listr from '..';
import SimpleRenderer from './fixtures/simple-renderer';
import TTYRenderer from './fixtures/tty-renderer';
import {testOutput} from './fixtures/utils';
4 changes: 2 additions & 2 deletions test/utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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 Listr from '..';
import {isListr, isObservable} from '../lib/utils';

test('isListr', t => {