Ready for Release | Ember.js RFCs

Ready for Release

The Ready for Release stage is a phase where the implementation is complete and we're preparing it for an official release. See the list of RFCs ready for release below.

#1116

Deprecate Mixin Support

Deprecating Mixin Support Summary Deprecate all Mixin support. Motivation For a while now, Ember has not recommended the use of Mixins. We should actually fully deprecate this. Transition Path All existing public Ember mixins will be deprecated: Ember.Mixin (from @ember/object/mixin) Ember.PromiseProxyMixin (from @ember/object/promise-proxy-mixin) Ember.Comparable (from @ember/object/comparable) Ember.Enumerable (from @ember/object/enumerable) Ember.Observable (from @ember/object/observable) For users that still want mixin-like functionality, we should recommend class decorators. If this feels less ergonimic that we would desire, we can consider providing an addon that adds some

#1114

Deprecate Ember Array

Deprecating Ember Array Summary Deprecate Ember.Array, Ember.MutableArray, Ember.ArrayProxy, Ember.NativeArray, Ember.A, Ember.Enumerable and Array computed macros. Motivation Now that Ember has a proper tracking system and the availability of tracked-built-ins we no longer need our own custom arrays. In addition, much of the internal implementation relies upon Mixins which we also hope to deprecate in the future. Transition Path All uses of custom Arrays should be replaced with native Arrays and tracked-built-ins. Additionally, computed macros should be updated to use tracked getters. Given how estabished these patterns are, we probably want

#1112

Deprecate Ember Proxies

Deprecating Ember Proxies Summary Now that Native Proxy is available in all supported environments, we can deprecate Ember's custom Proxy handling provided by ArrayProxy, ObjectProxy, and PromiseProxyMixin. Motivation These patterns were introduce to Ember prior to the availability of Native Proxy. Since Native Proxy is now available in all supported environments, we can deprecate these patterns in favor of the native Proxy API. Additionally, we would like to deprecate Mixins in the future necessitating that we first deprecate PromiseProxyMixin. Transition Path There is no direct migration path for these. Code that relies upon this behavior will have to be

#1111

Deprecate Events System

Deprecating Ember.Evented and @ember/object/events Summary Deprecate the Ember.Evented mixin, the underlying @ember/object/events module (addListener, removeListener, sendEvent), and the on() function from @ember/object/evented. Motivation For a while now, Ember has not recommended the use of Mixins. In order to fully deprecate Mixins, we need to deprecate all existing Mixins of which Evented is one. Further, the low-level event system in @ember/object/events predates modern JavaScript features (classes, modules, native event targets, async / await) and encourages an ad-hoc, implicit communication style that is difficult to statically analyze and can obscure data

#1041

Deprecate target action support.

Deprecate TargetActionSupport Summary Deprecate send and the corresponding TargetActionSupport. Motivation These are legacy patterns that are no longer recommended in modern Ember code. The primary way to interact with this system was the now-deprecated {{action}} modifier/helper. The modern approach is to use standard class methods (optionally decorated with @action) and to pass functions directly, following the Data Down, Actions Up (DDAU) pattern. See also: Target Action Support deprecation guide Detailed design This RFC proposes to deprecate and remove the following: TargetActionSupport mixin, specifically the triggerAction method ActionHandler mixin, specifically the send method ActionSupport mixin, specifically the send method

#334

Deprecate Ember Utils

Deprecate Ember Utils & dependent Computed Properties Summary This RFC proposes the deprecation of the following methods: compare isBlank isEmpty isEqual isNone isPresent typeOf As well as computed properties that rely on these methods: notEmpty empty none Once deprecated, these methods will move to an external addon to allow users to still take advantage of the succinctness these utility methods provide. Motivation To further Ember's goal of a svelte core and moving functionality to separate packages, this RFC attempts to deprecate a few utility methods and extract them to their own addon. A part from the aforementioned goal, in

  • Avatar for snewcomer snewcomer