Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-es

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-es - npm Package Compare versions

Comparing version 2.4.1 to 2.5.0

concatLimit.js

23

CHANGELOG.md

@@ -0,9 +1,18 @@

# v2.5.0
- Added `concatLimit`, the `Limit` equivalent of [`concat`](https://caolan.github.io/async/docs.html#concat) ([#1426](https://github.com/caolan/async/issues/1426), [#1430](https://github.com/caolan/async/pull/1430))
- `concat` improvements: it now preserves order, handles falsy values and the `iteratee` callback takes a variable number of arguments ([#1437](https://github.com/caolan/async/issues/1437), [#1436](https://github.com/caolan/async/pull/1436))
- Fixed an issue in `queue` where there was a size discrepancy between `workersList().length` and `running()` ([#1428](https://github.com/caolan/async/issues/1428), [#1429](https://github.com/caolan/async/pull/1429))
- Various doc fixes ([#1422](https://github.com/caolan/async/issues/1422), [#1424](https://github.com/caolan/async/pull/1424))
# v2.4.1
- Fixed a bug preventing functions wrapped with `timeout()` from being re-used. ([#1418](https://github.com/caolan/async/issues/1418), [#1419](https://github.com/caolan/async/issues/1419))
# v2.4.0
- Added `tryEach`, for running async functions in parallel, where you only expect one to succeed. (#1365, #687)
- Improved performance, most notably in `parallel` and `waterfall` (#1395)
- Added `queue.remove()`, for removing items in a `queue` (#1397, #1391)
- Fixed using `eval`, preventing Async from running in pages with Content Security Policy (#1404, #1403)
- Fixed errors thrown in an `asyncify`ed function's callback being caught by the underlying Promise (#1408)
- Fixed timing of `queue.empty()` (#1367)
- Various doc fixes (#1314, #1394, #1412)
- Added `tryEach`, for running async functions in parallel, where you only expect one to succeed. ([#1365](https://github.com/caolan/async/issues/1365), [#687](https://github.com/caolan/async/issues/687))
- Improved performance, most notably in `parallel` and `waterfall` ([#1395](https://github.com/caolan/async/issues/1395))
- Added `queue.remove()`, for removing items in a `queue` ([#1397](https://github.com/caolan/async/issues/1397), [#1391](https://github.com/caolan/async/issues/1391))
- Fixed using `eval`, preventing Async from running in pages with Content Security Policy ([#1404](https://github.com/caolan/async/issues/1404), [#1403](https://github.com/caolan/async/issues/1403))
- Fixed errors thrown in an `asyncify`ed function's callback being caught by the underlying Promise ([#1408](https://github.com/caolan/async/issues/1408))
- Fixed timing of `queue.empty()` ([#1367](https://github.com/caolan/async/issues/1367))
- Various doc fixes ([#1314](https://github.com/caolan/async/issues/1314), [#1394](https://github.com/caolan/async/issues/1394), [#1412](https://github.com/caolan/async/issues/1412))

@@ -10,0 +19,0 @@ # v2.3.0

@@ -1,3 +0,3 @@

import concat from './internal/concat';
import doParallel from './internal/doParallel';
import doLimit from './internal/doLimit';
import concatLimit from './concatLimit';

@@ -29,2 +29,2 @@ /**

*/
export default doParallel(concat);
export default doLimit(concatLimit, Infinity);

@@ -1,3 +0,3 @@

import concat from './internal/concat';
import doSeries from './internal/doSeries';
import doLimit from './internal/doLimit';
import concatLimit from './concatLimit';

@@ -22,2 +22,2 @@ /**

*/
export default doSeries(concat);
export default doLimit(concatLimit, 1);

@@ -75,2 +75,3 @@ /**

import concat from './concat';
import concatLimit from './concatLimit';
import concatSeries from './concatSeries';

@@ -154,2 +155,3 @@ import constant from './constant';

concat: concat,
concatLimit: concatLimit,
concatSeries: concatSeries,

@@ -251,2 +253,3 @@ constant: constant,

concat as concat,
concatLimit as concatLimit,
concatSeries as concatSeries,

@@ -253,0 +256,0 @@ constant as constant,

@@ -58,5 +58,6 @@ import indexOf from 'lodash-es/_baseIndexOf';

var task = tasks[i];
var index = indexOf(workersList, task, 0);
if (index >= 0) {
workersList.splice(index)
workersList.splice(index, 1);
}

@@ -122,2 +123,3 @@

tasks.push(node);
workersList.push(node);
data.push(node.data);

@@ -127,3 +129,2 @@ }

numRunning += 1;
workersList.push(tasks[0]);

@@ -130,0 +131,0 @@ if (q._tasks.length === 0) {

{
"name": "async-es",
"description": "Higher-order functions and common patterns for asynchronous code",
"version": "2.4.1",
"version": "2.5.0",
"main": "index.js",

@@ -6,0 +6,0 @@ "author": "Caolan McMahon",

@@ -54,3 +54,4 @@ import queue from './internal/queue';

* @property {Function} kill - a function that removes the `drain` callback and
* empties remaining tasks from the queue forcing it to go idle. Invoke with `queue.kill()`.
* empties remaining tasks from the queue forcing it to go idle. No more tasks
* should be pushed to the queue after calling this function. Invoke with `queue.kill()`.
*/

@@ -57,0 +58,0 @@

@@ -12,4 +12,4 @@ ![Async Logo](https://raw.githubusercontent.com/caolan/async/master/logo/async-logo_readme.jpg)

For Documentation, visit <http://caolan.github.io/async/>
For Documentation, visit <https://caolan.github.io/async/>
*For Async v1.5.x documentation, go [HERE](https://github.com/caolan/async/blob/v1.5.2/README.md)*
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc