@midwayjs/consul 3.0.0-beta.6 → 3.0.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/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
 
@@ -22,7 +22,7 @@ export declare class ConsulConfiguration implements ILifeCycle {
22
22
  * @param app 应用 App
23
23
  */
24
24
  registerConsul(container: IMidwayContainer, app: IMidwayApplication): Promise<void>;
25
- onReady(container: IMidwayContainer, app?: IMidwayApplication): Promise<void>;
25
+ onServerReady(container: IMidwayContainer, app?: IMidwayApplication): Promise<void>;
26
26
  onStop(container: IMidwayContainer, app?: IMidwayApplication): Promise<void>;
27
27
  }
28
28
  //# sourceMappingURL=configuration.d.ts.map
@@ -58,7 +58,7 @@ let ConsulConfiguration = class ConsulConfiguration {
58
58
  await this.consulProvider.registerService(this.consulRegisterConfig);
59
59
  }
60
60
  }
61
- async onReady(container, app) {
61
+ async onServerReady(container, app) {
62
62
  await this.registerConsul(container, app);
63
63
  }
64
64
  async onStop(container, app) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/consul",
3
3
  "description": "midway consul",
4
- "version": "3.0.0-beta.6",
4
+ "version": "3.0.0",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
7
7
  "files": [
@@ -9,13 +9,13 @@
9
9
  "dist/**/*.d.ts"
10
10
  ],
11
11
  "devDependencies": {
12
- "@midwayjs/core": "^3.0.0-beta.6",
13
- "@midwayjs/decorator": "^3.0.0-beta.6",
14
- "@midwayjs/koa": "^3.0.0-beta.6",
15
- "@midwayjs/mock": "^3.0.0-beta.6",
16
- "@types/consul": "^0.23.34",
17
- "@types/sinon": "^10.0.2",
18
- "nock": "^13.0.11"
12
+ "@midwayjs/core": "^3.0.0",
13
+ "@midwayjs/decorator": "^3.0.0",
14
+ "@midwayjs/koa": "^3.0.0",
15
+ "@midwayjs/mock": "^3.0.0",
16
+ "@types/consul": "0.40.0",
17
+ "@types/sinon": "10.0.8",
18
+ "nock": "13.2.2"
19
19
  },
20
20
  "dependencies": {
21
21
  "consul": "^0.40.0"
@@ -27,8 +27,8 @@
27
27
  "license": "MIT",
28
28
  "scripts": {
29
29
  "build": "tsc",
30
- "test": "node --require=ts-node/register ../../node_modules/.bin/jest",
31
- "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --coverage --forceExit",
30
+ "test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
31
+ "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit",
32
32
  "ci": "npm run test",
33
33
  "lint": "mwts check"
34
34
  },
@@ -39,5 +39,5 @@
39
39
  "type": "git",
40
40
  "url": "https://github.com/midwayjs/midway.git"
41
41
  },
42
- "gitHead": "e4595d30b369e36bef21b36f2b3737d8bc2f802d"
42
+ "gitHead": "55c26029bccf7bbb739fa1597e8f418dafa2caa0"
43
43
  }
package/CHANGELOG.md DELETED
@@ -1,261 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
7
-
8
- **Note:** Version bump only for package @midwayjs/consul
9
-
10
-
11
-
12
-
13
-
14
- # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
15
-
16
- **Note:** Version bump only for package @midwayjs/consul
17
-
18
-
19
-
20
-
21
-
22
- # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
23
-
24
- **Note:** Version bump only for package @midwayjs/consul
25
-
26
-
27
-
28
-
29
-
30
- # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
31
-
32
-
33
- ### Features
34
-
35
- * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
36
-
37
-
38
-
39
-
40
-
41
- # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
42
-
43
- **Note:** Version bump only for package @midwayjs/consul
44
-
45
-
46
-
47
-
48
-
49
- # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
50
-
51
- **Note:** Version bump only for package @midwayjs/consul
52
-
53
-
54
-
55
-
56
-
57
- ## [2.12.3](https://github.com/midwayjs/midway/compare/v2.12.2...v2.12.3) (2021-08-09)
58
-
59
- **Note:** Version bump only for package @midwayjs/consul
60
-
61
-
62
-
63
-
64
-
65
- ## [2.12.1](https://github.com/midwayjs/midway/compare/v2.12.0...v2.12.1) (2021-08-01)
66
-
67
- **Note:** Version bump only for package @midwayjs/consul
68
-
69
-
70
-
71
-
72
-
73
- # [2.12.0](https://github.com/midwayjs/midway/compare/v2.11.7...v2.12.0) (2021-07-30)
74
-
75
- **Note:** Version bump only for package @midwayjs/consul
76
-
77
-
78
-
79
-
80
-
81
- ## [2.11.6](https://github.com/midwayjs/midway/compare/v2.11.5...v2.11.6) (2021-07-16)
82
-
83
- **Note:** Version bump only for package @midwayjs/consul
84
-
85
-
86
-
87
-
88
-
89
- ## [2.11.5](https://github.com/midwayjs/midway/compare/v2.11.4...v2.11.5) (2021-07-15)
90
-
91
- **Note:** Version bump only for package @midwayjs/consul
92
-
93
-
94
-
95
-
96
-
97
- ## [2.11.4](https://github.com/midwayjs/midway/compare/v2.11.3...v2.11.4) (2021-07-06)
98
-
99
- **Note:** Version bump only for package @midwayjs/consul
100
-
101
-
102
-
103
-
104
-
105
- ## [2.11.3](https://github.com/midwayjs/midway/compare/v2.11.2...v2.11.3) (2021-07-02)
106
-
107
- **Note:** Version bump only for package @midwayjs/consul
108
-
109
-
110
-
111
-
112
-
113
- ## [2.11.2](https://github.com/midwayjs/midway/compare/v2.11.1...v2.11.2) (2021-06-28)
114
-
115
- **Note:** Version bump only for package @midwayjs/consul
116
-
117
-
118
-
119
-
120
-
121
- ## [2.11.1](https://github.com/midwayjs/midway/compare/v2.11.0...v2.11.1) (2021-06-19)
122
-
123
- **Note:** Version bump only for package @midwayjs/consul
124
-
125
-
126
-
127
-
128
-
129
- # [2.11.0](https://github.com/midwayjs/midway/compare/v2.10.19...v2.11.0) (2021-06-10)
130
-
131
-
132
- ### Features
133
-
134
- * support close consul service check ([#1083](https://github.com/midwayjs/midway/issues/1083)) ([a632bae](https://github.com/midwayjs/midway/commit/a632bae4c87eeed77b448a65cd2164a9d4f59779))
135
-
136
-
137
-
138
-
139
-
140
- ## [2.10.18](https://github.com/midwayjs/midway/compare/v2.10.17...v2.10.18) (2021-05-26)
141
-
142
- **Note:** Version bump only for package @midwayjs/consul
143
-
144
-
145
-
146
-
147
-
148
- ## [2.10.14](https://github.com/midwayjs/midway/compare/v2.10.13...v2.10.14) (2021-05-11)
149
-
150
- **Note:** Version bump only for package @midwayjs/consul
151
-
152
-
153
-
154
-
155
-
156
- ## [2.10.13](https://github.com/midwayjs/midway/compare/v2.10.12...v2.10.13) (2021-05-08)
157
-
158
- **Note:** Version bump only for package @midwayjs/consul
159
-
160
-
161
-
162
-
163
-
164
- ## [2.10.12](https://github.com/midwayjs/midway/compare/v2.10.11...v2.10.12) (2021-05-07)
165
-
166
- **Note:** Version bump only for package @midwayjs/consul
167
-
168
-
169
-
170
-
171
-
172
- ## [2.10.11](https://github.com/midwayjs/midway/compare/v2.10.10...v2.10.11) (2021-04-29)
173
-
174
- **Note:** Version bump only for package @midwayjs/consul
175
-
176
-
177
-
178
-
179
-
180
- ## [2.10.10](https://github.com/midwayjs/midway/compare/v2.10.9...v2.10.10) (2021-04-24)
181
-
182
- **Note:** Version bump only for package @midwayjs/consul
183
-
184
-
185
-
186
-
187
-
188
- ## [2.10.9](https://github.com/midwayjs/midway/compare/v2.10.8...v2.10.9) (2021-04-21)
189
-
190
- **Note:** Version bump only for package @midwayjs/consul
191
-
192
-
193
-
194
-
195
-
196
- ## [2.10.8](https://github.com/midwayjs/midway/compare/v2.10.7...v2.10.8) (2021-04-21)
197
-
198
- **Note:** Version bump only for package @midwayjs/consul
199
-
200
-
201
-
202
-
203
-
204
- ## [2.10.7](https://github.com/midwayjs/midway/compare/v2.10.6...v2.10.7) (2021-04-17)
205
-
206
-
207
- ### Bug Fixes
208
-
209
- * add event name args ([#986](https://github.com/midwayjs/midway/issues/986)) ([bfd8232](https://github.com/midwayjs/midway/commit/bfd82320aee8600d8fa30bd2821a0e68c80fd755))
210
- * format ([#997](https://github.com/midwayjs/midway/issues/997)) ([456cc14](https://github.com/midwayjs/midway/commit/456cc14513bdb000d1aa3130e9719caf7a8a803f))
211
-
212
-
213
-
214
-
215
-
216
- ## [2.10.6](https://github.com/midwayjs/midway/compare/v2.10.5...v2.10.6) (2021-04-14)
217
-
218
- **Note:** Version bump only for package @midwayjs/consul
219
-
220
-
221
-
222
-
223
-
224
- ## [2.10.5](https://github.com/midwayjs/midway/compare/v2.10.4...v2.10.5) (2021-04-13)
225
-
226
- **Note:** Version bump only for package @midwayjs/consul
227
-
228
-
229
-
230
-
231
-
232
- ## [2.10.4](https://github.com/midwayjs/midway/compare/v2.10.3...v2.10.4) (2021-04-10)
233
-
234
- **Note:** Version bump only for package @midwayjs/consul
235
-
236
-
237
-
238
-
239
-
240
- ## [2.10.3](https://github.com/midwayjs/midway/compare/v2.10.2...v2.10.3) (2021-04-07)
241
-
242
- **Note:** Version bump only for package @midwayjs/consul
243
-
244
-
245
-
246
-
247
-
248
- ## [2.10.2](https://github.com/midwayjs/midway/compare/v2.10.1...v2.10.2) (2021-04-05)
249
-
250
- **Note:** Version bump only for package @midwayjs/consul
251
-
252
-
253
-
254
-
255
-
256
- # [2.10.0](https://github.com/midwayjs/midway/compare/v2.9.3...v2.10.0) (2021-04-02)
257
-
258
-
259
- ### Features
260
-
261
- * **consul:** register to consul server and lookup service with balancer ([#949](https://github.com/midwayjs/midway/issues/949)) ([d5f9916](https://github.com/midwayjs/midway/commit/d5f99167b63102e0e98ef7e5a92368320ef0e0f2))