Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] ember-3x-codemods for version 3.1 #22

Merged
merged 6 commits into from
Sep 28, 2019

Conversation

rajasegar
Copy link
Contributor

@rajasegar rajasegar commented Sep 22, 2019

#21
Use notifyPropertyChange instead of propertyWillChange and propertyDidChange
Deprecations Added in 3.1

Input

Ember.propertyWillChange(object, 'someProperty');
doStuff(object);
Ember.propertyDidChange(object, 'someProperty');

object.propertyWillChange('someProperty');
doStuff(object);
object.propertyDidChange('someProperty');

Output

doStuff(object);
Ember.notifyPropertyChange(object, 'someProperty');

doStuff(object);
object.notifyPropertyChange('someProperty');

manifest.json Outdated Show resolved Hide resolved
Renaming the block to specific codemod name
instead of generic ember-3x-codemods so that
we won't have any name clashes in the future.
manifest.json Outdated Show resolved Hide resolved
manifest.json Outdated Show resolved Hide resolved
@kellyselden kellyselden merged commit 911b8c5 into ember-cli:v3 Sep 28, 2019
@kellyselden
Copy link
Member

All good to go. Thanks again!

@rajasegar
Copy link
Contributor Author

Thanks @kellyselden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants