deprecation(io/unstable): deprecate LimitedReader (#6024)

* deprecation(io/unstable): deprecate `LimitedReader`

* update
This commit is contained in:
Asher Gomez 2024-09-23 21:30:52 +10:00 committed by GitHub
parent e2de4d4e49
commit f763411aa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,9 @@ import type { Reader } from "./types.ts";
* assertEquals(new TextDecoder().decode(res), "hello"); * assertEquals(new TextDecoder().decode(res), "hello");
* ``` * ```
* *
* @deprecated This will be removed in 1.0.0. Use the {@link https://developer.mozilla.org/en-US/docs/Web/API/Streams_API | Web Streams API} instead. * @deprecated Pipe the readable through a
* {@linkcode https://jsr.io/@std/streams/doc/limited-bytes-transform-stream/~/LimitedBytesTransformStream | LimitedBytesTransformStream}
* instead. This will be removed in 0.225.0.
*/ */
export class LimitedReader implements Reader { export class LimitedReader implements Reader {
/** /**