diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-24 14:57:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 14:57:54 +0100 |
commit | 064a6c048ab420302cbb822bedd3fc365b4259a7 (patch) | |
tree | 1aa6ee2716f2cc30e74dd97818330a5e2d154a07 /runtime/js/99_main.js | |
parent | 745333f073aba4c97e7d06c731063105493cde5a (diff) |
feat: Add warnings for more deprecated APIs (#21992)
Follow up to https://github.com/denoland/deno/pull/21939 that adds
deprecation warnings to more `Deno` APIs:
- `Deno.copy()`
- `Deno.iter()`
- `Deno.iterSync()`
- `new Deno.Buffer()`
- `Deno.readAll()`
- `Deno.readAllSync()`
- `Deno.writeAll()`
- `Deno.writeAllSync()`
- `Deno.FsWatcher.return`
- `Deno.serveHttp()`
- `Deno.metrics()`
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 3fee1109b..7057f6d62 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -155,6 +155,7 @@ function warnOnDeprecatedApi(apiName, stack, ...suggestions) { "%c\u251c This API will be removed in Deno 2.0. Make sure to upgrade to a stable API before then.", "color: yellow;", ); + for (let i = 0; i < suggestions.length; i++) { const suggestion = suggestions[i]; console.error("%c\u2502", "color: yellow;"); |