Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEPRECATION] Remove ember-metal/map #15119

Closed
wants to merge 1 commit into from

Conversation

Serabe
Copy link
Member

@Serabe Serabe commented Apr 7, 2017

ember-metal/map contains three private classes OrderedSet, Map,
MapWithDefault. They were not used anywhere in the codebase except for tests
or reexports, so they are being deprecated.

Ember Data team has been removing their usages.

Added emberjs/website#2884.

Fixes #15041
Fixes #13815

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Seems like there is still some usage of this in the wild...

Seems like we should confirm that these usages can be migrated to something else (the ember-data usage seems to be the highest priority), then add a deprecation for using these with an until: 2.16...

@Serabe
Copy link
Member Author

Serabe commented Apr 7, 2017

I'll change this to deprecations this weekend :)

Serabe added a commit to Serabe/website that referenced this pull request Apr 10, 2017
Add deprecation for ember-metal.map, being deprecated in emberjs/ember.js#15119
@Serabe Serabe force-pushed the fix/fire-ordered-set branch from 193dc92 to 1bb2dea Compare April 10, 2017 00:24
@Serabe
Copy link
Member Author

Serabe commented Apr 10, 2017

Updated PR. Not sure I approached the deprecation the best way and I for sure have no idea on which the exact URL would be.

Feedback more than welcomed!

@Serabe Serabe changed the title [CLEANUP] Remove ember-metal/map [DEPRECATION] Remove ember-metal/map Apr 11, 2017
@homu
Copy link
Contributor

homu commented Apr 13, 2017

☔ The latest upstream changes (presumably #15134) made this pull request unmergeable. Please resolve the merge conflicts.

@stefanpenner
Copy link
Member

Ember Data team has been removing their usages.

This isn't true, although some scenarios in ED incorrectly used a set, many legitimately require it.

so they are being deprecated.

I'm alright with deprecating, but there needs to be a transition plan in place before that. As ember-data does require an efficient OrderedSet. Maybe via add-on, or as part of ember-data itself.

This PR deprecates three private classes: Map, MapWithDefault and OrderedSet.
These classes are private and not being used anyplace in this repo's code.
Though they are being used in Ember Data, the team is working on removing their
usages.
@Serabe Serabe force-pushed the fix/fire-ordered-set branch from 1bb2dea to 99f0973 Compare April 16, 2017 16:27
@Serabe
Copy link
Member Author

Serabe commented Apr 16, 2017

Rebased.

@stefanpenner we talked about this in #dev-ember and seemed so. In any case, seems more natural to provide an OrderedSet from an add-on or via EmberData itself, given it is not being used in any place in this repo. Happy to move the code and tests to a new repo as part of this PR.

locks pushed a commit to emberjs/website that referenced this pull request May 28, 2017
Add deprecation for ember-metal.map, being deprecated in emberjs/ember.js#15119
@rwjblue
Copy link
Member

rwjblue commented Nov 5, 2017

I laid out the general path forward in #13815 (comment). Basically, extraction, update ember-data, then land this deprecation.

@Serabe
Copy link
Member Author

Serabe commented Jan 6, 2018

Closing this.

@Serabe Serabe closed this Jan 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants