CCodemod

ember/5/object-new-constructor

No description available

migration
Public
0 executions

Run locally

npx codemod ember/5/object-new-constructor

new EmberObject() is deprecated in Ember.js v3.9 in favor of constructing instances of EmberObject and its subclasses. This codemod replaces all calls to new EmberObject() with EmberObject.create() and adds a constructor function to classes that extend from EmberObject so that the classes no longer extend from EmberObject.

Before

jsx

After

tsx

Ready to contribute?

Build your own codemod and share it with the community.