mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +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
|
* @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,
|
||||||
|
@ -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);
|
||||||
|
@ -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,
|
||||||
|
@ -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);
|
||||||
|
@ -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,
|
||||||
|
@ -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();
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user