docs(io): update deprecation notices (#6021)

This commit is contained in:
Asher Gomez 2024-09-23 21:32:07 +10:00 committed by GitHub
parent da862c1a24
commit 50c2fc08dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 8 additions and 8 deletions

View File

@ -26,7 +26,7 @@ const DEFAULT_BUFFER_SIZE = 32 * 1024;
* *
* @deprecated Pipe the readable stream through a new * @deprecated Pipe the readable stream through a new
* {@linkcode https://jsr.io/@std/streams/doc/~/ByteSliceStream | ByteSliceStream} * {@linkcode https://jsr.io/@std/streams/doc/~/ByteSliceStream | ByteSliceStream}
* instead. This will be removed in the future. * instead. This will be removed in 0.225.0.
*/ */
export async function copyN( export async function copyN(
r: Reader, r: Reader,

View File

@ -21,7 +21,7 @@ import { readShort } from "./read_short.ts";
* @param buf The buffer reader to read from * @param buf The buffer reader to read from
* @returns The 32bit integer * @returns The 32bit integer
* *
* @deprecated This will be removed in 0.226.0. * @deprecated This will be removed in 0.225.0.
*/ */
export async function readInt(buf: BufReader): Promise<number | null> { export async function readInt(buf: BufReader): Promise<number | null> {
const high = await readShort(buf); const high = await readShort(buf);

View File

@ -26,7 +26,7 @@ import { concat } from "@std/bytes/concat";
* *
* @deprecated Use * @deprecated Use
* {@linkcode https://jsr.io/@std/streams/doc/unstable-to-lines/~/toLines | toLines} * {@linkcode https://jsr.io/@std/streams/doc/unstable-to-lines/~/toLines | toLines}
* on the readable stream instead. This will be removed in the future. * on the readable stream instead. This will be removed in 0.225.0.
*/ */
export async function* readLines( export async function* readLines(
reader: Reader, reader: Reader,

View File

@ -25,7 +25,7 @@ const MAX_SAFE_INTEGER = BigInt(Number.MAX_SAFE_INTEGER);
* @throws {Deno.errors.UnexpectedEof} If the reader returns unexpected EOF * @throws {Deno.errors.UnexpectedEof} If the reader returns unexpected EOF
* @throws {RangeError} If the long value is too big to be represented as a JavaScript number * @throws {RangeError} If the long value is too big to be represented as a JavaScript number
* *
* @deprecated This will be removed in the future. * @deprecated This will be removed in 0.225.0.
*/ */
export async function readLong(buf: BufReader): Promise<number | null> { export async function readLong(buf: BufReader): Promise<number | null> {
const high = await readInt(buf); const high = await readInt(buf);

View File

@ -40,7 +40,7 @@ export interface ByteRange {
* *
* @deprecated Use * @deprecated Use
* {@linkcode https://jsr.io/@std/streams/doc/byte-slice-stream/~/ByteSliceStream | ByteSliceStream} * {@linkcode https://jsr.io/@std/streams/doc/byte-slice-stream/~/ByteSliceStream | ByteSliceStream}
* instead. This will be removed in 0.226.0. * instead. This will be removed in 0.225.0.
*/ */
export async function readRange( export async function readRange(
r: Reader & Seeker, r: Reader & Seeker,

View File

@ -20,7 +20,7 @@ import type { BufReader } from "./buf_reader.ts";
* @param buf The reader to read from * @param buf The reader to read from
* @returns The 16bit short * @returns The 16bit short
* *
* @deprecated This will be removed in 0.226.0. * @deprecated This will be removed in 0.225.0.
*/ */
export async function readShort(buf: BufReader): Promise<number | null> { export async function readShort(buf: BufReader): Promise<number | null> {
const high = await buf.readByte(); const high = await buf.readByte();

View File

@ -26,7 +26,7 @@ import { readDelim } from "./read_delim.ts";
* *
* @deprecated Pipe the readable stream through a * @deprecated Pipe the readable stream through a
* {@linkcode https://jsr.io/@std/streams/doc/~/TextDelimiterStream | TextDelimiterStream} * {@linkcode https://jsr.io/@std/streams/doc/~/TextDelimiterStream | TextDelimiterStream}
* instead. This will be removed in the future. * instead. This will be removed in 0.225.0.
*/ */
export async function* readStringDelim( export async function* readStringDelim(
reader: Reader, reader: Reader,

View File

@ -17,7 +17,7 @@
* @param dest The array to store the sliced bytes * @param dest The array to store the sliced bytes
* @returns The sliced bytes * @returns The sliced bytes
* *
* @deprecated This will be removed in the future. * @deprecated This will be removed in 0.225.0.
*/ */
export function sliceLongToBytes( export function sliceLongToBytes(
d: number, d: number,