Home

Awesome

ember-3x-codemods

Build Status Coverage Status npm version dependencies Status devDependencies Status

A jscodeshift Codemod with a collection of transforms to address the list of deprecations introduced to Ember during the 3.x cycle

To run a specific codemod from this project, you would run the following:

npx ember-3x-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

# or

yarn global add ember-3x-codemods
ember-3x-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

Transforms

Deprecations & Transforms

Introduced inidTransform
3.1use-notifypropertychange...notify-property-change
3.3jquery-eventjquery-event
3.3jquery-eventember-jquery-legacy
3.6ember-polyfills.deprecate-merge deprecate-merge
3.6deprecate-router-events deprecate-router-events
3.6array.new-array-wrapper new-array-wrapper
3.6array.new-array-wrapper array-wrapper
3.6object.new-constructor object-new-constructor
3.9computed-property.property cp-property
3.9computed-property.volatile cp-volatile
3.9computed-property.property cp-property-map
3.9jquery-apis jquery-apis
3.10application-controller.router-properties app-controller-router-props
3.11function-prototype-extensions.observes fpe-observes
3.11function-prototype-extensions.on fpe-on
3.11function-prototype-extensions.property fpe-computed

For more details, please visit the main Ember 3.x deprecations page

Contributing

Installation

Running tests

Update Documentation