-
-
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
Deprecate Ember.Map / Ember.MapWithDefault / Ember.OrderedSet #16678
Comments
@rwjblue I'm currently trying to implement https://github.com/emberjs/ember.js/blob/master/packages/%40ember/map/with-default.js in my app, but I encounter this error during tests in CI:
My implementation is simply this one:
Is there something wrong with the compiler ? (I'm on "ember-cli-babel": "^7.1.3") |
The basic issue is with transpilation. Its difficult to subclass native Map / Set / Error / Array objects and also transpile away the I actually had handle this problem in ember-data when this issue was originally being worked on, my strategy there may be helpful to you. |
Thanks a lot Robert for those explanations. So my missing piece was to implement the Map proxy. Do you know if the transpilation will resolve this is the future ? |
I kinda doubt it for IE11, and all of the evergreen browsers can already handle it... |
As agreed on in emberjs/rfcs#237, we need to deprecate creating the following objects:
@ember/map
- Deprecation message should suggest to replace usage with nativeMap
usage.@ember/map/with-default
- Deprecation should suggest to replace usage with nativeMap
usage.@ember/ordered-set
- Deprecation should mention adding@ember/ordered-set
addon.The deprecations should be
until: '3.5.0'
.The text was updated successfully, but these errors were encountered: