This repository was archived by the owner on Dec 27, 2023. It is now read-only.
Update async in packages/oc-template-react-compiler/package.json from 2.6.3 to 3.1.1 #635
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.
Overview
The following dependencies have been updated by dependencies.io:
asyncinpackages/oc-template-react-compiler/package.jsonfrom "2.6.3" to "3.1.1"Details
asyncThis dependency is located in
packages/oc-template-react-compiler/package.jsonand was updated from "2.6.3" to "3.1.1".3.0.0
The
async/awaitrelease!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
awaitthem from within anasyncfunction.Breaking Changes
await-able! (#1572)queue,priorityQueue,cargoandcargoQueue, the "event"-style methods, likeq.drainandq.saturatedare 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)duringanddoDuringhave been removed, and insteadwhilst,doWhilst,untilanddoUntilnow have asynchronoustestfunctions. (#850, #1557)limitsof less than 1 now cause an error to be thrown in queues and collection methods. (#1249, #1552)memoizeno longer memoizes errors (#1465, #1466)applyEach/applyEachSerieshave 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 bothconcurrencyandpayloadsize parameters. (#1567)queuenow have aSymbol.iteratormethod, meaning they can be iterated over to inspect the current list of items in the queue. (#1459, #1556)async.mjsis included in theasyncpackage. 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
3.0.1
Bug fixes
queueandcargowould be completely flattened. (#1645)3.1.0
q.pushAsyncandq.unshiftAsync, analagous toq.pushandq.unshift, except they always do not accept a callback, and reject if processing the task errors. (#1659)q.pushandq.unshiftwhen a callback is not passed now resolve even if an error ocurred. (#1659)autoInjectwith complicated function bodies (#1663)We didn't find any content for 3.1.1. Feel free to open an issue at https://github.com/dependencies-io/support to suggest any improvements.