summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md7
-rw-r--r--bower.json2
-rw-r--r--component.json2
-rw-r--r--package.json2
-rwxr-xr-xtest/test-async.js13
5 files changed, 23 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57d4d89..a5e7ccc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,13 @@ Bug Fixes:
- Fixed a regression in `each` and family with empty arrays that have additional properties. (#775, #777)
+
+# v1.1.1
+
+Bug Fix
+- Small regression with synchronous iterator behavior in `eachSeries` with a 1-element array. Before 1.1.0, `eachSeries`'s callback was called on the same tick, which this patch restores. In 2.0.0, it will be called on the next tick. (#782)
+
+
# v1.1.0
New Features:
diff --git a/bower.json b/bower.json
index 474e3b2..580ad84 100644
--- a/bower.json
+++ b/bower.json
@@ -40,4 +40,4 @@
"authors": [
"Caolan McMahon"
]
-} \ No newline at end of file
+}
diff --git a/component.json b/component.json
index d9e6ac2..3758f7f 100644
--- a/component.json
+++ b/component.json
@@ -14,4 +14,4 @@
"scripts": [
"lib/async.js"
]
-} \ No newline at end of file
+}
diff --git a/package.json b/package.json
index d739e2d..b1cecc7 100644
--- a/package.json
+++ b/package.json
@@ -59,4 +59,4 @@
"tests"
]
}
-} \ No newline at end of file
+}
diff --git a/test/test-async.js b/test/test-async.js
index fc3972c..b388b9c 100755
--- a/test/test-async.js
+++ b/test/test-async.js
@@ -1515,6 +1515,19 @@ exports['eachSeries single item'] = function (test) {
test.done();
};
+// bug #782. Remove in next major release
+exports['eachSeries single item'] = function (test) {
+ test.expect(1);
+ var sync = true;
+ async.eachSeries([1], function (i, cb) {
+ cb(null);
+ }, function () {
+ test.ok(sync, "callback not called on same tick");
+ });
+ sync = false;
+ test.done();
+};
+
exports['eachSeries error'] = function(test){
test.expect(2);
var call_order = [];