Revert "chore: update deno_std submodule (#20994)" (#21001)

This reverts commit 6e2abb2b13.
This commit is contained in:
Bartek Iwańczuk 2023-10-28 03:24:37 +02:00 committed by GitHub
parent 4c6b986f17
commit e7abb705f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
110 changed files with 207 additions and 139 deletions

View file

@ -544,7 +544,7 @@ declare namespace Deno {
* Examples:
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test({
* name: "inherit",
@ -559,7 +559,7 @@ declare namespace Deno {
* ```
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test({
* name: "true",
@ -574,7 +574,7 @@ declare namespace Deno {
* ```
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test({
* name: "false",
@ -589,7 +589,7 @@ declare namespace Deno {
* ```
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test({
* name: "localhost:8080",
@ -821,7 +821,7 @@ declare namespace Deno {
* `fn` can be async if required.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test({
* name: "example test",
@ -858,7 +858,7 @@ declare namespace Deno {
* `fn` can be async if required.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test("My test description", () => {
* assertEquals("hello", "hello");
@ -884,7 +884,7 @@ declare namespace Deno {
* `fn` can be async if required. Declared function must have a name.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test(function myTestName() {
* assertEquals("hello", "hello");
@ -907,7 +907,7 @@ declare namespace Deno {
* `fn` can be async if required.
*
* ```ts
* import {assert, fail, assertEquals} from "https://deno.land/std/assert/mod.ts";
* import {assert, fail, assertEquals} from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test("My test description", { permissions: { read: true } }, (): void => {
* assertEquals("hello", "hello");
@ -934,7 +934,7 @@ declare namespace Deno {
* `fn` can be async if required.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test(
* {
@ -972,7 +972,7 @@ declare namespace Deno {
* `fn` can be async if required. Declared function must have a name.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test(
* { permissions: { read: true } },
@ -1196,7 +1196,7 @@ declare namespace Deno {
* will await resolution to consider the test complete.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.bench({
* name: "example test",
@ -1235,7 +1235,7 @@ declare namespace Deno {
* will await resolution to consider the test complete.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.bench("My test description", () => {
* assertEquals("hello", "hello");
@ -1263,7 +1263,7 @@ declare namespace Deno {
* will await resolution to consider the test complete.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.bench(function myTestName() {
* assertEquals("hello", "hello");
@ -1288,7 +1288,7 @@ declare namespace Deno {
* will await resolution to consider the test complete.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.bench(
* "My test description",
@ -1325,7 +1325,7 @@ declare namespace Deno {
* will await resolution to consider the test complete.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.bench(
* { name: "My test description", permissions: { read: true } },
@ -1359,7 +1359,7 @@ declare namespace Deno {
* will await resolution to consider the test complete.
*
* ```ts
* import { assertEquals } from "https://deno.land/std/assert/mod.ts";
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
*
* Deno.bench(
* { permissions: { read: true } },
@ -2420,7 +2420,7 @@ declare namespace Deno {
/** Resolves to a {@linkcode Deno.FileInfo} for the file.
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
*
* const file = await Deno.open("hello.txt");
* const fileInfo = await file.stat();
@ -2432,7 +2432,7 @@ declare namespace Deno {
/** Synchronously returns a {@linkcode Deno.FileInfo} for the file.
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
*
* const file = Deno.openSync("hello.txt")
* const fileInfo = file.statSync();
@ -3485,7 +3485,7 @@ declare namespace Deno {
* of what it points to.
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
* const fileInfo = await Deno.lstat("hello.txt");
* assert(fileInfo.isFile);
* ```
@ -3502,7 +3502,7 @@ declare namespace Deno {
* returned instead of what it points to.
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
* const fileInfo = Deno.lstatSync("hello.txt");
* assert(fileInfo.isFile);
* ```
@ -3518,7 +3518,7 @@ declare namespace Deno {
* always follow symlinks.
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
* const fileInfo = await Deno.stat("hello.txt");
* assert(fileInfo.isFile);
* ```
@ -3534,7 +3534,7 @@ declare namespace Deno {
* `path`. Will always follow symlinks.
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
* const fileInfo = Deno.statSync("hello.txt");
* assert(fileInfo.isFile);
* ```
@ -4762,7 +4762,7 @@ declare namespace Deno {
/** Revokes a permission, and resolves to the state of the permission.
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
*
* const status = await Deno.permissions.revoke({ name: "run" });
* assert(status.state !== "granted")
@ -4773,7 +4773,7 @@ declare namespace Deno {
/** Revokes a permission, and returns the state of the permission.
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
*
* const status = Deno.permissions.revokeSync({ name: "run" });
* assert(status.state !== "granted")
@ -4851,14 +4851,14 @@ declare namespace Deno {
* ### Revoking
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
*
* const status = await Deno.permissions.revoke({ name: "run" });
* assert(status.state !== "granted")
* ```
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
*
* const status = Deno.permissions.revokeSync({ name: "run" });
* assert(status.state !== "granted")
@ -5168,7 +5168,7 @@ declare namespace Deno {
* Returns a `Deno.FileInfo` for the given file stream.
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
*
* const file = await Deno.open("file.txt", { read: true });
* const fileInfo = await Deno.fstat(file.rid);
@ -5184,7 +5184,7 @@ declare namespace Deno {
* stream.
*
* ```ts
* import { assert } from "https://deno.land/std/assert/mod.ts";
* import { assert } from "https://deno.land/std/testing/asserts.ts";
*
* const file = Deno.openSync("file.txt", { read: true });
* const fileInfo = Deno.fstatSync(file.rid);