summaryrefslogtreecommitdiff
path: root/cli/tsc
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-01-25 06:09:49 +1100
committerGitHub <noreply@github.com>2024-01-24 20:09:49 +0100
commit300eeb343efa00d9572d3befa47ca88fb51c7ac6 (patch)
tree419963878caaa24bfacaa9e9950931cb6cb2d4e8 /cli/tsc
parent547468e625a7b040690a6f26901597b5672ac413 (diff)
feat: deprecate `Deno.{stdin,stdout,stderr}.rid` (#22073)
For removal in Deno v2. There are two issues: 1. Any script being run causes the output of `warnOnDeprecatedApi()` to be printed, even when none of the `rid` properties are called. 2. `.rid` of these classes is used in multiple tests. I'm not sure how to account for that. I thought of having `STDIN_RID`, and friends, constants, whose values can be shared between the tests and the classes themselves. Should we go with that or do something else? --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tsc')
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts27
1 files changed, 21 insertions, 6 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index 743152442..1ac86db98 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -2727,8 +2727,13 @@ declare namespace Deno {
* @category I/O
*/
export const stdin: Reader & ReaderSync & Closer & {
- /** The resource ID assigned to `stdin`. This can be used with the discreet
- * I/O functions in the `Deno` namespace. */
+ /**
+ * The resource ID assigned to `stdin`. This can be used with the discreet
+ * I/O functions in the `Deno` namespace.
+ *
+ * @deprecated Use {@linkcode Deno.stdin} instance methods instead.
+ * {@linkcode Deno.stdin.rid} will be removed in Deno 2.0.
+ */
readonly rid: number;
/** A readable stream interface to `stdin`. */
readonly readable: ReadableStream<Uint8Array>;
@@ -2769,8 +2774,13 @@ declare namespace Deno {
* @category I/O
*/
export const stdout: Writer & WriterSync & Closer & {
- /** The resource ID assigned to `stdout`. This can be used with the discreet
- * I/O functions in the `Deno` namespace. */
+ /**
+ * The resource ID assigned to `stdout`. This can be used with the discreet
+ * I/O functions in the `Deno` namespace.
+ *
+ * @deprecated Use {@linkcode Deno.stdout} instance methods instead.
+ * {@linkcode Deno.stdout.rid} will be removed in Deno 2.0.
+ */
readonly rid: number;
/** A writable stream interface to `stdout`. */
readonly writable: WritableStream<Uint8Array>;
@@ -2797,8 +2807,13 @@ declare namespace Deno {
* @category I/O
*/
export const stderr: Writer & WriterSync & Closer & {
- /** The resource ID assigned to `stderr`. This can be used with the discreet
- * I/O functions in the `Deno` namespace. */
+ /**
+ * The resource ID assigned to `stderr`. This can be used with the discreet
+ * I/O functions in the `Deno` namespace.
+ *
+ * @deprecated Use {@linkcode Deno.stderr} instance methods instead.
+ * {@linkcode Deno.stderr.rid} will be removed in Deno 2.0.
+ */
readonly rid: number;
/** A writable stream interface to `stderr`. */
readonly writable: WritableStream<Uint8Array>;