Use case
Framework
Owner
Poulet42/Declare Ts Services
Example
@E18e/Es String Html Methods
Introduction
Ember/5/Object New Constructor
new EmberObject()is deprecated in Ember.js v3.9 in favor of constructing instances ofEmberObjectand its subclasses. This codemod replaces all calls tonew EmberObject()withEmberObject.create()and adds aconstructorfunction to classes that extend fromEmberObjectso that the classes no longer extend fromEmberObject.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Notify Property Change
This codemod removes all calls to
propertyWillChangeand replaces all calls topropertyDidChangewithnotifyPropertyChange.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Jquery Event
Using event object APIs that are specific to
jQuery.Event, such asoriginalEvent, is deprecated in Ember.js v3.3. This codemod removes all calls tooriginalEventin case of accessing properties that work with jQuery events as well as native events.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Jquery Apis
This codemod replaces all calls to
this.$()inside of anEmber.Componentwiththis.elementproperty, which provides a reference to a native DOM element.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Fpe On
Before
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Fpe Observes
Before
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Fpe Computed
Before
Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Es5 Getter Ember Codemod
This codemod transforms
get()togetProperties()to use traditional object dot notation. This standard was proposed by Ember.js team in https://github.com/emberjs/rfcs/blob/master/text/0281-es5-getters.md.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Ember Jquery Legacy
Using event object APIs that are specific to
jQuery.Event, such asoriginalEvent, is deprecated in Ember.js v3.3. This codemod ensures the access to the native event without triggering any deprecations via wrapping theeventwith thenormalizeEventfunction provided byember-jquery-legacy.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Deprecate Router Events
This codemod removes all calls to
willTransitionordidTransitionevents on the Router via usage ofrouteWillChangeevent listener androuteDidChangeevent listener.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Deprecate Merge
This codemod replaces all calls to
Ember.mergewithEmber.assign.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Cp Volatile
This codemod removes all calls to
volatile()and ensures that native getters are directly used.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Cp Property Map
.property()is a modifier that adds additional property dependencies to an existing computed property. Forfilter,map, andsortcomputed property macros, this codemod ensures they receive an array of additional dependent keys as a second parameter.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Cp Property
.property()is a modifier that adds additional property dependencies to an existing computed property. This codemod moves the dependencies to the main computed property definition.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Convert Module For To Setup Test
This codemod transforms from the older
moduleFor*syntax ofember-qunit@2to the newersetup*Testsyntax.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Array Wrapper
This codemod removes any usage of
newwithA, and callsAas a standard function.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community