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

[BUGFIX beta] avoid ordered set deprecation #16709

Merged
merged 1 commit into from
Jun 1, 2018

Conversation

savvymas
Copy link

@savvymas savvymas commented Jun 1, 2018

This is part of a fix for this bug: emberjs/ember-ordered-set#19 by creating a private path that excludes the deprecation in the OrderedSet class.

@rwjblue
Copy link
Member

rwjblue commented Jun 1, 2018

Looking good! I think we will also need to export this on the global (in packages/ember/index.js) so that the addon can use Ember.__OrderedSet__ if present...

@savvymas savvymas force-pushed the avoid-orderedset-deprecation branch from 8e15f56 to a784a95 Compare June 1, 2018 20:39
export default class OrderedSet extends __OrderedSet__ {
constructor() {
super();
deprecate('Use of @ember/OrderedSet is deprecated. Please use native `Map` instead', false, {
Copy link
Contributor

@bekzod bekzod Jun 1, 2018

Choose a reason for hiding this comment

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

maybe it should say, Please use native Map or ember-ordered-set addon instead ?

Copy link
Contributor

Choose a reason for hiding this comment

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

or "Please use native Map or https://github.com/emberjs/ember-ordered-set addon instead"

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a good idea and can be a followup PR

id: 'ember-map-deprecation',
until: '3.5.0',
});
this.clear();
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug here -- this needs to stay in the base implementation.

@savvymas savvymas force-pushed the avoid-orderedset-deprecation branch from a784a95 to e5488e2 Compare June 1, 2018 20:58
@ef4 ef4 merged commit 6f1b060 into emberjs:master Jun 1, 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