Skip to content

Commit 343720c

Browse files
committed
chore: Bump std to 0.141.0
1 parent fa759bb commit 343720c

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

deps.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
export * as base64 from "https://deno.land/std@0.121.0/encoding/base64.ts";
2-
export * as hex from "https://deno.land/std@0.121.0/encoding/hex.ts";
3-
export * as date from "https://deno.land/std@0.121.0/datetime/mod.ts";
1+
export * as base64 from "https://deno.land/std@0.141.0/encoding/base64.ts";
2+
export * as hex from "https://deno.land/std@0.141.0/encoding/hex.ts";
3+
export * as date from "https://deno.land/std@0.141.0/datetime/mod.ts";
44
export {
55
BufReader,
66
BufWriter,
7-
} from "https://deno.land/std@0.121.0/io/buffer.ts";
8-
export { copy } from "https://deno.land/std@0.121.0/bytes/mod.ts";
9-
export { crypto } from "https://deno.land/std@0.121.0/crypto/mod.ts";
7+
} from "https://deno.land/std@0.141.0/io/buffer.ts";
8+
export { copy } from "https://deno.land/std@0.141.0/bytes/mod.ts";
9+
export { crypto } from "https://deno.land/std@0.141.0/crypto/mod.ts";
1010
export {
1111
type Deferred,
1212
deferred,
1313
delay,
14-
} from "https://deno.land/std@0.121.0/async/mod.ts";
15-
export { bold, yellow } from "https://deno.land/std@0.121.0/fmt/colors.ts";
14+
} from "https://deno.land/std@0.141.0/async/mod.ts";
15+
export { bold, yellow } from "https://deno.land/std@0.141.0/fmt/colors.ts";
1616
export {
1717
fromFileUrl,
1818
isAbsolute,
1919
join as joinPath,
20-
} from "https://deno.land/std@0.121.0/path/mod.ts";
20+
} from "https://deno.land/std@0.141.0/path/mod.ts";

tests/connection_params_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Deno.test("Throws on connection string with invalid driver", function () {
222222
createParams(
223223
"somedriver://some_user@some_host:10101/deno_postgres",
224224
),
225-
undefined,
225+
Error,
226226
"Supplied DSN has invalid driver: somedriver.",
227227
);
228228
});

tests/connection_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Deno.test("Exposes session PID", async () => {
276276
await client.connect();
277277

278278
try {
279-
const { rows } = await client.queryObject<{ pid: string }>(
279+
const { rows } = await client.queryObject<{ pid: number }>(
280280
"SELECT PG_BACKEND_PID() AS PID",
281281
);
282282
assertEquals(client.session.pid, rows[0].pid);
@@ -544,7 +544,7 @@ Deno.test("Attempts reconnection on disconnection", async function () {
544544
);
545545
assertEquals(client.connected, false);
546546

547-
const { rows: result_1 } = await client.queryObject<{ pid: string }>({
547+
const { rows: result_1 } = await client.queryObject<{ pid: number }>({
548548
text: "SELECT PG_BACKEND_PID() AS PID",
549549
fields: ["pid"],
550550
});

tests/data_types_test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -767,12 +767,12 @@ Deno.test(
767767
new Date().toISOString().slice(0, -1),
768768
];
769769

770-
const result = await client.queryArray<[[Timestamp, Timestamp]]>(
770+
const { rows: result } = await client.queryArray<[[Date, Date]]>(
771771
"SELECT ARRAY[$1::TIMESTAMP, $2]",
772772
timestamps,
773773
);
774774

775-
assertEquals(result.rows[0][0], timestamps.map((x) => new Date(x)));
775+
assertEquals(result[0][0], timestamps.map((x) => new Date(x)));
776776
}),
777777
);
778778

@@ -943,13 +943,13 @@ Deno.test(
943943
await client.queryArray(`SET SESSION TIMEZONE TO '${timezone}'`);
944944
const dates = ["2020-01-01", date.format(new Date(), "yyyy-MM-dd")];
945945

946-
const result = await client.queryArray<[Timestamp, Timestamp]>(
946+
const { rows: result } = await client.queryArray<[[Date, Date]]>(
947947
"SELECT ARRAY[$1::DATE, $2]",
948948
dates,
949949
);
950950

951951
assertEquals(
952-
result.rows[0][0],
952+
result[0][0],
953953
dates.map((d) => date.parse(d, "yyyy-MM-dd")),
954954
);
955955
}),

tests/test_deps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export {
66
assertObjectMatch,
77
assertRejects,
88
assertThrows,
9-
} from "https://deno.land/std@0.121.0/testing/asserts.ts";
10-
export * as streams from "https://deno.land/std@0.121.0/streams/conversion.ts";
9+
} from "https://deno.land/std@0.141.0/testing/asserts.ts";
10+
export * as streams from "https://deno.land/std@0.141.0/streams/conversion.ts";

0 commit comments

Comments
 (0)