Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(io): update deprecation notices #6021

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion io/copy_n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const DEFAULT_BUFFER_SIZE = 32 * 1024;
*
* @deprecated Pipe the readable stream through a new
* {@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(
r: Reader,
Expand Down
2 changes: 1 addition & 1 deletion io/read_int.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { readShort } from "./read_short.ts";
* @param buf The buffer reader to read from
* @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> {
const high = await readShort(buf);
Expand Down
2 changes: 1 addition & 1 deletion io/read_lines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { concat } from "@std/bytes/concat";
*
* @deprecated Use
* {@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(
reader: Reader,
Expand Down
2 changes: 1 addition & 1 deletion io/read_long.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const MAX_SAFE_INTEGER = BigInt(Number.MAX_SAFE_INTEGER);
* @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
*
* @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> {
const high = await readInt(buf);
Expand Down
2 changes: 1 addition & 1 deletion io/read_range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface ByteRange {
*
* @deprecated Use
* {@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(
r: Reader & Seeker,
Expand Down
2 changes: 1 addition & 1 deletion io/read_short.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { BufReader } from "./buf_reader.ts";
* @param buf The reader to read from
* @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> {
const high = await buf.readByte();
Expand Down
2 changes: 1 addition & 1 deletion io/read_string_delim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { readDelim } from "./read_delim.ts";
*
* @deprecated Pipe the readable stream through a
* {@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(
reader: Reader,
Expand Down
2 changes: 1 addition & 1 deletion io/slice_long_to_bytes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @param dest The array to store 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(
d: number,
Expand Down