From 064a6c048ab420302cbb822bedd3fc365b4259a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 24 Jan 2024 14:57:54 +0100 Subject: 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 Co-authored-by: Asher Gomez --- runtime/js/99_main.js | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/js/99_main.js') 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;"); -- cgit v1.2.3