-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Replace Ember.Map/OrderedSet with native Map/Set classes #5254
Comments
I submitted #5255 to migrate away from |
@rwjblue as mentioned in emberjs/ember-ordered-set#14 it seems that the differences between |
@Turbo87 https://github.com/emberjs/data/blob/master/addon/-private/system/ordered-set.js#L19 The order is not always insertion order. When inserting into a |
@hjdivad okay, so we are actually talking about |
this is somewhat important though because in that case the code for |
@Turbo87 - Confirm, but I was just going to use the addon simply because it was already done and tested (thanks!). It also keeps the specific things needed here much simpler to reason about (e.g. the logic to avoid duplicating if |
ember-data
is currently usingEmber.Map
andEmber.OrderedSet
, which are close approximations of the nativeMap
andSet
classes introduced in ES2015. It seems thatember-data
is the only major user of these classes and Ember is not even using them itself anymore and would like to get rid of them.Since 3.0 is around the corner it might make sense to reevaluate the usefulness of these polyfills as IE11 already has somewhat usable native
Map
andSet
support (see http://kangax.github.io/compat-table/es6/#test-Map).As some public methods of
ember-data
return instances ofMap
andMapWithDefault
this would probably have to be considered a breaking change 🤔The text was updated successfully, but these errors were encountered: