parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Add deprecation ID to deprecation log message

Open mtrezza opened this issue 3 years ago • 1 comments

New Feature / Enhancement Checklist

Current Limitation

There is currently no logic link between a deprecation log message and the corresponding deprecation in the deprecations table.

Feature / Enhancement Description

Add the deprecation ID to the deprecator, for example:

Deprecator.logRuntimeDeprecation({
  usage: 'Doing abc',
  solution: 'Use xyz instead.',
  id: '123',
});

Should result in a log message:

DeprecationWarning: (DEPPS123) Doing abc is deprecated and will be removed in a future version. Use xyz instead.

Example Use Case

n/a

Alternatives / Workarounds

n/a

3rd Party References

n/a

mtrezza avatar May 10 '22 13:05 mtrezza

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!