diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-04 18:12:11 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 18:12:11 +1000 |
commit | ac33fc2892f8faf9484c31c2aabfdc3744de0314 (patch) | |
tree | 4eb9f66a2e7e93c512d6aff17fb672b6203af9b4 /runtime/js | |
parent | cb454351d497a4387775f3c9d64114cb8b32c08d (diff) |
chore(tty): soft-remove `Deno.isatty()` (#25410)
Towards #22079
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/40_tty.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/runtime/js/40_tty.js b/runtime/js/40_tty.js index 7cf1e4f5d..72e7b6884 100644 --- a/runtime/js/40_tty.js +++ b/runtime/js/40_tty.js @@ -1,5 +1,5 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { core, internals, primordials } from "ext:core/mod.js"; +import { core, primordials } from "ext:core/mod.js"; import { op_console_size } from "ext:core/ops"; const { Uint32Array, @@ -15,12 +15,9 @@ function consoleSize() { return { columns: size[0], rows: size[1] }; } +// Note: This function was soft-removed in Deno 2. Its types have been removed, +// but its implementation has been kept to avoid breaking changes. function isatty(rid) { - internals.warnOnDeprecatedApi( - "Deno.isatty()", - new Error().stack, - "Use `Deno.stdin.isTerminal()`, `Deno.stdout.isTerminal()`, `Deno.stderr.isTerminal()` or `Deno.FsFile.isTerminal()` instead.", - ); return isTerminal(rid); } |