-
-
Notifications
You must be signed in to change notification settings - Fork 406
Description
- Proposed Target: Ember v4.0.0
- Alternative: Native Promises
RSVP has been Ember's polyfill for promises since v1.0.0, before native promises existed in any browser, much less all of the supported ones. Native promises are now well supported in every browser we support, and much plumbing has been done to make sure that Ember interoperates nicely with them.
Given RSVP is a fairly decent size chunk of code (~3.5kb min+brotli), and that other polyfill solutions such as core.js exist now which provide much more seamless polyfills, it makes sense to do a final push to remove it in our next major version.
Migration Path
For the most part, native promises have a 1-1 API with RSVP. There are a couple of exceptions, such as RSVP.hash, but these are very minimal. As part of this RFC, we could consider extracting them into a plain-JS promise helpers library, if one doesn't exist already.