Skip to content

Conversation

@wagenet
Copy link
Member

@wagenet wagenet commented Jun 13, 2025

Propose Deprecating Ember Array

Rendered

Summary

This pull request is proposing a new RFC to Deprecate Ember Array.

To succeed, it will need to pass into the Exploring Stage, followed by the Accepted Stage.

A Proposed or Exploring RFC may also move to the Closed Stage if it is withdrawn by the author or if it is rejected by the Ember team. This requires an "FCP to Close" period.

An FCP is required before merging this PR to advance to Accepted.

Upon merging this PR, automation will open a draft PR for this RFC to move to the Ready for Released Stage.

Exploring Stage Description

This stage is entered when the Ember team believes the concept described in the RFC should be pursued, but the RFC may still need some more work, discussion, answers to open questions, and/or a champion before it can move to the next stage.

An RFC is moved into Exploring with consensus of the relevant teams. The relevant team expects to spend time helping to refine the proposal. The RFC remains a PR and will have an Exploring label applied.

An Exploring RFC that is successfully completed can move to Accepted with an FCP is required as in the existing process. It may also be moved to Closed with an FCP.

Accepted Stage Description

To move into the "accepted stage" the RFC must have complete prose and have successfully passed through an "FCP to Accept" period in which the community has weighed in and consensus has been achieved on the direction. The relevant teams believe that the proposal is well-specified and ready for implementation. The RFC has a champion within one of the relevant teams.

If there are unanswered questions, we have outlined them and expect that they will be answered before Ready for Release.

When the RFC is accepted, the PR will be merged, and automation will open a new PR to move the RFC to the Ready for Release stage. That PR should be used to track implementation progress and gain consensus to move to the next stage.

Checklist to move to Exploring

  • The team believes the concepts described in the RFC should be pursued.
  • The label S-Proposed is removed from the PR and the label S-Exploring is added.
  • The Ember team is willing to work on the proposal to get it to Accepted

Checklist to move to Accepted

  • This PR has had the Final Comment Period label has been added to start the FCP
  • The RFC is announced in #news-and-announcements in the Ember Discord.
  • The RFC has complete prose, is well-specified and ready for implementation.
    • All sections of the RFC are filled out.
    • Any unanswered questions are outlined and expected to be answered before Ready for Release.
    • "How we teach this?" is sufficiently filled out.
  • The RFC has a champion within one of the relevant teams.
  • The RFC has consensus after the FCP period.

@wagenet wagenet force-pushed the deprecate-ember-array branch from 06b02a2 to f582259 Compare June 20, 2025 12:57
@kategengler kategengler added the S-Exploring In the Exploring RFC Stage label Jun 20, 2025
@kategengler
Copy link
Member

This needs the deprecation guide written.

@ef4
Copy link
Contributor

ef4 commented Aug 15, 2025

Let's make sure this document lists the importable paths we're deprecating as well (it currently uses the old global names like Ember.Array as opposed to import statements).

@ef4
Copy link
Contributor

ef4 commented Aug 15, 2025

The content for the deprecation guide looks good, the exact details of which deprecations IDs get used can vary when we go to implement them.


## Summary

Deprecate `Ember.Array`, `Ember.MutableArray`, `Ember.ArrayProxy`, `Ember.NativeArray`, `Ember.A`,
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be good to list the imports

@Eredrim
Copy link

Eredrim commented Aug 22, 2025

In my opinion it's a pity EmberArray and MutableArray are deprecated (to be removed afterward). They contain many helpers that make possible to save a lot of time comparing to vanilla JS arrays. Maybe you should deprecate them and remove them from ember-core, but in the same time create an add-on (for instance "Ember Array Wrappers") to offer an optional usage of these useful wrappers, even if it means reimplement them using vanilla arrays and tracked-built-in.
I would add this option would make migration to next Ember versions easier.

@NullVoxPopuli
Copy link
Contributor

@Eredrim some options for ya:

@Eredrim
Copy link

Eredrim commented Aug 22, 2025

Hi!
Thanks for your quick answer. I didn't have any doubts about trackedArray would become the new standard (and that's great!). My question was about all the utility commands (like findBy(), rejectBy(), uniqueBy(), etc) that are really useful as of today's date. Following your advice, I searched for similar plugins in npmjs.com, and the most similar stuff I found was Collect.js, that is super complete but really different.
I think the best option for my need is to use your "legacy-prototype-extensions" plugin. I hope you will be able to migrate the code from ember to it. It would be the best solution for me.

@kategengler
Copy link
Member

@Eredrim and others looking for the array convenience methods: There's an in-depth deprecation guide from when we deprecated the array prototype extensions that shows how to replace the behavior https://deprecations.emberjs.com/id/deprecate-array-prototype-extensions

@ef4 ef4 enabled auto-merge August 29, 2025 18:11
@ef4 ef4 merged commit 8d62c9c into emberjs:main Aug 29, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Final Comment Period S-Exploring In the Exploring RFC Stage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants