window.deprecationWorkflow = window.deprecationWorkflow || {}; window.deprecationWorkflow.config = { workflow: [ // DONE { handler: "log", matchMessage: "Ember.LinkView is deprecated. Please use Ember.LinkComponent." }, { handler: "log", matchMessage: "Calling store.find() with a query object is deprecated. Use store.query() instead." }, { handler: "log", matchMessage: new RegExp("A property of .*? was modified inside the didInsertElement hook. You should never change properties on components, services or models during didInsertElement because it causes significant performance degradation.") }, { handler: "log", matchMessage: "Ember.arrayComputed is deprecated. Replace it with plain array methods" }, // this will still emit deprecations, because we use state property in // request-icon compoenent, that makes Ember.js think that we're using // internal component's state { handler: "log", matchMessage: "Usage of `state` is deprecated, use `_state` instead." }, { handler: "log", matchMessage: "RestAdapter#find has been deprecated and renamed to `findRecord`." }, { handler: "log", matchMessage: "Usage of `typeKey` has been deprecated and will be removed in Ember Data 2.0. It has been replaced by `modelName` on the model class." }, { handler: "log", matchMessage: "Using store.dematerializeRecord() has been deprecated since it was intended for private use only. You should use store.unloadRecord() instead." }, { handler: "log", matchMessage: "Using the same function as getter and setter is deprecated." }, { handler: "log", matchMessage: "`Ember.ArrayController` is deprecated." }, { handler: "log", matchMessage: "The default behavior of `shouldBackgroundReloadRecord` will change in Ember Data 2.0 to always return true. If you would like to preserve the current behavior please override `shouldBackgroundReloadRecord` in your adapter:application and return false." }, { handler: "log", matchMessage: "Function#observesBefore is deprecated and will be removed in the near future." }, { handler: "log", matchMessage: "Ember.addBeforeObserver is deprecated and will be removed in the near future." }, { handler: "log", matchMessage: "Ember.removeBeforeObserver is deprecated and will be removed in the near future." }, { handler: "log", matchMessage: "Using DS.Snapshot.get() is deprecated. Use .attr(), .belongsTo() or .hasMany() instead." }, { handler: "log", matchMessage: "The filter API will be moved into a plugin soon. To enable store.filter using an environment flag, or to use an alternative, you can visit the ember-data-filter addon page" }, { handler: "log", matchMessage: "Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy." }, // TODO { handler: "silence", matchMessage: "Using `ApplicationInstance.container.lookup` is deprecated. Please use `ApplicationInstance.lookup` instead." }, { handler: "silence", matchMessage: new RegExp("the component:.*? test module is implicitly running in unit test mode, which will change to integration test mode by default in an upcoming version of ember-test-helpers. Add `unit: true` or a `needs:[]` list to explicitly opt in to unit test mode.") }, ] };