summaryrefslogtreecommitdiff
path: root/cli/tsc
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2023-12-14 04:55:39 +1100
committerGitHub <noreply@github.com>2023-12-13 10:55:39 -0700
commita3fc93a4cb4202e91b399f9385030a1c5b0d1bb7 (patch)
treef3b4590af2d8e88f426a4e46601a5270052f91ba /cli/tsc
parent6ebe4c2997e67f42dfe3471fc9d15f72a95b6735 (diff)
chore: deprecate `Deno.Reader`, `Deno.ReaderSync`, `Deno.Writer`, `Deno.WriterSync` and `Deno.Closer` (#21465)
This change deprecates `Deno.Reader`, `Deno.ReaderSync`, `Deno.Writer`, `Deno.WriterSync` and `Deno.Closer` in favour of the [Web Streams API](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API). After discussing with Yoshiya, we both thought now might be the right time to deprecate these interfaces with v2 getting closer.
Diffstat (limited to 'cli/tsc')
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index ef9f68886..bc2cfb7ee 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -1624,6 +1624,9 @@ declare namespace Deno {
* An abstract interface which when implemented provides an interface to read
* bytes into an array buffer asynchronously.
*
+ * @deprecated Use {@linkcode ReadableStream} instead. {@linkcode Reader}
+ * will be removed in v2.0.0.
+ *
* @category I/O */
export interface Reader {
/** Reads up to `p.byteLength` bytes into `p`. It resolves to the number of
@@ -1658,6 +1661,9 @@ declare namespace Deno {
* An abstract interface which when implemented provides an interface to read
* bytes into an array buffer synchronously.
*
+ * @deprecated Use {@linkcode ReadableStream} instead. {@linkcode ReaderSync}
+ * will be removed in v2.0.0.
+ *
* @category I/O */
export interface ReaderSync {
/** Reads up to `p.byteLength` bytes into `p`. It resolves to the number
@@ -1692,6 +1698,9 @@ declare namespace Deno {
* An abstract interface which when implemented provides an interface to write
* bytes from an array buffer to a file/resource asynchronously.
*
+ * @deprecated Use {@linkcode WritableStream} instead. {@linkcode Writer}
+ * will be removed in v2.0.0.
+ *
* @category I/O */
export interface Writer {
/** Writes `p.byteLength` bytes from `p` to the underlying data stream. It
@@ -1716,6 +1725,9 @@ declare namespace Deno {
* An abstract interface which when implemented provides an interface to write
* bytes from an array buffer to a file/resource synchronously.
*
+ * @deprecated Use {@linkcode WritableStream} instead. {@linkcode WriterSync}
+ * will be removed in v2.0.0.
+ *
* @category I/O */
export interface WriterSync {
/** Writes `p.byteLength` bytes from `p` to the underlying data
@@ -1734,6 +1746,9 @@ declare namespace Deno {
* An abstract interface which when implemented provides an interface to close
* files/resources that were previously opened.
*
+ * @deprecated Use {@linkcode ReadableStream} and {@linkcode WritableStream}
+ * instead. {@linkcode Closer} will be removed in v2.0.0.
+ *
* @category I/O */
export interface Closer {
/** Closes the resource, "freeing" the backing file/resource. */