@midwayjs/redis 2.13.2 → 2.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +1 -1
- package/dist/manager.js +3 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.14.6](https://github.com/midwayjs/midway/compare/v2.14.5...v2.14.6) (2022-02-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @midwayjs/redis
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [2.14.0](https://github.com/midwayjs/midway/compare/v2.13.5...v2.14.0) (2021-12-06)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([5d5f299](https://github.com/midwayjs/midway/commit/5d5f2992be116ca71b21f01fd782e3a2ac072496))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [2.13.4](https://github.com/midwayjs/midway/compare/v2.13.3...v2.13.4) (2021-10-21)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @midwayjs/redis
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [2.13.3](https://github.com/midwayjs/midway/compare/v2.13.2...v2.13.3) (2021-09-28)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @midwayjs/redis
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [2.13.2](https://github.com/midwayjs/midway/compare/v2.13.1...v2.13.2) (2021-09-09)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @midwayjs/redis
|
package/README.md
CHANGED
package/dist/manager.js
CHANGED
|
@@ -25,8 +25,7 @@ let RedisServiceFactory = class RedisServiceFactory extends core_1.ServiceFactor
|
|
|
25
25
|
config.nodes.forEach(client => {
|
|
26
26
|
assert(client.host &&
|
|
27
27
|
client.port &&
|
|
28
|
-
client.
|
|
29
|
-
client.db !== undefined, `[@midwayjs/redis] 'host: ${client.host}', 'port: ${client.port}', 'password: ${client.password}', 'db: ${client.db}' are required on config`);
|
|
28
|
+
`[@midwayjs/redis] 'host: ${client.host}', 'port: ${client.port}' are required on config`);
|
|
30
29
|
});
|
|
31
30
|
this.logger.info('[@midwayjs/redis] cluster connecting');
|
|
32
31
|
client = new Redis.Cluster(config.nodes, config);
|
|
@@ -36,16 +35,12 @@ let RedisServiceFactory = class RedisServiceFactory extends core_1.ServiceFactor
|
|
|
36
35
|
config.sentinels.forEach(sentinel => {
|
|
37
36
|
assert(sentinel.host && sentinel.port, `[@midwayjs/redis] 'host: ${sentinel.host}', 'port: ${sentinel.port}' are required on config`);
|
|
38
37
|
});
|
|
39
|
-
assert(config.name && config.password !== undefined && config.db !== undefined, `[@midwayjs/redis] 'name of master: ${config.name}', 'password: ${config.password}', 'db: ${config.db}' are required on config`);
|
|
40
38
|
this.logger.info('[@midwayjs/redis] sentinel connecting start');
|
|
41
39
|
client = new Redis(config);
|
|
42
40
|
}
|
|
43
41
|
else {
|
|
44
|
-
assert(config.host &&
|
|
45
|
-
|
|
46
|
-
config.password !== undefined &&
|
|
47
|
-
config.db !== undefined, `[@midwayjs/redis] 'host: ${config.host}', 'port: ${config.port}', 'password: ${config.password}', 'db: ${config.db}' are required on config`);
|
|
48
|
-
this.logger.info('[@midwayjs/redis] server connecting redis://:***@%s:%s/%s', config.host, config.port, config.db);
|
|
42
|
+
assert(config.host && config.port, `[@midwayjs/redis] 'host: ${config.host}', 'port: ${config.port}' are required on config`);
|
|
43
|
+
this.logger.info('[@midwayjs/redis] server connecting redis://:***@%s:%s/%s', config.host, config.port);
|
|
49
44
|
client = new Redis(config);
|
|
50
45
|
}
|
|
51
46
|
client.on('connect', () => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/redis",
|
|
3
3
|
"description": "midway redis component",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.14.6",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"dist/**/*.d.ts"
|
|
10
10
|
],
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@midwayjs/core": "^2.
|
|
13
|
-
"@midwayjs/decorator": "^2.
|
|
14
|
-
"@midwayjs/mock": "^2.
|
|
12
|
+
"@midwayjs/core": "^2.14.6",
|
|
13
|
+
"@midwayjs/decorator": "^2.14.0",
|
|
14
|
+
"@midwayjs/mock": "^2.14.6",
|
|
15
15
|
"@types/ioredis": "^4.27.1"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "https://github.com/midwayjs/midway.git"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "9041633a98444568643bb5a1e8f10bb58e1f1b19"
|
|
37
37
|
}
|