UNPKG

3.57 kBMarkdownView Raw
1### v3.0.0
2
3**Breaking changes**
4
5- Support for custom inspect methods was removed. Please follow Node's [recommended practices](https://nodejs.org/api/util.html#util_util_inspect_custom) for creating a custom inspect method.
6
7### v3.0.0
8
9- Completely refactored from the ground up.
10- For the most part, `.task`, `.build`, `.series` and `.parallel` work the same way. However, event handling has changed. Please see the readme for more information and documentation.
11
12### v2.0.0
13
14- Now requires Node.js v4.0 or higher
15
16### v1.0.0
17
18- Updates the events that are emitted and adds statuses to the objects emitted on the events. see issues [#20](../../issues/20) and [#21](../../issues/21)
19- Updates the event objects to expose human readable durations. [see issue #23](../../issues/23)
20- Removes unused properties. [see issue #24](../../issues/24)
21- Updates `.build` to return a promise when the callback is not passed in. [see issue #28](../../issues/28)
22
23### v0.14.0
24
25- Updates [bach][] to `1.0.0`.
26- Errors emitted from inside a task now have the `'in task "foo":'` prefixed to the error message. [see issue #22](../../issues/22)
27- Expose `.runInfo` on the task object for use in event listeners and task functions.
28- Add `.duration` to the `.run/.runInfo` object that shows the duration in a human friendly format. This will also show the current duration from the time the task started to the time it's called if used inside a task function. [see issue #23](../../issues/23)
29
30```js
31app.task('foo', function(cb) {
32 console.log(this.runInfo.duration);
33});
34```
35
36### v0.13.0
37
38- Skip tasks by setting the `options.skip` option to the name of the task or an array of task names.
39- Making additional `err` properties non-enumerable to cut down on error output.
40
41### v0.12.0
42
43- You can no longer get a task from the `.task()` method by passing only the name. Instead do `var task = app.tasks[name];`
44- Passing only a name and no dependencies to `.task()` will result in a `noop` task being created.
45- `options` may be passed to `.build()`, `.series()` and `.parallel()`
46- `options` passed to `.build()` will be merged onto task options before running the task.
47- Skip tasks by setting their `options.run` option to `false`.
48
49### v0.11.3
50
51- Allow passing es2015 javascript generator functions to `.task()`.
52
53### v0.11.2
54
55- Allow using glob patterns for task dependencies.
56
57### v0.11.0
58
59- **BREAKING CHANGE**: Removed `.watch()`. Watch functionality can be added to [base][] applications using [base-watch][].
60
61### v0.10.0
62
63- Removes `session`.
64
65### v0.9.0
66
67- Use `default` when no tasks are passed to `.build()`.
68
69### v0.8.4
70
71- Ensure task dependencies are unique.
72
73### v0.8.2
74
75- Emitting `task` when adding a task through `.task()`
76- Returning task when calling `.task(name)` with only a name.
77
78### v0.8.0
79
80- Emitting `task:*` events instead of generic `*` events. See [event docs](#events) for more information.
81
82### v0.7.0
83
84- No longer returning the current task when `.task()` is called without a name.
85- Throwing an error when `.task()` is called without a name.
86
87### v0.6.0
88
89- Adding properties to `err` instances and emitting instead of emitting multiple parameters.
90- Adding series and parallel flows/methods.
91
92### v0.5.0
93
94- **BREAKING CHANGE** Renamed `.run()` to `.build()`
95
96### v0.4.2
97
98- `.watch` returns an instance of `FSWatcher`
99
100### v0.4.1
101
102- Currently running task returned when calling `.task()` without a name.
103
104### v0.4.0
105
106- Add session-cache to enable per-task data contexts.
107
108### v0.3.0
109
110- Event bubbling/emitting changed.
111
112### v0.1.0
113
114- Initial release.