A collection of codemods that can be run to quickly refactor Ember code.
Replace TRANSFORM
with one of the transforms listed below.
TRANSFORM="revert-computed-macro"; \
npx @ciena-org/ember-codemods $TRANSFORM path/of/files/ or/some**/*glob.js
Introduced in | Deprecation | Transform |
---|---|---|
3.21 | ember-metal.get-with-default | |
3.24 | ember-string.prototype-extensions | |
3.25 | ember-string.htmlsafe-ishtmlsafe | |
3.26 | ember-glimmer.link-to-positional-arguments | |
3.26 | ember-glimmer.with-syntax | |
3.26 | has-block-and-has-block-params | |
3.27 | argument-less-helper-paren-less-invocation | |
3.27 | deprecated-run-loop-and-computed-dot-access | |
3.27 | ember.built-in-components.import | |
3.27 | ember-global | |
4.0 | ember-polyfills.deprecate-assign | |
4.1 | deprecate-auto-location | |
4.10 | deprecate-ember-error | |
4.10 | ember-string.from-ember-module |
Transform | Description | Possible issues |
---|---|---|
revert-computed-macro | Replace computed from ember-macro-helpers with @ember/object instead. |
|
If you are interested in helping contribute to this project, please take a look at our Contributing Guide.