deprecation(io/unstable): deprecate readLong() (#6007)

This commit is contained in:
Asher Gomez 2024-09-19 11:28:22 +10:00 committed by GitHub
parent a550998a6f
commit ee9e3020e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 1.0.0. Use the {@link https://developer.mozilla.org/en-US/docs/Web/API/Streams_API | Web Streams API} instead. * @deprecated This will be removed in the future.
*/ */
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);