Skip to content

Commit d97535e

Browse files
authored
chore(upgrade): deno/[email protected], [email protected] (#25)
1 parent b3b7bc6 commit d97535e

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

dev_deps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ export {
22
assert,
33
assertEquals,
44
assertObjectMatch,
5+
assertRejects,
56
assertStringIncludes,
6-
assertThrowsAsync,
7-
} from "https://deno.land/[email protected]/testing/asserts.ts";
7+
} from "https://deno.land/[email protected]/testing/asserts.ts";

src/cli/deps.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export { UpgradeCommand } from "https://deno.land/x/[email protected]/command/upgra
33
export { DenoLandProvider } from "https://deno.land/x/[email protected]/command/upgrade/provider/deno_land.ts";
44
export {
55
ValidationError,
6-
} from "https://deno.land/x/cliffy@v0.20.1/command/_errors.ts";
7-
export { copy } from "https://deno.land/std@0.114.0/io/mod.ts";
6+
} from "https://deno.land/x/cliffy@v0.22.2/command/_errors.ts";
7+
export { copy } from "https://deno.land/std@0.130.0/io/mod.ts";
88
export { tokens } from "https://deno.land/x/[email protected]/mod.ts";
9-
export { parse } from "https://deno.land/std@0.114.0/flags/mod.ts";
9+
export { parse } from "https://deno.land/std@0.130.0/flags/mod.ts";

src/runtime/deps.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
export * as async from "https://deno.land/std@0.114.0/async/mod.ts";
1+
export * as async from "https://deno.land/std@0.130.0/async/mod.ts";
22
export type {
33
DebouncedFunction,
44
Deferred,
55
DelayOptions,
6-
} from "https://deno.land/std@0.114.0/async/mod.ts";
7-
export * as path from "https://deno.land/std@0.114.0/path/mod.ts";
6+
} from "https://deno.land/std@0.130.0/async/mod.ts";
7+
export * as path from "https://deno.land/std@0.130.0/path/mod.ts";
88
export type {
99
FormatInputPathObject,
1010
GlobOptions,
1111
GlobToRegExpOptions,
1212
ParsedPath,
13-
} from "https://deno.land/std@0.114.0/path/mod.ts";
14-
export * as io from "https://deno.land/std@0.114.0/io/mod.ts";
13+
} from "https://deno.land/std@0.130.0/path/mod.ts";
14+
export * as io from "https://deno.land/std@0.130.0/io/mod.ts";
1515
export type {
1616
ReadableStreamFromReaderOptions as IOReadableStreamFromReaderOptions,
1717
ReadLineResult,
1818
WritableStreamFromWriterOptions as IOWritableStreamFromWriterOptions,
19-
} from "https://deno.land/std@0.114.0/io/mod.ts";
20-
export * as streams from "https://deno.land/std@0.114.0/streams/mod.ts";
19+
} from "https://deno.land/std@0.130.0/io/mod.ts";
20+
export * as streams from "https://deno.land/std@0.130.0/streams/mod.ts";
2121
export type {
2222
ReadableStreamFromReaderOptions,
2323
WritableStreamFromWriterOptions,
24-
} from "https://deno.land/std@0.114.0/streams/mod.ts";
25-
export * as fs from "https://deno.land/std@0.114.0/fs/mod.ts";
24+
} from "https://deno.land/std@0.130.0/streams/mod.ts";
25+
export * as fs from "https://deno.land/std@0.130.0/fs/mod.ts";
2626
export type {
2727
CopyOptions,
2828
ExpandGlobOptions,
2929
WalkEntry,
3030
WalkOptions,
31-
} from "https://deno.land/std@0.114.0/fs/mod.ts";
32-
export * as log from "https://deno.land/std@0.114.0/log/mod.ts";
31+
} from "https://deno.land/std@0.130.0/fs/mod.ts";
32+
export * as log from "https://deno.land/std@0.130.0/log/mod.ts";
3333
export type {
3434
FormatterFunction,
3535
HandlerOptions,
3636
LevelName,
3737
LogConfig,
3838
LogMode,
39-
} from "https://deno.land/std@0.114.0/log/mod.ts";
40-
export * as flags from "https://deno.land/std@0.114.0/flags/mod.ts";
39+
} from "https://deno.land/std@0.130.0/log/mod.ts";
40+
export * as flags from "https://deno.land/std@0.130.0/flags/mod.ts";
4141
export type {
4242
ArgParsingOptions,
4343
Args,
44-
} from "https://deno.land/std@0.114.0/flags/mod.ts";
44+
} from "https://deno.land/std@0.130.0/flags/mod.ts";
4545
export { colors } from "https://deno.land/x/[email protected]/ansi/colors.ts";
4646
export { default as shq } from "https://esm.sh/[email protected]";

src/runtime/process_error_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assert,
33
assertEquals,
44
assertObjectMatch,
5-
assertThrowsAsync,
5+
assertRejects,
66
} from "../../dev_deps.ts";
77
import { $, ProcessError } from "./mod.ts";
88

@@ -46,14 +46,14 @@ Deno.test({
4646
Deno.test({
4747
name: "[process error] should throw an instance of error",
4848
async fn() {
49-
await assertThrowsAsync(() => $`exit 1`, Error);
49+
await assertRejects(() => $`exit 1`, Error);
5050
},
5151
});
5252

5353
Deno.test({
5454
name: "[process error] should throw an instance of process error",
5555
async fn() {
56-
await assertThrowsAsync(() => $`exit 1`, ProcessError);
56+
await assertRejects(() => $`exit 1`, ProcessError);
5757
},
5858
});
5959

test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import {
44
assert,
55
assertEquals,
6+
assertRejects,
67
assertStringIncludes,
7-
assertThrowsAsync,
88
} from "./dev_deps.ts";
99

1010
import { $, $e, $o, $s, cd, path, ProcessError } from "./mod.ts";
@@ -83,7 +83,7 @@ Deno.test("create a directory with a space in the name", async () => {
8383
});
8484

8585
Deno.test("subprocess command failure throws a ProcessError", async () => {
86-
await assertThrowsAsync(async () => await $`somefakebinary`, ProcessError);
86+
await assertRejects(async () => await $`somefakebinary`, ProcessError);
8787
});
8888

8989
Deno.test("cwd of the parent process is always the starting point for calls to cd", async () => {

0 commit comments

Comments
 (0)