-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Conversation
Looking good! I think we will also need to export this on the global (in |
8e15f56
to
a784a95
Compare
export default class OrderedSet extends __OrderedSet__ { | ||
constructor() { | ||
super(); | ||
deprecate('Use of @ember/OrderedSet is deprecated. Please use native `Map` instead', false, { |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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.
a784a95
to
e5488e2
Compare
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.