Skip to content

Use standard Promise.allSettled instead polyfill#4905

Merged
juergba merged 1 commit into
masterfrom
use-builtin-allsettled
Aug 10, 2022
Merged

Use standard Promise.allSettled instead polyfill#4905
juergba merged 1 commit into
masterfrom
use-builtin-allsettled

Conversation

@outsideris
Copy link
Copy Markdown
Contributor

Description of the Change

We've introduced @ungap/promise-all-settled in #4476.
And Node.js support Promise.allSettled in Node 12.9.0.

So, we don't need polyfill anymore because we support Node 14+.

Why should this be in core?

We don't need polyfill anymore.

Benefits

dependency is reduced.

Possible Drawbacks

N/A

Signed-off-by: Outsider <outsideris@gmail.com>
@outsideris outsideris added the type: chore generally involving deps, tooling, configuration, etc. label Jul 31, 2022
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.002%) to 94.326% when pulling c557d79 on use-builtin-allsettled into 84b2f84 on master.

@juergba
Copy link
Copy Markdown
Contributor

juergba commented Aug 9, 2022

@outsideris I guess this PR makes sense.
One of your links points to a korean page. I couldn't find any docs about Node supporting Promise.allSettled(). Can you help, please?

@outsideris
Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor

@juergba juergba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@outsideris thank you for your explanations and this PR.

@juergba juergba merged commit 77c18d2 into master Aug 10, 2022
@juergba juergba added this to the next milestone Aug 10, 2022
@juergba juergba added the type: cleanup a refactor label Aug 10, 2022
@mark-wiemer mark-wiemer deleted the use-builtin-allsettled branch August 9, 2025 16:41
lennonnikolas pushed a commit to lennonnikolas/mocha that referenced this pull request Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: chore generally involving deps, tooling, configuration, etc. type: cleanup a refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants