« All deprecation guides

Deprecation Guide for Without since

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

The deprecate function now requires passing the since option to indicate when the deprecation was introduced. 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',
    since: 'v3.24.0',
  }
);