-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dist] Update dependency async to v3 #1359
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate/async-3.x
branch
2 times, most recently
from
August 22, 2019 07:18
5667314
to
82b6bf4
Compare
renovate
bot
force-pushed
the
renovate/async-3.x
branch
from
August 22, 2019 07:22
82b6bf4
to
614c6b2
Compare
Codecov Report
@@ Coverage Diff @@
## master #1359 +/- ##
=======================================
Coverage 92.35% 92.35%
=======================================
Files 6 6
Lines 314 314
=======================================
Hits 290 290
Misses 24 24 Continue to review full report at Codecov.
|
This was referenced Sep 5, 2020
This was referenced Sep 8, 2020
This was referenced Sep 9, 2020
This was referenced Sep 9, 2020
This was referenced Mar 17, 2021
Merged
This was referenced Mar 19, 2021
Open
Open
This was referenced Sep 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.0.0
->^3.0.0
Release Notes
caolan/async
v3.1.0
Compare Source
q.pushAsync
andq.unshiftAsync
, analagous toq.push
andq.unshift
, except they always do not accept a callback, and reject if processing the task errors. (#1659)q.push
andq.unshift
when a callback is not passed now resolve even if an error ocurred. (#1659)autoInject
with complicated function bodies (#1663)v3.0.1
Compare Source
Bug fixes
queue
andcargo
would be completely flattened. (#1645)v3.0.0
Compare Source
The
async
/await
release!There are a lot of new features and subtle breaking changes in this major version, but the biggest feature is that most Async methods return a Promise if you omit the callback, meaning you can
await
them from within anasync
function.Breaking Changes
await
-able! (#1572)queue
,priorityQueue
,cargo
andcargoQueue
, the "event"-style methods, likeq.drain
andq.saturated
are now methods that register a callback, rather than properties you assign a callback to. They are now of the formq.drain(callback)
. If you do not pass a callback a Promise will be returned for the next occurrence of the event, making themawait
-able, e.g.await q.drain()
. (#1586, #1641)callback(false)
will cancel an async method, preventing further iteration and callback calls. This is useful for preventing memory leaks when you break out of an async flow by calling an outer callback. (#1064, #1542)during
anddoDuring
have been removed, and insteadwhilst
,doWhilst
,until
anddoUntil
now have asynchronoustest
functions. (#850, #1557)limits
of less than 1 now cause an error to be thrown in queues and collection methods. (#1249, #1552)memoize
no longer memoizes errors (#1465, #1466)applyEach
/applyEachSeries
have a simpler interface, to make them more easily type-able. It always returns a function that takes in a single callback argument. If that callback is omitted, a promise is returned, making it awaitable. (#1228, #1640)New Features
cargoQueue
, a queue with bothconcurrency
andpayload
size parameters. (#1567)queue
now have aSymbol.iterator
method, meaning they can be iterated over to inspect the current list of items in the queue. (#1459, #1556)async.mjs
is included in theasync
package. This is described in thepackage.json
"module"
field, meaning it should be automatically used by Webpack and other compatible bundlers.Bug fixes
asyncify
(#1568, #1569)Other
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.