mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
docs(io): update deprecation notices (#6021)
This commit is contained in:
parent
da862c1a24
commit
50c2fc08dc
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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();
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user