Skip to content

Intent to RFC: Deprecate RSVP #539

@pzuraq

Description

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions