Skip to content

Commit

Permalink
Merge pull request #20014 from wagenet/deprecation-until
Browse files Browse the repository at this point in the history
Log `until` for deprecations
  • Loading branch information
wagenet committed Mar 8, 2022
2 parents 5936608 + 60565ad commit f89dd90
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/@ember/debug/lib/deprecate.ts
Expand Up @@ -85,11 +85,15 @@ if (DEBUG) {
let formatMessage = function formatMessage(_message: string, options?: DeprecationOptions) {
let message = _message;

if (options && options.id) {
if (options?.id) {
message = message + ` [deprecation id: ${options.id}]`;
}

if (options && options.url) {
if (options?.until) {
message = message + ` This will be removed in Ember ${options.until}.`;
}

if (options?.url) {
message += ` See ${options.url} for more details.`;
}

Expand Down

0 comments on commit f89dd90

Please sign in to comment.