From f763411aa6ed58a28bbb65608d18cacc8009c09e Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Mon, 23 Sep 2024 21:30:52 +1000 Subject: [PATCH] deprecation(io/unstable): deprecate `LimitedReader` (#6024) * deprecation(io/unstable): deprecate `LimitedReader` * update --- io/limited_reader.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/io/limited_reader.ts b/io/limited_reader.ts index 982cca6ed..1b1ad640a 100644 --- a/io/limited_reader.ts +++ b/io/limited_reader.ts @@ -23,7 +23,9 @@ import type { Reader } from "./types.ts"; * 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 { /**