Skip to content

Commit 54367b0

Browse files
authored
1 parent 2f8afea commit 54367b0

File tree

10 files changed

+21
-15
lines changed

10 files changed

+21
-15
lines changed

.denov

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.29.0
1+
v0.31.0

modules-lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"https://deno.land/std": {
3-
"version": "@v0.29.0",
3+
"version": "@v0.31.0",
44
"modules": [
55
"/util/async.ts",
66
"/testing/mod.ts",

modules.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"https://deno.land/std": {
3-
"version": "@v0.29.0",
3+
"version": "@v0.31.0",
44
"modules": [
55
"/util/async.ts",
66
"/testing/mod.ts",

pipeline_test.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,19 @@ test("pipeline in concurrent", async () => {
9191
"OK", //set(a)
9292
"OK", //set(b)
9393
"OK", //set(c)
94-
[["status", "OK"], ["status", "OK"], ["status", "OK"]], //flush()
94+
[
95+
["status", "OK"],
96+
["status", "OK"],
97+
["status", "OK"]
98+
], //flush()
9599
"OK", // get(a)
96100
"OK", // get(b)
97101
"OK", //get(c)
98-
[["bulk", "a"], ["bulk", "b"], ["bulk", "c"]] //flush()
102+
[
103+
["bulk", "a"],
104+
["bulk", "b"],
105+
["bulk", "c"]
106+
] //flush()
99107
]);
100108
});
101109

redis.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import DialOptions = Deno.DialOptions;
2-
31
type Reader = Deno.Reader;
42
type Writer = Deno.Writer;
53
type Closer = Deno.Closer;
@@ -1576,16 +1574,16 @@ export async function connect({
15761574
tls,
15771575
db
15781576
}: RedisConnectOptions): Promise<Redis> {
1579-
const dialOpts: DialOptions = {
1577+
const dialOpts: Deno.ConnectOptions = {
15801578
hostname,
15811579
port: prasePortLike(port)
15821580
};
15831581
if (!Number.isSafeInteger(dialOpts.port)) {
15841582
throw new Error("deno-redis: opts.port is invalid");
15851583
}
15861584
const conn: Deno.Conn = tls
1587-
? await Deno.dialTLS(dialOpts)
1588-
: await Deno.dial(dialOpts);
1585+
? await Deno.connectTLS(dialOpts)
1586+
: await Deno.connect(dialOpts);
15891587
const client = await create(conn, conn, conn);
15901588
if (db) {
15911589
await client.select(db);
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/std@v0.29.0/fmt/colors.ts";
1+
export * from "https://deno.land/std@v0.31.0/fmt/colors.ts";
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/std@v0.29.0/io/bufio.ts";
1+
export * from "https://deno.land/std@v0.31.0/io/bufio.ts";
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/std@v0.29.0/testing/asserts.ts";
1+
export * from "https://deno.land/std@v0.31.0/testing/asserts.ts";
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/std@v0.29.0/testing/mod.ts";
1+
export * from "https://deno.land/std@v0.31.0/testing/mod.ts";
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/std@v0.29.0/util/async.ts";
1+
export * from "https://deno.land/std@v0.31.0/util/async.ts";

0 commit comments

Comments
 (0)