Use case
Framework
Owner
@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 ofEmberObject
and its subclasses. This codemod replaces all calls tonew EmberObject()
withEmberObject.create()
and adds aconstructor
function to classes that extend fromEmberObject
so 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
propertyWillChange
and replaces all calls topropertyDidChange
withnotifyPropertyChange
.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 tooriginalEvent
in 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.Component
withthis.element
property, 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 theevent
with thenormalizeEvent
function 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
willTransition
ordidTransition
events on the Router via usage ofrouteWillChange
event listener androuteDidChange
event 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.merge
withEmber.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
, andsort
computed 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@2
to the newersetup*Test
syntax.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/Array Wrapper
This codemod removes any usage of
new
withA
, and callsA
as a standard function.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Ember/5/App Controller Router Props
This codemod replaces all occurrences of
this.currentRouteName
withthis.router.currentRouteName
andthis.currentPath
withthis.router.currentPath
.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community