You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latests versions of EmberJS are deprecating the use of EmberObject and Ember computed properties to use native ones instead. This could be a good improvement, also if we think in making it easier for users of other frameworks to start using EmberJS. An start could be changing the Ability class to use ES6 native classes.
I think this changes should be for a potential new major version (4.0.0 of ember-can) as it could remove some compatibilities with older versions of EmberJS. What do you think?
The text was updated successfully, but these errors were encountered:
I've migrated Ability to ES6 class but it still needs more work to be done. Right now, it still depends on EmberObject:
import EmberObject, { get } from '@ember/object';
import { camelize } from '@ember/string';
export default class Ability extends EmberObject {
model = null;
This may be because this line but I decided it's a problem worth to be solved later.
And it's also being tested using computed properties instead of the new tracked syntax.
The latests versions of EmberJS are deprecating the use of EmberObject and Ember computed properties to use native ones instead. This could be a good improvement, also if we think in making it easier for users of other frameworks to start using EmberJS. An start could be changing the Ability class to use ES6 native classes.
I think this changes should be for a potential new major version (4.0.0 of
ember-can
) as it could remove some compatibilities with older versions of EmberJS. What do you think?The text was updated successfully, but these errors were encountered: