diff --git a/packages/container/lib/registry.js b/packages/container/lib/registry.js index d5510e72078..885a5836418 100644 --- a/packages/container/lib/registry.js +++ b/packages/container/lib/registry.js @@ -186,7 +186,9 @@ Registry.prototype = { Ember.assert('Create a container on the registry (with `registry.container()`) before calling `lookup`.', this._defaultContainer); if (instanceInitializersFeatureEnabled) { - Ember.deprecate('`lookup` was called on a Registry. The `initializer` API no longer receives a container, and you should use an `instanceInitializer` to look up objects from the container.', false, { url: "http://emberjs.com/guides/deprecations#toc_deprecate-access-to-instances-in-initializers" }); + Ember.deprecate('`lookup` was called on a Registry. The `initializer` API no longer receives a container, and you should use an `instanceInitializer` to look up objects from the container.', + false, + { id: 'container.calling-lookup-from-registry', until: '2.0.0', url: "http://emberjs.com/guides/deprecations#toc_deprecate-access-to-instances-in-initializers" }); } return this._defaultContainer.lookup(fullName, options); @@ -196,7 +198,9 @@ Registry.prototype = { Ember.assert('Create a container on the registry (with `registry.container()`) before calling `lookupFactory`.', this._defaultContainer); if (instanceInitializersFeatureEnabled) { - Ember.deprecate('`lookupFactory` was called on a Registry. The `initializer` API no longer receives a container, and you should use an `instanceInitializer` to look up objects from the container.', false, { url: "http://emberjs.com/guides/deprecations#toc_deprecate-access-to-instances-in-initializers" }); + Ember.deprecate('`lookupFactory` was called on a Registry. The `initializer` API no longer receives a container, and you should use an `instanceInitializer` to look up objects from the container.', + false, + { id: 'container.calling-lookupfactory-from-registry', until: '2.0.0', url: "http://emberjs.com/guides/deprecations#toc_deprecate-access-to-instances-in-initializers" }); } return this._defaultContainer.lookupFactory(fullName); diff --git a/packages/ember-application/lib/utils/validate-type.js b/packages/ember-application/lib/utils/validate-type.js index e018c93d567..b8ff725bf22 100644 --- a/packages/ember-application/lib/utils/validate-type.js +++ b/packages/ember-application/lib/utils/validate-type.js @@ -25,7 +25,8 @@ export default function validateType(resolvedType, parsedName) { `property set to true. You registered ${resolvedType} as a ${parsedName.type} ` + `factory. Either add the \`${factoryFlag}\` property to this factory or ` + `extend from ${expectedType}.`, - resolvedType[factoryFlag] + resolvedType[factoryFlag], + { id: 'ember-application.validate-type', until: '3.0.0' } ); } else { Ember.assert( diff --git a/packages/ember-runtime/lib/controllers/array_controller.js b/packages/ember-runtime/lib/controllers/array_controller.js index 201763000f0..9393760487f 100644 --- a/packages/ember-runtime/lib/controllers/array_controller.js +++ b/packages/ember-runtime/lib/controllers/array_controller.js @@ -208,7 +208,9 @@ export default ArrayProxy.extend(ControllerMixin, SortableMixin, { }, init() { - Ember.deprecate(arrayControllerDeprecation, this.isGenerated, { url: 'http://emberjs.com/guides/deprecations#toc_arraycontroller' }); + Ember.deprecate(arrayControllerDeprecation, + this.isGenerated, + { id: 'ember-runtime.array-controller', until: '2.0.0', url: 'http://emberjs.com/guides/deprecations#toc_arraycontroller' }); this._super(...arguments); this._subControllers = []; diff --git a/packages/ember-runtime/lib/controllers/object_controller.js b/packages/ember-runtime/lib/controllers/object_controller.js index acb1b60d7dd..2c5f2f311fd 100644 --- a/packages/ember-runtime/lib/controllers/object_controller.js +++ b/packages/ember-runtime/lib/controllers/object_controller.js @@ -28,6 +28,8 @@ export var objectControllerDeprecation = 'Ember.ObjectController is deprecated, export default ObjectProxy.extend(ControllerMixin, { init() { this._super(); - Ember.deprecate(objectControllerDeprecation, this.isGenerated); + Ember.deprecate(objectControllerDeprecation, + this.isGenerated, + { id: 'ember-runtime.object-controller', until: '2.0.0' }); } }); diff --git a/packages/ember-views/lib/views/component.js b/packages/ember-views/lib/views/component.js index 2565364e57c..daa0a5b6862 100644 --- a/packages/ember-views/lib/views/component.js +++ b/packages/ember-views/lib/views/component.js @@ -157,7 +157,9 @@ var Component = View.extend(TargetActionSupport, ComponentTemplateDeprecation, { */ template: computed({ get() { - Ember.deprecate(`Accessing 'template' in ${this} is deprecated. To determine if a block was specified to ${this} please use '{{#if hasBlock}}' in the components layout.`); + Ember.deprecate(`Accessing 'template' in ${this} is deprecated. To determine if a block was specified to ${this} please use '{{#if hasBlock}}' in the components layout.`, + false, + { id: 'ember-views.accessing-template', until: '2.0.0' }); return get(this, '_template'); }, diff --git a/packages/ember-views/lib/views/view.js b/packages/ember-views/lib/views/view.js index 9b9c50eaf26..1d26e672875 100644 --- a/packages/ember-views/lib/views/view.js +++ b/packages/ember-views/lib/views/view.js @@ -1345,15 +1345,21 @@ var View = CoreView.extend( scheduleRevalidate(node, label, manualRerender) { if (node && !this._dispatching && node.guid in this.env.renderedNodes) { if (manualRerender) { - Ember.deprecate(`You manually rerendered ${label} (a parent component) from a child component during the rendering process. This rarely worked in Ember 1.x and will be removed in Ember 2.0`); + Ember.deprecate(`You manually rerendered ${label} (a parent component) from a child component during the rendering process. This rarely worked in Ember 1.x and will be removed in Ember 2.0`, + false, + { id: 'ember-views.manual-parent-rerender', until: '3.0.0' }); } else { - Ember.deprecate(`You modified ${label} twice in a single render. This was unreliable in Ember 1.x and will be removed in Ember 2.0`); + Ember.deprecate(`You modified ${label} twice in a single render. This was unreliable in Ember 1.x and will be removed in Ember 2.0`, + false, + { id: 'ember-views.render-double-modify', until: '3.0.0' }); } run.scheduleOnce('render', this, this.revalidate); return; } - Ember.deprecate(`A property of ${this} was modified inside the ${this._dispatching} hook. You should never change properties on components, services or models during ${this._dispatching} because it causes significant performance degradation.`, !this._dispatching); + Ember.deprecate(`A property of ${this} was modified inside the ${this._dispatching} hook. You should never change properties on components, services or models during ${this._dispatching} because it causes significant performance degradation.`, + !this._dispatching, + { id: 'ember-views.dispatching-modify-property', until: '3.0.0' }); if (!this.scheduledRevalidation || this._dispatching) { this.scheduledRevalidation = true;