@midwayjs/consul 3.0.0-beta.9 → 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.
@@ -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.9",
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.9",
13
- "@midwayjs/decorator": "^3.0.0-beta.9",
14
- "@midwayjs/koa": "^3.0.0-beta.9",
15
- "@midwayjs/mock": "^3.0.0-beta.9",
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": "d23e4a4fee58097b98461625c428a37d55535cec"
42
+ "gitHead": "55c26029bccf7bbb739fa1597e8f418dafa2caa0"
43
43
  }
package/CHANGELOG.md DELETED
@@ -1,288 +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.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
7
-
8
- **Note:** Version bump only for package @midwayjs/consul
9
-
10
-
11
-
12
-
13
-
14
- # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([b9272e0](https://github.com/midwayjs/midway/commit/b9272e0971003443304b0c53815be31a0061b4bd))
20
-
21
-
22
-
23
-
24
-
25
- # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
26
-
27
- **Note:** Version bump only for package @midwayjs/consul
28
-
29
-
30
-
31
-
32
-
33
- # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
34
-
35
- **Note:** Version bump only for package @midwayjs/consul
36
-
37
-
38
-
39
-
40
-
41
- # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
42
-
43
- **Note:** Version bump only for package @midwayjs/consul
44
-
45
-
46
-
47
-
48
-
49
- # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
50
-
51
- **Note:** Version bump only for package @midwayjs/consul
52
-
53
-
54
-
55
-
56
-
57
- # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
58
-
59
-
60
- ### Features
61
-
62
- * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
63
-
64
-
65
-
66
-
67
-
68
- # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
69
-
70
- **Note:** Version bump only for package @midwayjs/consul
71
-
72
-
73
-
74
-
75
-
76
- # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
77
-
78
- **Note:** Version bump only for package @midwayjs/consul
79
-
80
-
81
-
82
-
83
-
84
- ## [2.12.3](https://github.com/midwayjs/midway/compare/v2.12.2...v2.12.3) (2021-08-09)
85
-
86
- **Note:** Version bump only for package @midwayjs/consul
87
-
88
-
89
-
90
-
91
-
92
- ## [2.12.1](https://github.com/midwayjs/midway/compare/v2.12.0...v2.12.1) (2021-08-01)
93
-
94
- **Note:** Version bump only for package @midwayjs/consul
95
-
96
-
97
-
98
-
99
-
100
- # [2.12.0](https://github.com/midwayjs/midway/compare/v2.11.7...v2.12.0) (2021-07-30)
101
-
102
- **Note:** Version bump only for package @midwayjs/consul
103
-
104
-
105
-
106
-
107
-
108
- ## [2.11.6](https://github.com/midwayjs/midway/compare/v2.11.5...v2.11.6) (2021-07-16)
109
-
110
- **Note:** Version bump only for package @midwayjs/consul
111
-
112
-
113
-
114
-
115
-
116
- ## [2.11.5](https://github.com/midwayjs/midway/compare/v2.11.4...v2.11.5) (2021-07-15)
117
-
118
- **Note:** Version bump only for package @midwayjs/consul
119
-
120
-
121
-
122
-
123
-
124
- ## [2.11.4](https://github.com/midwayjs/midway/compare/v2.11.3...v2.11.4) (2021-07-06)
125
-
126
- **Note:** Version bump only for package @midwayjs/consul
127
-
128
-
129
-
130
-
131
-
132
- ## [2.11.3](https://github.com/midwayjs/midway/compare/v2.11.2...v2.11.3) (2021-07-02)
133
-
134
- **Note:** Version bump only for package @midwayjs/consul
135
-
136
-
137
-
138
-
139
-
140
- ## [2.11.2](https://github.com/midwayjs/midway/compare/v2.11.1...v2.11.2) (2021-06-28)
141
-
142
- **Note:** Version bump only for package @midwayjs/consul
143
-
144
-
145
-
146
-
147
-
148
- ## [2.11.1](https://github.com/midwayjs/midway/compare/v2.11.0...v2.11.1) (2021-06-19)
149
-
150
- **Note:** Version bump only for package @midwayjs/consul
151
-
152
-
153
-
154
-
155
-
156
- # [2.11.0](https://github.com/midwayjs/midway/compare/v2.10.19...v2.11.0) (2021-06-10)
157
-
158
-
159
- ### Features
160
-
161
- * support close consul service check ([#1083](https://github.com/midwayjs/midway/issues/1083)) ([a632bae](https://github.com/midwayjs/midway/commit/a632bae4c87eeed77b448a65cd2164a9d4f59779))
162
-
163
-
164
-
165
-
166
-
167
- ## [2.10.18](https://github.com/midwayjs/midway/compare/v2.10.17...v2.10.18) (2021-05-26)
168
-
169
- **Note:** Version bump only for package @midwayjs/consul
170
-
171
-
172
-
173
-
174
-
175
- ## [2.10.14](https://github.com/midwayjs/midway/compare/v2.10.13...v2.10.14) (2021-05-11)
176
-
177
- **Note:** Version bump only for package @midwayjs/consul
178
-
179
-
180
-
181
-
182
-
183
- ## [2.10.13](https://github.com/midwayjs/midway/compare/v2.10.12...v2.10.13) (2021-05-08)
184
-
185
- **Note:** Version bump only for package @midwayjs/consul
186
-
187
-
188
-
189
-
190
-
191
- ## [2.10.12](https://github.com/midwayjs/midway/compare/v2.10.11...v2.10.12) (2021-05-07)
192
-
193
- **Note:** Version bump only for package @midwayjs/consul
194
-
195
-
196
-
197
-
198
-
199
- ## [2.10.11](https://github.com/midwayjs/midway/compare/v2.10.10...v2.10.11) (2021-04-29)
200
-
201
- **Note:** Version bump only for package @midwayjs/consul
202
-
203
-
204
-
205
-
206
-
207
- ## [2.10.10](https://github.com/midwayjs/midway/compare/v2.10.9...v2.10.10) (2021-04-24)
208
-
209
- **Note:** Version bump only for package @midwayjs/consul
210
-
211
-
212
-
213
-
214
-
215
- ## [2.10.9](https://github.com/midwayjs/midway/compare/v2.10.8...v2.10.9) (2021-04-21)
216
-
217
- **Note:** Version bump only for package @midwayjs/consul
218
-
219
-
220
-
221
-
222
-
223
- ## [2.10.8](https://github.com/midwayjs/midway/compare/v2.10.7...v2.10.8) (2021-04-21)
224
-
225
- **Note:** Version bump only for package @midwayjs/consul
226
-
227
-
228
-
229
-
230
-
231
- ## [2.10.7](https://github.com/midwayjs/midway/compare/v2.10.6...v2.10.7) (2021-04-17)
232
-
233
-
234
- ### Bug Fixes
235
-
236
- * add event name args ([#986](https://github.com/midwayjs/midway/issues/986)) ([bfd8232](https://github.com/midwayjs/midway/commit/bfd82320aee8600d8fa30bd2821a0e68c80fd755))
237
- * format ([#997](https://github.com/midwayjs/midway/issues/997)) ([456cc14](https://github.com/midwayjs/midway/commit/456cc14513bdb000d1aa3130e9719caf7a8a803f))
238
-
239
-
240
-
241
-
242
-
243
- ## [2.10.6](https://github.com/midwayjs/midway/compare/v2.10.5...v2.10.6) (2021-04-14)
244
-
245
- **Note:** Version bump only for package @midwayjs/consul
246
-
247
-
248
-
249
-
250
-
251
- ## [2.10.5](https://github.com/midwayjs/midway/compare/v2.10.4...v2.10.5) (2021-04-13)
252
-
253
- **Note:** Version bump only for package @midwayjs/consul
254
-
255
-
256
-
257
-
258
-
259
- ## [2.10.4](https://github.com/midwayjs/midway/compare/v2.10.3...v2.10.4) (2021-04-10)
260
-
261
- **Note:** Version bump only for package @midwayjs/consul
262
-
263
-
264
-
265
-
266
-
267
- ## [2.10.3](https://github.com/midwayjs/midway/compare/v2.10.2...v2.10.3) (2021-04-07)
268
-
269
- **Note:** Version bump only for package @midwayjs/consul
270
-
271
-
272
-
273
-
274
-
275
- ## [2.10.2](https://github.com/midwayjs/midway/compare/v2.10.1...v2.10.2) (2021-04-05)
276
-
277
- **Note:** Version bump only for package @midwayjs/consul
278
-
279
-
280
-
281
-
282
-
283
- # [2.10.0](https://github.com/midwayjs/midway/compare/v2.9.3...v2.10.0) (2021-04-02)
284
-
285
-
286
- ### Features
287
-
288
- * **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))