-
-
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
[Fixes #15001] Remove internal EmptyObject usage #15002
Conversation
// when you're treating the object instances as arbitrary dictionaries | ||
// and don't want your keys colliding with build-in methods on the | ||
// default object prototype. | ||
// This exists because `Object.create(null)` WAS slow compared to `new |
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.
We should likely remove this file completely. I did an ember-observer code search (here) and there are no direct usages of our version any longer (though there are addons that have made their own copies of this code).
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.
i thought ember-data used it, but it ships its own: https://github.com/emberjs/data/search?utf8=%E2%9C%93&q=EmptyObject&type=Code
Which we should then also remove
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.
Yep, I had already created an issue over there for removing it too 😸
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.
7f5190a
to
48410cb
Compare
ember-data PR: emberjs/data#4854 |
☔ The latest upstream changes (presumably #15006) made this pull request unmergeable. Please resolve the merge conflicts. |
0098bb0
to
c06d82d
Compare
@homu r+ |
📌 Commit c06d82d has been approved by |
⚡ Test exempted - status |
If this ends up good, we should likely consider deprecating
Ember.EmptyObject
.cc @bmeurer