« All deprecation guides

Deprecation Guide for Without for

until: 4.0.0
id: ember-source-deprecation-without-for

The deprecate function now requires passing the for option to provide a namespace for the deprecation. Before:

import { deprecate } from '@ember/debug';

deprecate(
  'Please update from the bad function `somethingBad` to a better one',
  false,
  {
    id: 'get-rid-of-somethingBad',
    until: 'v4.0.0',
  }
);

After:

import { deprecate } from '@ember/debug';

deprecate(
  'Please update from the bad function `somethingBad` to a better one',
  false,
  {
    id: 'get-rid-of-somethingBad',
    until: 'v4.0.0',
    for: 'my-app',
  }
);