taskgroup
Advanced tools
Comparing version 4.2.0 to 4.2.1
# History | ||
## v4.2.1 February 20, 2015 | ||
- Output more information about errors when a task completes twice | ||
## v4.2.0 February 2, 2015 | ||
@@ -24,2 +27,3 @@ - Reintroduced `try...catch` for Node v0.8 and browser environments with a workaround to prevent error suppression | ||
- If you are still on Node v0.8, synchronous errors and perhaps asynchronous errors thrown within your task method will no longer be caught by TaskGroup (due to Node 0.8's crippled domain functionality) and instead will need to be caught by your code either via preferably sent to the task method's completion callback rather than thrown, or via your own try...catch. But please upgrade to Node 0.10 or higher. | ||
- If you are running TaskGroup in a web browser, you will need to catch errors manually or utilise a domain shim (browserify has one by default) - [why?](https://github.com/bevry/taskgroup/issues/18) | ||
- In other words, this release is the most stable yet, but do run your tests (you should always do this) | ||
@@ -26,0 +30,0 @@ |
@@ -276,3 +276,3 @@ // Generated by CoffeeScript 1.9.0 | ||
Task.prototype.exit = function() { | ||
var args, err; | ||
var args, err, stateInformation, stateNames, _ref1, _ref2, _ref3; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
@@ -292,7 +292,9 @@ if (args[0] != null) { | ||
} else if (this.config.onError !== 'ignore') { | ||
err = new Error("The task [" + (this.getNames()) + "] just completed, but it had already completed earlier, this is unexpected. State information is:\n" + (util.inspect({ | ||
error: this.err, | ||
stateNames = this.getNames(); | ||
stateInformation = util.inspect({ | ||
error: ((_ref1 = this.err) != null ? (_ref2 = _ref1.stack) != null ? typeof _ref2.toString === "function" ? _ref2.toString() : void 0 : void 0 : void 0) || ((_ref3 = this.err) != null ? _ref3.message : void 0) || this.err, | ||
previousResult: this.result, | ||
currentArguments: args | ||
}))); | ||
}); | ||
err = new Error("The task [" + stateNames + "] just completed, but it had already completed earlier, this is unexpected. State information is:\n" + stateInformation); | ||
this.emit('error', err); | ||
@@ -299,0 +301,0 @@ } |
{ | ||
"title": "TaskGroup", | ||
"name": "taskgroup", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/bevry/taskgroup", |
@@ -42,3 +42,3 @@ <!-- TITLE/ --> | ||
- Install: `npm install --save taskgroup` | ||
- CDN URL: `//wzrd.in/bundle/taskgroup@4.2.0` | ||
- CDN URL: `//wzrd.in/bundle/taskgroup@4.2.1` | ||
@@ -45,0 +45,0 @@ ### [Ender](http://ender.jit.su/) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
416229
1337