All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
0.9.2 (2019-09-26)
- Fixes property forward flags to remove-ember-k command. #106.
- Add
remove-ember-k
which replaces all usages ofEmber.K
with just plain functions cibernox.
- Fix
remove-ember-data-is-new-serializer-api
so it can be run inside ember-cli.
- Add remove-ember-data-is-new-serializer-api command #96 fivetanley.
- Add
ember watson:replace-needs-with-injection <path>
which replacesneeds
withinjection
. For more info check #87)
- Add
ember watson:use-destroy-app-helper
which helps you migrate acceptance tests to use destroy-app helper (for more info check #84)
- Make convert-resource-router-mapping transform not break when there is if expressions inside the router definition (see #80).
- Add
ember watson:find-overloaded-cps
command to help locating all the places where your source may trigger the "Using the same function as getter and setter" deprecation. This command is purely advisory, it outputs a colored report showing the snippets of code that are probably deprecated CPs.
- Improve error logging when file skipped (see #71).
- Fix typo in README.
- Fix
watson:methodify
command to ensure app path gets defaulted correctly.
- Updates QUnit transformation to work with QUnit.test style.
- Remove commands from broccoli trees.
- Adds command
methodify
which convert methods to new ES6 syntax.
Improves ember watson:convert-ember-data-model-lookups
do it doesn't
transform member expressions passed as first parameter to store (see issue #35).
Extend convert-resource-router-mapping
to transform this.resources
defined inside this.route
.
Fixes addon command convert-resource-router-mapping
.
Adds convert-resource-router-mapping
which convert the deprecated
this.resource('user')
to this.route('user', {resetNamespace: true })
. See #50 for
more info.
Fixes issue #47.
Add tests and fixes issue #31.
Fixed issue in bin command where path was not being passed.
Fixed typo in bin command.
This release includes a new command to help you add an explicit
async: false
options to all belongsTo
and hasMany
that either
have no options or its options does not contain an explicit async
value.
ember watson:convert-ember-data-async-false-relationships
By default relationships will be async in Ember-Data, see issue #3220 for more info.
This release allows commands to take single files, additionally it modifies the way in which the path is specified.
You can run any of the commands passing as argument the path, file or regular expression of the files that you want to transform.
ember watson:upgrade-qunit-tests tests/unit*
ember watson:upgrade-qunit-tests tests/unit/model-test.js
ember watson:upgrade-qunit-tests tests
The same is possible with ember watson:convert-prototype-extensions
and ember watson:convert-ember-data-model-lookups
.
Improves command ember watson:convert-ember-data-model-lookups
adding the ability to change store methods like findAll, find,
findQuery, all, etc to use the string form.
See the transformations on the file route-old.js on route-new.js.
This version includes a new command which normalizes how you reference
models in belongsTo
and hasMany
relationships to their dasherized
from. Looking up via camelCase, variable, or App.Post will be removed
for Ember Data 1.0,
Running ember watson:convert-ember-data-model-lookups
will transform
models looking like the following:
export default DS.Model.extend({
postComments: DS.hasMany('postComment', {async: true})
});
To:
export default DS.Model.extend({
postComments: DS.hasMany('post-comment', {async: true})
});
Big thanks to Stanley Stuart for his work on this command.
A bug was introduced in 0.3.0
causing import Ember from 'ember'
to
be included in any JavaScript file independently if prototype
extensions were used or not. This release fixes the issue so the
import declaration is only included if prototype extensions are
detected.
This release include some improvements to existing transformations and namespace all the commands.
Before you would call the commands like:
ember upgrade-qunit-tests
ember convert-prototype-extensions
Now they are namespaced under watson:
ember watson:upgrade-qunit-tests
ember watson:convert-prototype-extensions
Adds support to yield assert into the beforeEach/afterEach callbacks #7
The following
module('Acceptance: FriendsNew', {
setup: function() {
App = startApp();
ok(true, 'app started');
},
teardown: function() {
Ember.run(App, 'destroy');
}
});
Will be replaced with:
module('Acceptance: FriendsNew', {
beforeEach: function(assert) {
App = startApp();
assert.ok(true, 'app started');
},
afterEach: function() {
Ember.run(App, 'destroy');
}
});
Extends the transformations to include .on
event observers, the
following
chainedObserver: function(property) {
this.set('baz', true);
}.observes('foo', 'bar').on('init'),
onInit: function() {
this.set('foobar', true);
}.on('init')
Is replaced with:
chainedObserver: Ember.on('init', Ember.observer('foo', 'bar', function(property) {
this.set('baz', true);
})),
onInit: Ember.on('init', function() {
this.set('foobar', true);
})
Also if Ember
is not imported, the import will be added for you:
import Ember from 'ember'