mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
chore: update std submodule and its imports (#17408)
This commit is contained in:
parent
8f321a8a39
commit
7683ba5e90
15 changed files with 42 additions and 50 deletions
2
cli/tests/testdata/cat.ts
vendored
2
cli/tests/testdata/cat.ts
vendored
|
@ -1,4 +1,4 @@
|
||||||
import { copy } from "../../../test_util/std/io/util.ts";
|
import { copy } from "../../../test_util/std/streams/copy.ts";
|
||||||
async function main() {
|
async function main() {
|
||||||
for (let i = 1; i < Deno.args.length; i++) {
|
for (let i = 1; i < Deno.args.length; i++) {
|
||||||
const filename = Deno.args[i];
|
const filename = Deno.args[i];
|
||||||
|
|
2
cli/tests/testdata/echo_server.ts
vendored
2
cli/tests/testdata/echo_server.ts
vendored
|
@ -1,4 +1,4 @@
|
||||||
import { copy } from "../../../test_util/std/io/util.ts";
|
import { copy } from "../../../test_util/std/streams/copy.ts";
|
||||||
const addr = Deno.args[0] || "0.0.0.0:4544";
|
const addr = Deno.args[0] || "0.0.0.0:4544";
|
||||||
const [hostname, port] = addr.split(":");
|
const [hostname, port] = addr.split(":");
|
||||||
const listener = Deno.listen({ hostname, port: Number(port) });
|
const listener = Deno.listen({ hostname, port: Number(port) });
|
||||||
|
|
4
cli/tests/testdata/run/textproto.ts
vendored
4
cli/tests/testdata/run/textproto.ts
vendored
|
@ -17,8 +17,8 @@
|
||||||
import type {
|
import type {
|
||||||
BufReader,
|
BufReader,
|
||||||
ReadLineResult,
|
ReadLineResult,
|
||||||
} from "../../../../test_util/std/io/buffer.ts";
|
} from "../../../../test_util/std/io/buf_reader.ts";
|
||||||
import { concat } from "../../../../test_util/std/bytes/mod.ts";
|
import { concat } from "../../../../test_util/std/bytes/concat.ts";
|
||||||
|
|
||||||
// Constants created for DRY
|
// Constants created for DRY
|
||||||
const CHAR_SPACE: number = " ".charCodeAt(0);
|
const CHAR_SPACE: number = " ".charCodeAt(0);
|
||||||
|
|
2
cli/tests/testdata/run/tls_connecttls.js
vendored
2
cli/tests/testdata/run/tls_connecttls.js
vendored
|
@ -3,7 +3,7 @@ import {
|
||||||
assert,
|
assert,
|
||||||
assertEquals,
|
assertEquals,
|
||||||
} from "../../../../test_util/std/testing/asserts.ts";
|
} from "../../../../test_util/std/testing/asserts.ts";
|
||||||
import { BufReader, BufWriter } from "../../../../test_util/std/io/buffer.ts";
|
import { BufReader, BufWriter } from "../../../../test_util/std/io/mod.ts";
|
||||||
import { TextProtoReader } from "./textproto.ts";
|
import { TextProtoReader } from "./textproto.ts";
|
||||||
|
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// https://github.com/denoland/deno/issues/13729
|
// https://github.com/denoland/deno/issues/13729
|
||||||
// https://github.com/denoland/deno/issues/13938
|
// https://github.com/denoland/deno/issues/13938
|
||||||
import { writeAll } from "../../../../test_util/std/io/util.ts";
|
import { writeAll } from "../../../../test_util/std/streams/write_all.ts";
|
||||||
|
|
||||||
Deno.test("test 1", { permissions: { write: true, read: true } }, async () => {
|
Deno.test("test 1", { permissions: { write: true, read: true } }, async () => {
|
||||||
const tmpFile = await Deno.makeTempFile();
|
const tmpFile = await Deno.makeTempFile();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
import { assert, assertEquals, assertStringIncludes } from "./test_util.ts";
|
import { assert, assertEquals, assertStringIncludes } from "./test_util.ts";
|
||||||
import { concat } from "../../../test_util/std/bytes/mod.ts";
|
import { concat } from "../../../test_util/std/bytes/concat.ts";
|
||||||
|
|
||||||
Deno.test(function blobString() {
|
Deno.test(function blobString() {
|
||||||
const b1 = new Blob(["Hello World"]);
|
const b1 = new Blob(["Hello World"]);
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {
|
||||||
assertRejects,
|
assertRejects,
|
||||||
assertThrows,
|
assertThrows,
|
||||||
} from "./test_util.ts";
|
} from "./test_util.ts";
|
||||||
import { copy } from "../../../test_util/std/streams/conversion.ts";
|
import { copy } from "../../../test_util/std/streams/copy.ts";
|
||||||
|
|
||||||
Deno.test(function filesStdioFileDescriptors() {
|
Deno.test(function filesStdioFileDescriptors() {
|
||||||
assertEquals(Deno.stdin.rid, 0);
|
assertEquals(Deno.stdin.rid, 0);
|
||||||
|
|
|
@ -2,11 +2,7 @@
|
||||||
|
|
||||||
// deno-lint-ignore-file
|
// deno-lint-ignore-file
|
||||||
|
|
||||||
import {
|
import { Buffer, BufReader, BufWriter } from "../../../test_util/std/io/mod.ts";
|
||||||
Buffer,
|
|
||||||
BufReader,
|
|
||||||
BufWriter,
|
|
||||||
} from "../../../test_util/std/io/buffer.ts";
|
|
||||||
import { TextProtoReader } from "../testdata/run/textproto.ts";
|
import { TextProtoReader } from "../testdata/run/textproto.ts";
|
||||||
import {
|
import {
|
||||||
assert,
|
assert,
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||||
import {
|
import { Buffer, BufReader, BufWriter } from "../../../test_util/std/io/mod.ts";
|
||||||
Buffer,
|
|
||||||
BufReader,
|
|
||||||
BufWriter,
|
|
||||||
} from "../../../test_util/std/io/buffer.ts";
|
|
||||||
import { TextProtoReader } from "../testdata/run/textproto.ts";
|
import { TextProtoReader } from "../testdata/run/textproto.ts";
|
||||||
import { serve, serveTls } from "../../../test_util/std/http/server.ts";
|
import { serve, serveTls } from "../../../test_util/std/http/server.ts";
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -20,7 +20,7 @@ export {
|
||||||
export { deferred } from "../../../test_util/std/async/deferred.ts";
|
export { deferred } from "../../../test_util/std/async/deferred.ts";
|
||||||
export type { Deferred } from "../../../test_util/std/async/deferred.ts";
|
export type { Deferred } from "../../../test_util/std/async/deferred.ts";
|
||||||
export { delay } from "../../../test_util/std/async/delay.ts";
|
export { delay } from "../../../test_util/std/async/delay.ts";
|
||||||
export { readLines } from "../../../test_util/std/io/buffer.ts";
|
export { readLines } from "../../../test_util/std/io/read_lines.ts";
|
||||||
export { parse as parseArgs } from "../../../test_util/std/flags/mod.ts";
|
export { parse as parseArgs } from "../../../test_util/std/flags/mod.ts";
|
||||||
|
|
||||||
export function pathToAbsoluteFileUrl(path: string): URL {
|
export function pathToAbsoluteFileUrl(path: string): URL {
|
||||||
|
|
|
@ -9,8 +9,8 @@ import {
|
||||||
Deferred,
|
Deferred,
|
||||||
deferred,
|
deferred,
|
||||||
} from "./test_util.ts";
|
} from "./test_util.ts";
|
||||||
import { BufReader, BufWriter } from "../../../test_util/std/io/buffer.ts";
|
import { BufReader, BufWriter } from "../../../test_util/std/io/mod.ts";
|
||||||
import { readAll } from "../../../test_util/std/streams/conversion.ts";
|
import { readAll } from "../../../test_util/std/streams/read_all.ts";
|
||||||
import { TextProtoReader } from "../testdata/run/textproto.ts";
|
import { TextProtoReader } from "../testdata/run/textproto.ts";
|
||||||
|
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
|
|
52
cli/tsc/dts/lib.deno.ns.d.ts
vendored
52
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -1392,9 +1392,9 @@ declare namespace Deno {
|
||||||
* Implementations should not retain a reference to `p`.
|
* Implementations should not retain a reference to `p`.
|
||||||
*
|
*
|
||||||
* Use
|
* Use
|
||||||
* [`itereateReader`](https://deno.land/std/streams/conversion.ts?s=iterateReader)
|
* [`itereateReader`](https://deno.land/std/streams/iterate_reader.ts?s=iterateReader)
|
||||||
* from
|
* from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/iterate_reader.ts`](https://deno.land/std/streams/iterate_reader.ts)
|
||||||
* to turn a `Reader` into an {@linkcode AsyncIterator}.
|
* to turn a `Reader` into an {@linkcode AsyncIterator}.
|
||||||
*/
|
*/
|
||||||
read(p: Uint8Array): Promise<number | null>;
|
read(p: Uint8Array): Promise<number | null>;
|
||||||
|
@ -1426,9 +1426,9 @@ declare namespace Deno {
|
||||||
* Implementations should not retain a reference to `p`.
|
* Implementations should not retain a reference to `p`.
|
||||||
*
|
*
|
||||||
* Use
|
* Use
|
||||||
* [`itereateReaderSync`](https://deno.land/std/streams/conversion.ts?s=iterateReaderSync)
|
* [`itereateReaderSync`](https://deno.land/std/streams/iterate_reader.ts?s=iterateReaderSync)
|
||||||
* from from
|
* from from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/iterate_reader.ts`](https://deno.land/std/streams/iterate_reader.ts)
|
||||||
* to turn a `ReaderSync` into an {@linkcode Iterator}.
|
* to turn a `ReaderSync` into an {@linkcode Iterator}.
|
||||||
*/
|
*/
|
||||||
readSync(p: Uint8Array): number | null;
|
readSync(p: Uint8Array): number | null;
|
||||||
|
@ -1527,8 +1527,8 @@ declare namespace Deno {
|
||||||
* the first error encountered while copying.
|
* the first error encountered while copying.
|
||||||
*
|
*
|
||||||
* @deprecated Use
|
* @deprecated Use
|
||||||
* [`copy`](https://deno.land/std/streams/conversion.ts?s=copy) from
|
* [`copy`](https://deno.land/std/streams/copy.ts?s=copy) from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/copy.ts`](https://deno.land/std/streams/copy.ts)
|
||||||
* instead. `Deno.copy` will be removed in the future.
|
* instead. `Deno.copy` will be removed in the future.
|
||||||
*
|
*
|
||||||
* @category I/O
|
* @category I/O
|
||||||
|
@ -1547,9 +1547,9 @@ declare namespace Deno {
|
||||||
* Turns a Reader, `r`, into an async iterator.
|
* Turns a Reader, `r`, into an async iterator.
|
||||||
*
|
*
|
||||||
* @deprecated Use
|
* @deprecated Use
|
||||||
* [`iterateReader`](https://deno.land/std/streams/conversion.ts?s=iterateReader)
|
* [`iterateReader`](https://deno.land/std/streams/iterate_reader.ts?s=iterateReader)
|
||||||
* from
|
* from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/iterate_reader.ts`](https://deno.land/std/streams/iterate_reader.ts)
|
||||||
* instead. `Deno.iter` will be removed in the future.
|
* instead. `Deno.iter` will be removed in the future.
|
||||||
*
|
*
|
||||||
* @category I/O
|
* @category I/O
|
||||||
|
@ -1563,9 +1563,9 @@ declare namespace Deno {
|
||||||
* Turns a ReaderSync, `r`, into an iterator.
|
* Turns a ReaderSync, `r`, into an iterator.
|
||||||
*
|
*
|
||||||
* @deprecated Use
|
* @deprecated Use
|
||||||
* [`iterateReaderSync`](https://deno.land/std/streams/conversion.ts?s=iterateReaderSync)
|
* [`iterateReaderSync`](https://deno.land/std/streams/iterate_reader.ts?s=iterateReaderSync)
|
||||||
* from
|
* from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/iterate_reader.ts`](https://deno.land/std/streams/iterate_reader.ts)
|
||||||
* instead. `Deno.iterSync` will be removed in the future.
|
* instead. `Deno.iterSync` will be removed in the future.
|
||||||
*
|
*
|
||||||
* @category I/O
|
* @category I/O
|
||||||
|
@ -1656,8 +1656,8 @@ declare namespace Deno {
|
||||||
*
|
*
|
||||||
* This function is one of the lowest level APIs and most users should not
|
* This function is one of the lowest level APIs and most users should not
|
||||||
* work with this directly, but rather use
|
* work with this directly, but rather use
|
||||||
* [`readAll()`](https://deno.land/std/streams/conversion.ts?s=readAll) from
|
* [`readAll()`](https://deno.land/std/streams/read_all.ts?s=readAll) from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/read_all.ts`](https://deno.land/std/streams/read_all.ts)
|
||||||
* instead.
|
* instead.
|
||||||
*
|
*
|
||||||
* **It is not guaranteed that the full buffer will be read in a single call.**
|
* **It is not guaranteed that the full buffer will be read in a single call.**
|
||||||
|
@ -1686,9 +1686,9 @@ declare namespace Deno {
|
||||||
*
|
*
|
||||||
* This function is one of the lowest level APIs and most users should not
|
* This function is one of the lowest level APIs and most users should not
|
||||||
* work with this directly, but rather use
|
* work with this directly, but rather use
|
||||||
* [`readAllSync()`](https://deno.land/std/streams/conversion.ts?s=readAllSync)
|
* [`readAllSync()`](https://deno.land/std/streams/read_all.ts?s=readAllSync)
|
||||||
* from
|
* from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/read_all.ts`](https://deno.land/std/streams/read_all.ts)
|
||||||
* instead.
|
* instead.
|
||||||
*
|
*
|
||||||
* **It is not guaranteed that the full buffer will be read in a single
|
* **It is not guaranteed that the full buffer will be read in a single
|
||||||
|
@ -1711,8 +1711,8 @@ declare namespace Deno {
|
||||||
*
|
*
|
||||||
* Resolves to the number of bytes written. This function is one of the lowest
|
* Resolves to the number of bytes written. This function is one of the lowest
|
||||||
* level APIs and most users should not work with this directly, but rather use
|
* level APIs and most users should not work with this directly, but rather use
|
||||||
* [`writeAll()`](https://deno.land/std/streams/conversion.ts?s=writeAll) from
|
* [`writeAll()`](https://deno.land/std/streams/write_all.ts?s=writeAll) from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/write_all.ts`](https://deno.land/std/streams/write_all.ts)
|
||||||
* instead.
|
* instead.
|
||||||
*
|
*
|
||||||
* **It is not guaranteed that the full buffer will be written in a single
|
* **It is not guaranteed that the full buffer will be written in a single
|
||||||
|
@ -1736,9 +1736,9 @@ declare namespace Deno {
|
||||||
* Returns the number of bytes written. This function is one of the lowest
|
* Returns the number of bytes written. This function is one of the lowest
|
||||||
* level APIs and most users should not work with this directly, but rather
|
* level APIs and most users should not work with this directly, but rather
|
||||||
* use
|
* use
|
||||||
* [`writeAllSync()`](https://deno.land/std/streams/conversion.ts?s=writeAllSync)
|
* [`writeAllSync()`](https://deno.land/std/streams/write_all.ts?s=writeAllSync)
|
||||||
* from
|
* from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/write_all.ts`](https://deno.land/std/streams/write_all.ts)
|
||||||
* instead.
|
* instead.
|
||||||
*
|
*
|
||||||
* **It is not guaranteed that the full buffer will be written in a single
|
* **It is not guaranteed that the full buffer will be written in a single
|
||||||
|
@ -2509,8 +2509,8 @@ declare namespace Deno {
|
||||||
* Uint8Array`.
|
* Uint8Array`.
|
||||||
*
|
*
|
||||||
* @deprecated Use
|
* @deprecated Use
|
||||||
* [`readAll`](https://deno.land/std/streams/conversion.ts?s=readAll) from
|
* [`readAll`](https://deno.land/std/streams/read_all.ts?s=readAll) from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/read_all.ts`](https://deno.land/std/streams/read_all.ts)
|
||||||
* instead. `Deno.readAll` will be removed in the future.
|
* instead. `Deno.readAll` will be removed in the future.
|
||||||
*
|
*
|
||||||
* @category I/O
|
* @category I/O
|
||||||
|
@ -2522,9 +2522,9 @@ declare namespace Deno {
|
||||||
* as `Uint8Array`.
|
* as `Uint8Array`.
|
||||||
*
|
*
|
||||||
* @deprecated Use
|
* @deprecated Use
|
||||||
* [`readAllSync`](https://deno.land/std/streams/conversion.ts?s=readAllSync)
|
* [`readAllSync`](https://deno.land/std/streams/read_all.ts?s=readAllSync)
|
||||||
* from
|
* from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/read_all.ts`](https://deno.land/std/streams/read_all.ts)
|
||||||
* instead. `Deno.readAllSync` will be removed in the future.
|
* instead. `Deno.readAllSync` will be removed in the future.
|
||||||
*
|
*
|
||||||
* @category I/O
|
* @category I/O
|
||||||
|
@ -2535,8 +2535,8 @@ declare namespace Deno {
|
||||||
* Write all the content of the array buffer (`arr`) to the writer (`w`).
|
* Write all the content of the array buffer (`arr`) to the writer (`w`).
|
||||||
*
|
*
|
||||||
* @deprecated Use
|
* @deprecated Use
|
||||||
* [`writeAll`](https://deno.land/std/streams/conversion.ts?s=writeAll) from
|
* [`writeAll`](https://deno.land/std/streams/write_all.ts?s=writeAll) from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/write_all.ts`](https://deno.land/std/streams/write_all.ts)
|
||||||
* instead. `Deno.writeAll` will be removed in the future.
|
* instead. `Deno.writeAll` will be removed in the future.
|
||||||
*
|
*
|
||||||
* @category I/O
|
* @category I/O
|
||||||
|
@ -2548,9 +2548,9 @@ declare namespace Deno {
|
||||||
* writer (`w`).
|
* writer (`w`).
|
||||||
*
|
*
|
||||||
* @deprecated Use
|
* @deprecated Use
|
||||||
* [`writeAllSync`](https://deno.land/std/streams/conversion.ts?s=writeAllSync)
|
* [`writeAllSync`](https://deno.land/std/streams/write_all.ts?s=writeAllSync)
|
||||||
* from
|
* from
|
||||||
* [`std/streams/conversion.ts`](https://deno.land/std/streams/conversion.ts)
|
* [`std/streams/write_all.ts`](https://deno.land/std/streams/write_all.ts)
|
||||||
* instead. `Deno.writeAllSync` will be removed in the future.
|
* instead. `Deno.writeAllSync` will be removed in the future.
|
||||||
*
|
*
|
||||||
* @category I/O
|
* @category I/O
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 10834cd64f7ed268c8151ea5b5d3aa4b4f3c036c
|
Subproject commit 13d469a1918fc44d2952c450418303cab34f0ffc
|
|
@ -8,7 +8,7 @@ import {
|
||||||
} from "../test_util/std/path/mod.ts";
|
} from "../test_util/std/path/mod.ts";
|
||||||
export { dirname, fromFileUrl, join, resolve, toFileUrl };
|
export { dirname, fromFileUrl, join, resolve, toFileUrl };
|
||||||
export { existsSync, walk } from "../test_util/std/fs/mod.ts";
|
export { existsSync, walk } from "../test_util/std/fs/mod.ts";
|
||||||
export { TextLineStream } from "../test_util/std/streams/delimiter.ts";
|
export { TextLineStream } from "../test_util/std/streams/text_line_stream.ts";
|
||||||
export { delay } from "../test_util/std/async/delay.ts";
|
export { delay } from "../test_util/std/async/delay.ts";
|
||||||
|
|
||||||
export const ROOT_PATH = dirname(dirname(fromFileUrl(import.meta.url)));
|
export const ROOT_PATH = dirname(dirname(fromFileUrl(import.meta.url)));
|
||||||
|
|
|
@ -33,7 +33,7 @@ import {
|
||||||
} from "./wpt/utils.ts";
|
} from "./wpt/utils.ts";
|
||||||
import { pooledMap } from "../test_util/std/async/pool.ts";
|
import { pooledMap } from "../test_util/std/async/pool.ts";
|
||||||
import { blue, bold, green, red, yellow } from "../test_util/std/fmt/colors.ts";
|
import { blue, bold, green, red, yellow } from "../test_util/std/fmt/colors.ts";
|
||||||
import { writeAll, writeAllSync } from "../test_util/std/streams/conversion.ts";
|
import { writeAll, writeAllSync } from "../test_util/std/streams/write_all.ts";
|
||||||
import { saveExpectation } from "./wpt/utils.ts";
|
import { saveExpectation } from "./wpt/utils.ts";
|
||||||
|
|
||||||
const command = Deno.args[0];
|
const command = Deno.args[0];
|
||||||
|
|
Loading…
Reference in a new issue