question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing polyfill for Promise.allSettled

See original GitHub issue

Now that Promise.allSettled reached stage 4 of the specification process, would it make sense to add a polyfill for it to this project?

Or would you rather recommend to add a separate shim for it, something like es-shims/Promise.allSettled ? IMO that’s less convenient, but creating yet another implementation also sounds wrong.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
triskwelinecommented, Aug 23, 2021

As a long-time user of this package, it never occured to me that it its features could be scoped to ES2015. I guess it’s because we’ve been using “ES6” as an inaccurate alias for “the time when we got new JavaScript features” for so long.

In any case, other packages I use have started to use allSettled, and they rarely make the destinction between ES levels. They just assume window.Promise is supported with the current promise features. If this package would remain scoped to ES2015, I could no longer use it as an effective IE11 polyfill.

0reactions
WormGirlcommented, Sep 8, 2021

I implemented this method https://github.com/WormGirl/core-promise

Read more comments on GitHub >

github_iconTop Results From Across the Web

Promise.allSettled in babel ES6 implementation - Stack Overflow
Currently I'm using q.allSettled as a workaround: import { allSettled } from 'q';. Is there something like that in babel polyfill? Alternatively, which ......
Read more >
Polyfill for Promise.allSettled - Medium
allSettled () method returns a promise that resolves after all of the given promises have either resolved or rejected, with an array of...
Read more >
An in depth explanation of Promise.all and comparison with ...
We will find out what exactly they do, what are the differences between them and even how we could create our own polyfill...
Read more >
Promise API - The Modern JavaScript Tutorial
allSettled just waits for all promises to settle, regardless of the ... allSettled , it's easy to polyfill: ... If not, what am...
Read more >
promise-all-settled-polyfill - npm package | Snyk
Learn more about promise-all-settled-polyfill: package health score, popularity, ... Looks like promise-all-settled-polyfill is missing a security policy.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found