From 10dc903cb7c24ebbdfca33de88f652558366ef50 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Fri, 20 Sep 2024 10:13:11 +1000 Subject: [PATCH 1/2] deprecation(io/unstable): deprecate `StringWriter` --- io/string_writer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/io/string_writer.ts b/io/string_writer.ts index 63ca18cd0647..649ecac4abb9 100644 --- a/io/string_writer.ts +++ b/io/string_writer.ts @@ -28,7 +28,9 @@ const decoder = new TextDecoder(); * assertEquals(w.toString(), "base0123456789"); * ``` * - * @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 Write to a + * {@linkcode https://jsr.io/@std/streams/doc/buffer/~/Buffer | Buffer}'s + * `writable` property instead. This will be removed in 0.226.0. */ export class StringWriter implements Writer, WriterSync { #chunks: Uint8Array[] = []; From 38191f74b9305c9c7f8339d331067e47518a4241 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Mon, 23 Sep 2024 21:15:16 +1000 Subject: [PATCH 2/2] update --- io/string_writer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/string_writer.ts b/io/string_writer.ts index 649ecac4abb9..650d68421c6f 100644 --- a/io/string_writer.ts +++ b/io/string_writer.ts @@ -30,7 +30,7 @@ const decoder = new TextDecoder(); * * @deprecated Write to a * {@linkcode https://jsr.io/@std/streams/doc/buffer/~/Buffer | Buffer}'s - * `writable` property instead. This will be removed in 0.226.0. + * `writable` property instead. This will be removed in 0.225.0. */ export class StringWriter implements Writer, WriterSync { #chunks: Uint8Array[] = [];