Skip to content

Commit d6862c1

Browse files
committed
build(project): refactored connection management
1 parent 702c12b commit d6862c1

27 files changed

+1677
-1237
lines changed

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@
147147
"require-await": "off",
148148
"@typescript-eslint/require-await": ["error"],
149149
"@typescript-eslint/restrict-plus-operands": ["error", {
150-
"checkCompoundAssignments": true
150+
"checkCompoundAssignments": true,
151+
"allowAny": true
151152
}],
152153
"@typescript-eslint/unified-signatures": ["error"],
153154
"semi": "off",

.husky/commit-msg

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
npx --no-install commitlint --edit "$1"
5+
npm run lint && npm run typecheck
6+

.husky/pre-commit

-4
This file was deleted.

.vscode/launch.json

+10
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
"outFiles": [
3434
"${workspaceFolder}/{lib,examples}/*.js"
3535
]
36+
},
37+
{
38+
"type": "node",
39+
"request": "launch",
40+
"name": "Reconnection",
41+
"program": "${workspaceFolder}/src/examples/reconnection.ts",
42+
"sourceMaps": true,
43+
"outFiles": [
44+
"${workspaceFolder}/{lib,examples}/*.js"
45+
]
3646
}
3747
]
3848
}

CHANGES.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changes Logs
22

3+
## v2.0.0
4+
5+
- fix(connection): refactored connection management
6+
7+
- Not use internal reconnection anymore. Instead, if a connection dead, redis.js will try
8+
reconnect only when a command requested. *Except for subscriber clients.*
9+
- Disabled command timeout **by default**.
10+
11+
- fix(protocol): fixed empty list like `*-1<CR><LF>`.
12+
- fix(command): fixed command `MOVE`.
13+
- feat(command): added command `COPY` supports.
14+
- feat(command): added command `SWAPDB` supports.
15+
- feat(command): added command `TIME` supports with methods `time`, `secTime`, `msTime`, `usTime`.
16+
- feat(command): added ACL user supports to command `AUTH`.
17+
318
## v1.2.4
419

520
- feat(command): added command `HRANDFILED` supports.

commitlint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
'client',
1414
'pipeline',
1515
'subscriber',
16+
'protocol',
1617
'lint',
1718
'docs',
1819
'deps',

0 commit comments

Comments
 (0)