Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[dist] Update dependency async to v3#1359

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
indexzero merged 1 commit intomasterfromrenovate/async-3.x
Aug 22, 2019
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovaterenovatebot commentedAug 22, 2019
edited
Loading

This PR contains the following updates:

PackageTypeUpdateChange
async (source)devDependenciesmajor^2.0.0 ->^3.0.0

Release Notes

caolan/async

v3.1.0

Compare Source

  • Addedq.pushAsync andq.unshiftAsync, analagous toq.push andq.unshift, except they always do not accept a callback, and reject if processing the task errors. (#​1659)
  • Promises returned fromq.push andq.unshift when a callback is not passed now resolve even if an error ocurred. (#​1659)
  • Fixed a parsing bug inautoInject with complicated function bodies (#​1663)
  • Added ES6+ configuration for Browserify bundlers (#​1653)
  • Various doc fixes (#​1664,#​1658,#​1665,#​1652)

v3.0.1

Compare Source

Bug fixes

  • Fixed a regression where arrays passed toqueue andcargo would be completely flattened. (#​1645)
  • Clarified Async's browser support (#​1643)

v3.0.0

Compare Source

Theasync/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 canawait them from within anasync function.

constresults=awaitasync.mapLimit(urls,5,asyncurl=>{constresp=awaitfetch(url)returnresp.body})

Breaking Changes

  • Most Async methods return a Promise when the final callback is omitted, making themawait-able! (#​1572)
  • We are now making heavy use of ES2015 features, this means we have dropped out-of-the-box support for Node 4 and earlier, and many old versions of browsers. (#​1541,#​1553)
  • Inqueue,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)
  • Callingcallback(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

  • Async generators are now supported in all the Collection methods. (#​1560)
  • AddedcargoQueue, a queue with bothconcurrency andpayload size parameters. (#​1567)
  • Queue objects returned fromqueue now have aSymbol.iterator method, meaning they can be iterated over to inspect the current list of items in the queue. (#​1459,#​1556)
  • A ESM-flavoredasync.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

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated byRenovate Bot. View repository job loghere.

@renovaterenovatebotforce-pushed therenovate/async-3.x branch 2 times, most recently from5667314 to82b6bf4CompareAugust 22, 2019 07:18
@codecov-io
Copy link

Codecov Report

Merging#1359 intomaster willnot change coverage.
The diff coverage isn/a.

Impacted file tree graph

@@           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.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update749eec6...614c6b2. Read thecomment docs.

@indexzeroindexzero merged commit77a9815 intomasterAug 22, 2019
@renovaterenovatebot deleted the renovate/async-3.x branchAugust 22, 2019 07:38
This was referencedSep 5, 2020
This was referencedMar 17, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@codecov-io@indexzero@renovate-bot

[8]ページ先頭

©2009-2025 Movatter.jp