@midwayjs/redis 2.13.1 → 2.14.0

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 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.0](https://github.com/midwayjs/midway/compare/v2.13.5...v2.14.0) (2021-12-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * 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))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.13.4](https://github.com/midwayjs/midway/compare/v2.13.3...v2.13.4) (2021-10-21)
18
+
19
+ **Note:** Version bump only for package @midwayjs/redis
20
+
21
+
22
+
23
+
24
+
25
+ ## [2.13.3](https://github.com/midwayjs/midway/compare/v2.13.2...v2.13.3) (2021-09-28)
26
+
27
+ **Note:** Version bump only for package @midwayjs/redis
28
+
29
+
30
+
31
+
32
+
33
+ ## [2.13.2](https://github.com/midwayjs/midway/compare/v2.13.1...v2.13.2) (2021-09-09)
34
+
35
+ **Note:** Version bump only for package @midwayjs/redis
36
+
37
+
38
+
39
+
40
+
6
41
  ## [2.13.1](https://github.com/midwayjs/midway/compare/v2.13.0...v2.13.1) (2021-09-08)
7
42
 
8
43
  **Note:** Version bump only for package @midwayjs/redis
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  this is a sub package for midway.
7
7
 
8
- Document: [https://midwayjs.org/midway](https://midwayjs.org/midway)
8
+ Document: [https://midwayjs.org](https://midwayjs.org)
9
9
 
10
10
  ## License
11
11
 
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.password !== undefined &&
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
- config.port &&
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.13.1",
4
+ "version": "2.14.0",
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.1",
13
- "@midwayjs/decorator": "^2.13.0",
14
- "@midwayjs/mock": "^2.13.1",
12
+ "@midwayjs/core": "^2.14.0",
13
+ "@midwayjs/decorator": "^2.14.0",
14
+ "@midwayjs/mock": "^2.14.0",
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": "d50576713e723aef47f1f7464eeecae82e605874"
36
+ "gitHead": "5fd716b0e731162d8e9f0931790fde7402fb83de"
37
37
  }