Skip to content

Commit 9ee90a3

Browse files
authored
bump: deno@v1.7.0 (#180)
1 parent c49ee47 commit 9ee90a3

8 files changed

Lines changed: 23 additions & 18 deletions

File tree

β€Ž.denovβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.6.3
1+
v1.7.0

β€ŽREADME.mdβ€Ž

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ needs `--allow-net` privilege
1717
import { connect } from "https://deno.land/x/redis/mod.ts";
1818
const redis = await connect({
1919
hostname: "127.0.0.1",
20-
port: 6379
20+
port: 6379,
2121
});
2222
const ok = await redis.set("hoge", "fuga");
2323
const fuga = await redis.get("hoge");
@@ -27,7 +27,7 @@ const fuga = await redis.get("hoge");
2727

2828
```ts
2929
const sub = await redis.subscribe("channel");
30-
(async function() {
30+
(async function () {
3131
for await (const { channel, message } of sub.receive()) {
3232
// on message
3333
}
@@ -67,8 +67,9 @@ await redis.nodes();
6767

6868
### Retriable connection
6969

70-
By default, a client's connection will throw an error if the server dies or the network becomes unavailable.
71-
A connection can be made "retriable" by setting the value `maxRetryCount` when connecting a new client.
70+
By default, a client's connection will throw an error if the server dies or the
71+
network becomes unavailable. A connection can be made "retriable" by setting the
72+
value `maxRetryCount` when connecting a new client.
7273

7374
```ts
7475
const redis = await connect({ ...options, maxRetryCount: 10 });
@@ -77,7 +78,8 @@ const redis = await connect({ ...options, maxRetryCount: 10 });
7778
```
7879

7980
The property is set automatically to `10` when creating a subscriber client.
80-
After a reconnection succeeds, the client will subscribe again to all the channels and patterns.
81+
After a reconnection succeeds, the client will subscribe again to all the
82+
channels and patterns.
8183

8284
```ts
8385
const redis = await connect(options);
@@ -89,8 +91,8 @@ const subscriberClient = await redis.subscribe("channel");
8991

9092
### Execute raw commands
9193

92-
`redis.executor` is raw level [redis protocol](https://redis.io/topics/protocol) executor.
93-
You can send raw redis commands and receive replies.
94+
`redis.executor` is raw level [redis protocol](https://redis.io/topics/protocol)
95+
executor. You can send raw redis commands and receive replies.
9496

9597
```ts
9698
await redis.executor.exec("SET", "redis", "nice"); // => ["status", "OK"]
@@ -104,7 +106,7 @@ https://redis.io/topics/pipelining
104106
```ts
105107
const redis = await connect({
106108
hostname: "127.0.0.1",
107-
port: 6379
109+
port: 6379,
108110
});
109111
const pl = redis.pipeline();
110112
pl.ping();
@@ -119,10 +121,13 @@ const replies = await pl.flush();
119121

120122
### TxPipeline (pipeline with MULTI/EXEC)
121123

122-
We recommend to use `tx()` instead of `multi()/exec()` for transactional operation.
123-
`MULTI/EXEC` are potentially stateful operation so that operation's atomicity is guaranteed but redis's state may change between MULTI and EXEC.
124+
We recommend to use `tx()` instead of `multi()/exec()` for transactional
125+
operation. `MULTI/EXEC` are potentially stateful operation so that operation's
126+
atomicity is guaranteed but redis's state may change between MULTI and EXEC.
124127

125-
`WATCH` is designed for these problems. You can ignore it by using TxPipeline because pipelined MULTI/EXEC commands are strictly executed in order at the time and no changes will happen during execution.
128+
`WATCH` is designed for these problems. You can ignore it by using TxPipeline
129+
because pipelined MULTI/EXEC commands are strictly executed in order at the time
130+
and no changes will happen during execution.
126131

127132
See detail https://redis.io/topics/transactions
128133

β€Žmodules-lock.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"https://deno.land/std": {
3-
"version": "@0.83.0",
3+
"version": "@0.84.0",
44
"modules": [
55
"/async/mod.ts",
66
"/testing/asserts.ts",

β€Žmodules.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"https://deno.land/std": {
3-
"version": "@0.83.0",
3+
"version": "@0.84.0",
44
"modules": [
55
"/async/mod.ts",
66
"/testing/asserts.ts",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/std@0.83.0/async/mod.ts";
1+
export * from "https://deno.land/std@0.84.0/async/mod.ts";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/std@0.83.0/fmt/colors.ts";
1+
export * from "https://deno.land/std@0.84.0/fmt/colors.ts";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/std@0.83.0/io/bufio.ts";
1+
export * from "https://deno.land/std@0.84.0/io/bufio.ts";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/std@0.83.0/testing/asserts.ts";
1+
export * from "https://deno.land/std@0.84.0/testing/asserts.ts";

0 commit comments

Comments
Β (0)