Skip to content

Commit bc3ca23

Browse files
authored
Merge pull request caolan#1239 from caolan/kill-iterator
Remove async.iterator
2 parents d31dc8e + 3bf0243 commit bc3ca23

4 files changed

Lines changed: 1 addition & 112 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Another big performance win has been re-implementing `queue`, `cargo`, and `prio
5858
- The test function for `whilst`, `until`, and `during` used to be passed non-error args from the iteratee function's callback, but this led to weirdness where the first call of the test function would be passed no args. We have made it so the test function is never passed extra arguments, and only the `doWhilst`, `doUntil`, and `doDuring` functions pass iteratee callback arguments to the test function (#1217, #1224)
5959
- The `q.tasks` array has been renamed `q._tasks` and is now implemented as a doubly linked list (DLL). Any code that used to interact with this array will need to be updated to either use the provided helpers or support DLLs (#1205).
6060
- The timing of the `q.saturated()` callback in a `queue` has been modified to better reflect when tasks pushed to the queue will start queueing. (#724, #1078)
61+
- Removed `iterator` method in favour of [ES2015 iterator protocol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators ) which natively supports arrays (#1237)
6162
- Dropped support for Component, Jam, SPM, and Volo (#1175, ##176)
6263

6364
## Bug Fixes

lib/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ import filter from './filter';
5454
import filterLimit from './filterLimit';
5555
import filterSeries from './filterSeries';
5656
import forever from './forever';
57-
import iterator from './iterator';
5857
import log from './log';
5958
import map from './map';
6059
import mapLimit from './mapLimit';
@@ -129,7 +128,6 @@ export default {
129128
filterLimit: filterLimit,
130129
filterSeries: filterSeries,
131130
forever: forever,
132-
iterator: iterator,
133131
log: log,
134132
map: map,
135133
mapLimit: mapLimit,
@@ -222,7 +220,6 @@ export {
222220
filterLimit as filterLimit,
223221
filterSeries as filterSeries,
224222
forever as forever,
225-
iterator as iterator,
226223
log as log,
227224
map as map,
228225
mapLimit as mapLimit,

lib/iterator.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

mocha_test/iterator.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)