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
This issue is for tracking the progress on Native Classes in Ember! The task list below is actively used by the strike team to keep track of all of the major tasks left before we can officially ship. Feel free to ask questions or help out!
This ultimately decides what the behavior of native classes, and the way we write them, looks like until EmberObject is deprecated and removed from the framework. We need to get a final decision on this RFC before we can move forward.
Currently we're going to polyfill back to 3.4 (the last LTS). Polyfills for earlier versions are definitely welcome and we will be working on them as we have time, but help would be appreciated!
Clobberability is an anti-pattern, and volatile is generally not needed. This is not something that is 100% necessary to move forward, but it resolves differences between native getters/setters and computeds so ideally we can address it quickly.
We can move forward with the codemod with decorators being an addon, but we should fold them into Ember as soon as we can. Stage 2 is potentially viable, but ideally we would wait until stage 3.
I think this may need to be a class decorator, given the prototype placement of an object. Only one instance of said object will ever be created though, so maybe not an issue.
Background
This issue is for tracking the progress on Native Classes in Ember! The task list below is actively used by the strike team to keep track of all of the major tasks left before we can officially ship. Feel free to ask questions or help out!
Original RFC here.
Tasks
Decide Native Class Constructor Update RFC #337This ultimately decides what the behavior of native classes, and the way we write them, looks like until EmberObject is deprecated and removed from the framework. We need to get a final decision on this RFC before we can move forward.feature [core-object] Delay init until after construction #16795Bugfixes
We have some open issues that could cause compatibility issues when converting to native classes. We need to get these merged.
ES6 classes on/removeListener and observes/removeObserver interop v2 [BUGFIX beta] ES6 classes on/removeListener and observes/removeObserver interop v2 #16923[BUGFIX] Adds default implementations of Component lifecycle hooks [BUGFIX] Adds default implementations of Component lifecycle hooks #17169Polyfills
Currently we're going to polyfill back to 3.4 (the last LTS). Polyfills for earlier versions are definitely welcome and we will be working on them as we have time, but help would be appreciated!
Write ReadOnly/Volatile Deprecation RFCClobberability is an anti-pattern, and volatile is generally not needed. This is not something that is 100% necessary to move forward, but it resolves differences between native getters/setters and computeds so ideally we can address it quickly.readOnly RFC
volatile RFC
Write Decorators RFC (once decorators reach stage 3)
We can move forward with the codemod with decorators being an addon, but we should fold them into Ember as soon as we can. Stage 2 is potentially viable, but ideally we would wait until stage 3.
Address open issues on ember-decoratorsAdd @computed.readOnly and @computed.volatileWe need a way to access these APIs for the codemod.ES6 blueprints not being usedGeneral bug, this is important for shipping though since users will want to use these generators, and they can probably be ported into Ember.route queryParams supportI think this may need to be a class decorator, given the prototype placement of an object. Only one instance of said object will ever be created though, so maybe not an issue.Filter array based on another property?Need a way to accessThis was ultimately unneeded.property()
and add properties to computeds, for the codemod.Update decoratorsUpdate to Babel 7Update decorators to use stage 2 transformsUpon further discussion it seems like we'll be stuck on stage 1 transforms until Typescript updates, which will likely be stage 3
Finish up codemod
Update guides - Blocked on Decorators RFC
The text was updated successfully, but these errors were encountered: