deno icon indicating copy to clipboard operation
deno copied to clipboard

Log on use of deprecated APIs for Deno 2.0

Open dsherret opened this issue 2 years ago • 3 comments

We should start logging on use of these deprecated APIs: https://github.com/denoland/deno/pull/14733

  1. Maybe this should log a stack trace in order to make it easy for people to understand where the deprecated API use is occuring.
  2. Maybe this should only log once per application run so it doesn't spam users (or maybe once per stack trace?)

dsherret avatar May 28 '22 01:05 dsherret

I guess we need something like process.emitWarning in Node

bartlomieju avatar May 28 '22 10:05 bartlomieju

We should also add some examples to the JSDoc for these deprecated APIs telling people how to use the analogous std APIs.

ry avatar May 29 '22 15:05 ry

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 30 '22 15:07 stale[bot]