@feathersjs/express 5.0.0-pre.29 → 5.0.0-pre.30

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,763 +3,453 @@
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
- # [5.0.0-pre.29](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.28...v5.0.0-pre.29) (2022-09-16)
6
+ # [5.0.0-pre.30](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.29...v5.0.0-pre.30) (2022-10-07)
7
7
 
8
+ ### Bug Fixes
8
9
 
9
- ### Features
10
+ - **core:** Ensure setup and teardown can be overriden and maintain hook functionality ([#2779](https://github.com/feathersjs/feathers/issues/2779)) ([ab580cb](https://github.com/feathersjs/feathers/commit/ab580cbcaa68d19144d86798c13bf564f9d424a6))
10
11
 
11
- * Add CORS support to oAuth, Express, Koa and generated application ([#2744](https://github.com/feathersjs/feathers/issues/2744)) ([fd218f2](https://github.com/feathersjs/feathers/commit/fd218f289f8ca4c101e9938e8683e2efef6e8131))
12
- * **authentication-oauth:** Koa and transport independent oAuth authentication ([#2737](https://github.com/feathersjs/feathers/issues/2737)) ([9231525](https://github.com/feathersjs/feathers/commit/9231525a24bb790ba9c5d940f2867a9c727691c9))
12
+ ### Features
13
13
 
14
+ - **core:** Allow to unregister services at runtime ([#2756](https://github.com/feathersjs/feathers/issues/2756)) ([d16601f](https://github.com/feathersjs/feathers/commit/d16601f2277dca5357866ffdefba2a611f6dc7fa))
14
15
 
16
+ # [5.0.0-pre.29](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.28...v5.0.0-pre.29) (2022-09-16)
15
17
 
18
+ ### Features
16
19
 
20
+ - Add CORS support to oAuth, Express, Koa and generated application ([#2744](https://github.com/feathersjs/feathers/issues/2744)) ([fd218f2](https://github.com/feathersjs/feathers/commit/fd218f289f8ca4c101e9938e8683e2efef6e8131))
21
+ - **authentication-oauth:** Koa and transport independent oAuth authentication ([#2737](https://github.com/feathersjs/feathers/issues/2737)) ([9231525](https://github.com/feathersjs/feathers/commit/9231525a24bb790ba9c5d940f2867a9c727691c9))
17
22
 
18
23
  # [5.0.0-pre.28](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.27...v5.0.0-pre.28) (2022-08-03)
19
24
 
20
-
21
25
  ### Bug Fixes
22
26
 
23
- * **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
24
-
25
-
26
-
27
-
27
+ - **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
28
28
 
29
29
  # [5.0.0-pre.27](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.26...v5.0.0-pre.27) (2022-07-13)
30
30
 
31
31
  **Note:** Version bump only for package @feathersjs/express
32
32
 
33
-
34
-
35
-
36
-
37
33
  # [5.0.0-pre.26](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.25...v5.0.0-pre.26) (2022-06-22)
38
34
 
39
35
  **Note:** Version bump only for package @feathersjs/express
40
36
 
41
-
42
-
43
-
44
-
45
37
  # [5.0.0-pre.25](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.24...v5.0.0-pre.25) (2022-06-22)
46
38
 
47
39
  **Note:** Version bump only for package @feathersjs/express
48
40
 
49
-
50
-
51
-
52
-
53
41
  # [5.0.0-pre.24](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.23...v5.0.0-pre.24) (2022-06-21)
54
42
 
55
-
56
43
  ### Bug Fixes
57
44
 
58
- * **authentication:** Add safe dispatch data for authentication requests ([#2662](https://github.com/feathersjs/feathers/issues/2662)) ([d8104a1](https://github.com/feathersjs/feathers/commit/d8104a19ee9181e6a5ea81014af29ff9a3c28a8a))
59
-
45
+ - **authentication:** Add safe dispatch data for authentication requests ([#2662](https://github.com/feathersjs/feathers/issues/2662)) ([d8104a1](https://github.com/feathersjs/feathers/commit/d8104a19ee9181e6a5ea81014af29ff9a3c28a8a))
60
46
 
61
47
  ### Features
62
48
 
63
- * **cli:** Add support for JavaScript to the new CLI ([#2668](https://github.com/feathersjs/feathers/issues/2668)) ([ebac587](https://github.com/feathersjs/feathers/commit/ebac587f7d00dc7607c3f546352d79f79b89a5d4))
64
-
65
-
66
-
67
-
49
+ - **cli:** Add support for JavaScript to the new CLI ([#2668](https://github.com/feathersjs/feathers/issues/2668)) ([ebac587](https://github.com/feathersjs/feathers/commit/ebac587f7d00dc7607c3f546352d79f79b89a5d4))
68
50
 
69
51
  # [5.0.0-pre.23](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.22...v5.0.0-pre.23) (2022-06-06)
70
52
 
71
-
72
53
  ### Bug Fixes
73
54
 
74
- * **express:** Ensure Express options can be set before configuring REST transport ([#2655](https://github.com/feathersjs/feathers/issues/2655)) ([c9b8f74](https://github.com/feathersjs/feathers/commit/c9b8f74a0196acb99be44ac5e0fff3f1128288cd))
75
-
76
-
77
-
78
-
55
+ - **express:** Ensure Express options can be set before configuring REST transport ([#2655](https://github.com/feathersjs/feathers/issues/2655)) ([c9b8f74](https://github.com/feathersjs/feathers/commit/c9b8f74a0196acb99be44ac5e0fff3f1128288cd))
79
56
 
80
57
  # [5.0.0-pre.22](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.21...v5.0.0-pre.22) (2022-05-24)
81
58
 
82
59
  **Note:** Version bump only for package @feathersjs/express
83
60
 
84
-
85
-
86
-
87
-
88
61
  # [5.0.0-pre.21](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.20...v5.0.0-pre.21) (2022-05-23)
89
62
 
90
63
  **Note:** Version bump only for package @feathersjs/express
91
64
 
92
-
93
-
94
-
95
-
96
65
  # [5.0.0-pre.20](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.19...v5.0.0-pre.20) (2022-05-04)
97
66
 
98
-
99
67
  ### Bug Fixes
100
68
 
101
- * **dependencies:** Lock monorepo package version numbers ([#2623](https://github.com/feathersjs/feathers/issues/2623)) ([5640c10](https://github.com/feathersjs/feathers/commit/5640c1020cc139994e695d658c08bad3494db507))
102
-
103
-
104
-
105
-
69
+ - **dependencies:** Lock monorepo package version numbers ([#2623](https://github.com/feathersjs/feathers/issues/2623)) ([5640c10](https://github.com/feathersjs/feathers/commit/5640c1020cc139994e695d658c08bad3494db507))
106
70
 
107
71
  # [5.0.0-pre.19](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.18...v5.0.0-pre.19) (2022-05-01)
108
72
 
109
-
110
73
  ### Bug Fixes
111
74
 
112
- * **express:** Fix typo in types reference in package.json ([#2613](https://github.com/feathersjs/feathers/issues/2613)) ([eacf1b3](https://github.com/feathersjs/feathers/commit/eacf1b3474e6d9da69b8671244c23a75cff87d95))
113
-
75
+ - **express:** Fix typo in types reference in package.json ([#2613](https://github.com/feathersjs/feathers/issues/2613)) ([eacf1b3](https://github.com/feathersjs/feathers/commit/eacf1b3474e6d9da69b8671244c23a75cff87d95))
114
76
 
115
77
  ### Features
116
78
 
117
- * **typescript:** Improve params and query typeability ([#2600](https://github.com/feathersjs/feathers/issues/2600)) ([df28b76](https://github.com/feathersjs/feathers/commit/df28b7619161f1df5e700326f52cca1a92dc5d28))
118
-
119
-
120
-
121
-
79
+ - **typescript:** Improve params and query typeability ([#2600](https://github.com/feathersjs/feathers/issues/2600)) ([df28b76](https://github.com/feathersjs/feathers/commit/df28b7619161f1df5e700326f52cca1a92dc5d28))
122
80
 
123
81
  # [5.0.0-pre.18](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.17...v5.0.0-pre.18) (2022-04-11)
124
82
 
125
-
126
83
  ### Features
127
84
 
128
- * **core:** Add app.teardown functionality ([#2570](https://github.com/feathersjs/feathers/issues/2570)) ([fcdf524](https://github.com/feathersjs/feathers/commit/fcdf524ae1995bb59265d39f12e98b7794bed023))
129
- * **core:** Finalize app.teardown() functionality ([#2584](https://github.com/feathersjs/feathers/issues/2584)) ([1a166f3](https://github.com/feathersjs/feathers/commit/1a166f3ded811ecacf0ae8cb67880bc9fa2eeafa))
130
- * **transport-commons:** add `context.http.response` ([#2524](https://github.com/feathersjs/feathers/issues/2524)) ([5bc9d44](https://github.com/feathersjs/feathers/commit/5bc9d447043c2e2b742c73ed28ecf3b3264dd9e5))
131
-
132
-
133
-
134
-
85
+ - **core:** Add app.teardown functionality ([#2570](https://github.com/feathersjs/feathers/issues/2570)) ([fcdf524](https://github.com/feathersjs/feathers/commit/fcdf524ae1995bb59265d39f12e98b7794bed023))
86
+ - **core:** Finalize app.teardown() functionality ([#2584](https://github.com/feathersjs/feathers/issues/2584)) ([1a166f3](https://github.com/feathersjs/feathers/commit/1a166f3ded811ecacf0ae8cb67880bc9fa2eeafa))
87
+ - **transport-commons:** add `context.http.response` ([#2524](https://github.com/feathersjs/feathers/issues/2524)) ([5bc9d44](https://github.com/feathersjs/feathers/commit/5bc9d447043c2e2b742c73ed28ecf3b3264dd9e5))
135
88
 
136
89
  # [5.0.0-pre.17](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.16...v5.0.0-pre.17) (2022-02-15)
137
90
 
138
-
139
91
  ### Bug Fixes
140
92
 
141
- * **express:** Fix application typings to work with typed configuration ([#2539](https://github.com/feathersjs/feathers/issues/2539)) ([b9dfaee](https://github.com/feathersjs/feathers/commit/b9dfaee834b13864c1ed4f2f6a244eb5bb70395b))
142
-
143
-
144
-
145
-
93
+ - **express:** Fix application typings to work with typed configuration ([#2539](https://github.com/feathersjs/feathers/issues/2539)) ([b9dfaee](https://github.com/feathersjs/feathers/commit/b9dfaee834b13864c1ed4f2f6a244eb5bb70395b))
146
94
 
147
95
  # [5.0.0-pre.16](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.15...v5.0.0-pre.16) (2022-01-12)
148
96
 
149
-
150
97
  ### Features
151
98
 
152
- * **express, koa:** make transports similar ([#2486](https://github.com/feathersjs/feathers/issues/2486)) ([26aa937](https://github.com/feathersjs/feathers/commit/26aa937c114fb8596dfefc599b1f53cead69c159))
153
-
154
-
155
-
156
-
99
+ - **express, koa:** make transports similar ([#2486](https://github.com/feathersjs/feathers/issues/2486)) ([26aa937](https://github.com/feathersjs/feathers/commit/26aa937c114fb8596dfefc599b1f53cead69c159))
157
100
 
158
101
  # [5.0.0-pre.15](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.14...v5.0.0-pre.15) (2021-11-27)
159
102
 
160
-
161
103
  ### Bug Fixes
162
104
 
163
- * missing express types for Request, Response ([#2498](https://github.com/feathersjs/feathers/issues/2498)) ([ee67131](https://github.com/feathersjs/feathers/commit/ee67131bbaa24c54d3d781bdf8820015759ac488))
164
- * **typescript:** Overall typing improvements ([#2478](https://github.com/feathersjs/feathers/issues/2478)) ([b8eb804](https://github.com/feathersjs/feathers/commit/b8eb804158556d9651a8607e3c3fda15e0bfd110))
165
-
105
+ - missing express types for Request, Response ([#2498](https://github.com/feathersjs/feathers/issues/2498)) ([ee67131](https://github.com/feathersjs/feathers/commit/ee67131bbaa24c54d3d781bdf8820015759ac488))
106
+ - **typescript:** Overall typing improvements ([#2478](https://github.com/feathersjs/feathers/issues/2478)) ([b8eb804](https://github.com/feathersjs/feathers/commit/b8eb804158556d9651a8607e3c3fda15e0bfd110))
166
107
 
167
108
  ### Features
168
109
 
169
- * **core:** add `context.http` and move `statusCode` there ([#2496](https://github.com/feathersjs/feathers/issues/2496)) ([b701bf7](https://github.com/feathersjs/feathers/commit/b701bf77fb83048aa1dffa492b3d77dd53f7b72b))
170
- * **core:** Improve legacy hooks integration ([08c8b40](https://github.com/feathersjs/feathers/commit/08c8b40999bf3889c61a4d4fad97a2c4f78bafc9))
171
-
172
-
173
-
174
-
110
+ - **core:** add `context.http` and move `statusCode` there ([#2496](https://github.com/feathersjs/feathers/issues/2496)) ([b701bf7](https://github.com/feathersjs/feathers/commit/b701bf77fb83048aa1dffa492b3d77dd53f7b72b))
111
+ - **core:** Improve legacy hooks integration ([08c8b40](https://github.com/feathersjs/feathers/commit/08c8b40999bf3889c61a4d4fad97a2c4f78bafc9))
175
112
 
176
113
  # [5.0.0-pre.14](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.13...v5.0.0-pre.14) (2021-10-13)
177
114
 
178
115
  **Note:** Version bump only for package @feathersjs/express
179
116
 
180
-
181
-
182
-
183
-
184
117
  # [5.0.0-pre.13](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.12...v5.0.0-pre.13) (2021-10-13)
185
118
 
186
119
  **Note:** Version bump only for package @feathersjs/express
187
120
 
188
-
189
-
190
-
191
-
192
121
  # [5.0.0-pre.12](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.11...v5.0.0-pre.12) (2021-10-12)
193
122
 
194
123
  **Note:** Version bump only for package @feathersjs/express
195
124
 
196
-
197
-
198
-
199
-
200
125
  # [5.0.0-pre.11](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.10...v5.0.0-pre.11) (2021-10-06)
201
126
 
202
127
  **Note:** Version bump only for package @feathersjs/express
203
128
 
204
-
205
-
206
-
207
-
208
129
  # [5.0.0-pre.10](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.9...v5.0.0-pre.10) (2021-09-19)
209
130
 
210
131
  **Note:** Version bump only for package @feathersjs/express
211
132
 
212
-
213
-
214
-
215
-
216
133
  # [5.0.0-pre.9](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.8...v5.0.0-pre.9) (2021-08-09)
217
134
 
218
135
  **Note:** Version bump only for package @feathersjs/express
219
136
 
220
-
221
-
222
-
223
-
224
137
  # [5.0.0-pre.8](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.7...v5.0.0-pre.8) (2021-08-09)
225
138
 
226
139
  **Note:** Version bump only for package @feathersjs/express
227
140
 
228
-
229
-
230
-
231
-
232
141
  # [5.0.0-pre.7](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.6...v5.0.0-pre.7) (2021-08-09)
233
142
 
234
143
  **Note:** Version bump only for package @feathersjs/express
235
144
 
236
-
237
-
238
-
239
-
240
145
  # [5.0.0-pre.6](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.5...v5.0.0-pre.6) (2021-08-08)
241
146
 
242
147
  **Note:** Version bump only for package @feathersjs/express
243
148
 
244
-
245
-
246
-
247
-
248
149
  # [5.0.0-pre.5](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.4...v5.0.0-pre.5) (2021-06-23)
249
150
 
250
151
  **Note:** Version bump only for package @feathersjs/express
251
152
 
252
-
253
-
254
-
255
-
256
153
  # [5.0.0-pre.4](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.3...v5.0.0-pre.4) (2021-05-13)
257
154
 
258
-
259
155
  ### Features
260
156
 
261
- * **koa:** KoaJS transport adapter ([#2315](https://github.com/feathersjs/feathers/issues/2315)) ([2554b57](https://github.com/feathersjs/feathers/commit/2554b57cf05731df58feeba9c12faab18e442107))
262
-
263
-
264
-
265
-
157
+ - **koa:** KoaJS transport adapter ([#2315](https://github.com/feathersjs/feathers/issues/2315)) ([2554b57](https://github.com/feathersjs/feathers/commit/2554b57cf05731df58feeba9c12faab18e442107))
266
158
 
267
159
  # [5.0.0-pre.3](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.2...v5.0.0-pre.3) (2021-04-21)
268
160
 
269
-
270
161
  ### Bug Fixes
271
162
 
272
- * **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/feathers/issues/2310)) ([f33be73](https://github.com/feathersjs/feathers/commit/f33be73fc46a533efb15df9aab0658e3240d3897))
273
-
163
+ - **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/feathers/issues/2310)) ([f33be73](https://github.com/feathersjs/feathers/commit/f33be73fc46a533efb15df9aab0658e3240d3897))
274
164
 
275
165
  ### Features
276
166
 
277
- * **dependencies:** Remove direct debug dependency ([#2296](https://github.com/feathersjs/feathers/issues/2296)) ([501d416](https://github.com/feathersjs/feathers/commit/501d4164d30c6a126906dc640cdfdc82207ba34a))
278
-
279
-
280
-
281
-
167
+ - **dependencies:** Remove direct debug dependency ([#2296](https://github.com/feathersjs/feathers/issues/2296)) ([501d416](https://github.com/feathersjs/feathers/commit/501d4164d30c6a126906dc640cdfdc82207ba34a))
282
168
 
283
169
  # [5.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.1...v5.0.0-pre.2) (2021-04-06)
284
170
 
285
171
  **Note:** Version bump only for package @feathersjs/express
286
172
 
287
-
288
-
289
-
290
-
291
173
  # [5.0.0-beta.1](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.0...v5.0.0-beta.1) (2021-04-03)
292
174
 
293
175
  **Note:** Version bump only for package @feathersjs/express
294
176
 
295
-
296
-
297
-
298
-
299
177
  # [5.0.0-beta.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.1...v5.0.0-beta.0) (2021-03-28)
300
178
 
301
-
302
179
  ### Bug Fixes
303
180
 
304
- * Resolve some type problems ([#2260](https://github.com/feathersjs/feathers/issues/2260)) ([a3d75fa](https://github.com/feathersjs/feathers/commit/a3d75fa29490e8a19412a12bc993ee7bb573068f))
305
- * Update Grant usage and other dependencies ([#2264](https://github.com/feathersjs/feathers/issues/2264)) ([7b0f8fa](https://github.com/feathersjs/feathers/commit/7b0f8fad252419ed0ad0bf259cdf3104d322ab60))
306
-
181
+ - Resolve some type problems ([#2260](https://github.com/feathersjs/feathers/issues/2260)) ([a3d75fa](https://github.com/feathersjs/feathers/commit/a3d75fa29490e8a19412a12bc993ee7bb573068f))
182
+ - Update Grant usage and other dependencies ([#2264](https://github.com/feathersjs/feathers/issues/2264)) ([7b0f8fa](https://github.com/feathersjs/feathers/commit/7b0f8fad252419ed0ad0bf259cdf3104d322ab60))
307
183
 
308
184
  ### Features
309
185
 
310
- * **core:** Public custom service methods ([#2270](https://github.com/feathersjs/feathers/issues/2270)) ([e65abfb](https://github.com/feathersjs/feathers/commit/e65abfb5388df6c19a11c565cf1076a29f32668d))
311
- * Application service types default to any ([#1566](https://github.com/feathersjs/feathers/issues/1566)) ([d93ba9a](https://github.com/feathersjs/feathers/commit/d93ba9a17edd20d3397bb00f4f6e82e804e42ed6))
312
- * Feathers v5 core refactoring and features ([#2255](https://github.com/feathersjs/feathers/issues/2255)) ([2dafb7c](https://github.com/feathersjs/feathers/commit/2dafb7ce14ba57406aeec13d10ca45b1e709bee9))
313
- * **core:** Remove Uberproto ([#2178](https://github.com/feathersjs/feathers/issues/2178)) ([ddf8821](https://github.com/feathersjs/feathers/commit/ddf8821f53317e6a378657f7d66acb03a037ee47))
314
-
186
+ - **core:** Public custom service methods ([#2270](https://github.com/feathersjs/feathers/issues/2270)) ([e65abfb](https://github.com/feathersjs/feathers/commit/e65abfb5388df6c19a11c565cf1076a29f32668d))
187
+ - Application service types default to any ([#1566](https://github.com/feathersjs/feathers/issues/1566)) ([d93ba9a](https://github.com/feathersjs/feathers/commit/d93ba9a17edd20d3397bb00f4f6e82e804e42ed6))
188
+ - Feathers v5 core refactoring and features ([#2255](https://github.com/feathersjs/feathers/issues/2255)) ([2dafb7c](https://github.com/feathersjs/feathers/commit/2dafb7ce14ba57406aeec13d10ca45b1e709bee9))
189
+ - **core:** Remove Uberproto ([#2178](https://github.com/feathersjs/feathers/issues/2178)) ([ddf8821](https://github.com/feathersjs/feathers/commit/ddf8821f53317e6a378657f7d66acb03a037ee47))
315
190
 
316
191
  ### BREAKING CHANGES
317
192
 
318
- * **core:** Services no longer extend Uberproto objects and
319
- `service.mixin()` is no longer available.
320
-
321
-
322
-
323
-
193
+ - **core:** Services no longer extend Uberproto objects and
194
+ `service.mixin()` is no longer available.
324
195
 
325
196
  # [5.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.5.11...v5.0.0-pre.1) (2020-12-17)
326
197
 
327
-
328
-
329
198
  # [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
330
199
 
331
-
332
200
  ### Features
333
201
 
334
- * **core:** use @feathers/hooks and add async type ([#1929](https://github.com/feathersjs/feathers/issues/1929)) ([a5c4756](https://github.com/feathersjs/feathers/commit/a5c47562eae8410c82fe2f6308f26f8e78b6a3e8))
335
-
336
-
337
-
338
-
202
+ - **core:** use @feathers/hooks and add async type ([#1929](https://github.com/feathersjs/feathers/issues/1929)) ([a5c4756](https://github.com/feathersjs/feathers/commit/a5c47562eae8410c82fe2f6308f26f8e78b6a3e8))
339
203
 
340
204
  # [5.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v4.5.4...v5.0.0-pre.0) (2020-05-19)
341
205
 
342
-
343
206
  ### Features
344
207
 
345
- * **core:** use @feathers/hooks and add async type ([#1929](https://github.com/feathersjs/feathers/issues/1929)) ([a5c4756](https://github.com/feathersjs/feathers/commit/a5c47562eae8410c82fe2f6308f26f8e78b6a3e8))
346
-
347
-
208
+ - **core:** use @feathers/hooks and add async type ([#1929](https://github.com/feathersjs/feathers/issues/1929)) ([a5c4756](https://github.com/feathersjs/feathers/commit/a5c47562eae8410c82fe2f6308f26f8e78b6a3e8))
348
209
 
349
210
  ## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05)
350
211
 
351
212
  **Note:** Version bump only for package @feathersjs/express
352
213
 
353
-
354
-
355
-
356
-
357
214
  ## [4.5.10](https://github.com/feathersjs/feathers/compare/v4.5.9...v4.5.10) (2020-11-08)
358
215
 
359
-
360
216
  ### Bug Fixes
361
217
 
362
- * **authentication:** consistent response return between local and jwt strategy ([#2042](https://github.com/feathersjs/feathers/issues/2042)) ([8d25be1](https://github.com/feathersjs/feathers/commit/8d25be101a2593a9e789375c928a07780b9e28cf))
363
-
364
-
365
-
366
-
218
+ - **authentication:** consistent response return between local and jwt strategy ([#2042](https://github.com/feathersjs/feathers/issues/2042)) ([8d25be1](https://github.com/feathersjs/feathers/commit/8d25be101a2593a9e789375c928a07780b9e28cf))
367
219
 
368
220
  ## [4.5.9](https://github.com/feathersjs/feathers/compare/v4.5.8...v4.5.9) (2020-10-09)
369
221
 
370
222
  **Note:** Version bump only for package @feathersjs/express
371
223
 
372
-
373
-
374
-
375
-
376
224
  ## [4.5.8](https://github.com/feathersjs/feathers/compare/v4.5.7...v4.5.8) (2020-08-12)
377
225
 
378
226
  **Note:** Version bump only for package @feathersjs/express
379
227
 
380
-
381
-
382
-
383
-
384
228
  ## [4.5.7](https://github.com/feathersjs/feathers/compare/v4.5.6...v4.5.7) (2020-07-24)
385
229
 
386
230
  **Note:** Version bump only for package @feathersjs/express
387
231
 
388
-
389
-
390
-
391
-
392
232
  ## [4.5.6](https://github.com/feathersjs/feathers/compare/v4.5.5...v4.5.6) (2020-07-12)
393
233
 
394
234
  **Note:** Version bump only for package @feathersjs/express
395
235
 
396
-
397
-
398
-
399
-
400
236
  ## [4.5.5](https://github.com/feathersjs/feathers/compare/v4.5.4...v4.5.5) (2020-07-11)
401
237
 
402
238
  **Note:** Version bump only for package @feathersjs/express
403
239
 
404
-
405
-
406
-
407
-
408
240
  ## [4.5.4](https://github.com/feathersjs/feathers/compare/v4.5.3...v4.5.4) (2020-04-29)
409
241
 
410
242
  **Note:** Version bump only for package @feathersjs/express
411
243
 
412
-
413
-
414
-
415
-
416
244
  ## [4.5.3](https://github.com/feathersjs/feathers/compare/v4.5.2...v4.5.3) (2020-04-17)
417
245
 
418
246
  **Note:** Version bump only for package @feathersjs/express
419
247
 
420
-
421
-
422
-
423
-
424
248
  ## [4.5.2](https://github.com/feathersjs/feathers/compare/v4.5.1...v4.5.2) (2020-03-04)
425
249
 
426
-
427
250
  ### Bug Fixes
428
251
 
429
- * Updated typings for express middleware ([#1839](https://github.com/feathersjs/feathers/issues/1839)) ([6b8e897](https://github.com/feathersjs/feathers/commit/6b8e8971a9dbb08913edd1be48826624645d9dc1))
430
-
431
-
432
-
433
-
252
+ - Updated typings for express middleware ([#1839](https://github.com/feathersjs/feathers/issues/1839)) ([6b8e897](https://github.com/feathersjs/feathers/commit/6b8e8971a9dbb08913edd1be48826624645d9dc1))
434
253
 
435
254
  ## [4.5.1](https://github.com/feathersjs/feathers/compare/v4.5.0...v4.5.1) (2020-01-24)
436
255
 
437
256
  **Note:** Version bump only for package @feathersjs/express
438
257
 
439
-
440
-
441
-
442
-
443
258
  # [4.5.0](https://github.com/feathersjs/feathers/compare/v4.4.3...v4.5.0) (2020-01-18)
444
259
 
445
260
  **Note:** Version bump only for package @feathersjs/express
446
261
 
447
-
448
-
449
-
450
-
451
262
  ## [4.4.3](https://github.com/feathersjs/feathers/compare/v4.4.1...v4.4.3) (2019-12-06)
452
263
 
453
264
  **Note:** Version bump only for package @feathersjs/express
454
265
 
455
-
456
-
457
-
458
-
459
266
  ## [4.4.1](https://github.com/feathersjs/feathers/compare/v4.4.0...v4.4.1) (2019-11-27)
460
267
 
461
268
  **Note:** Version bump only for package @feathersjs/express
462
269
 
463
-
464
-
465
-
466
-
467
270
  # [4.4.0](https://github.com/feathersjs/feathers/compare/v4.3.11...v4.4.0) (2019-11-27)
468
271
 
469
-
470
272
  ### Features
471
273
 
472
- * **authentication:** Add parseStrategies to allow separate strategies for creating JWTs and parsing headers ([#1708](https://github.com/feathersjs/feathers/issues/1708)) ([5e65629](https://github.com/feathersjs/feathers/commit/5e65629b924724c3e81d7c81df047e123d1c8bd7))
473
-
474
-
475
-
476
-
274
+ - **authentication:** Add parseStrategies to allow separate strategies for creating JWTs and parsing headers ([#1708](https://github.com/feathersjs/feathers/issues/1708)) ([5e65629](https://github.com/feathersjs/feathers/commit/5e65629b924724c3e81d7c81df047e123d1c8bd7))
477
275
 
478
276
  ## [4.3.11](https://github.com/feathersjs/feathers/compare/v4.3.10...v4.3.11) (2019-11-11)
479
277
 
480
278
  **Note:** Version bump only for package @feathersjs/express
481
279
 
482
-
483
-
484
-
485
-
486
280
  ## [4.3.10](https://github.com/feathersjs/feathers/compare/v4.3.9...v4.3.10) (2019-10-26)
487
281
 
488
282
  **Note:** Version bump only for package @feathersjs/express
489
283
 
490
-
491
-
492
-
493
-
494
284
  ## [4.3.9](https://github.com/feathersjs/feathers/compare/v4.3.8...v4.3.9) (2019-10-26)
495
285
 
496
-
497
286
  ### Bug Fixes
498
287
 
499
- * Small type improvements ([#1624](https://github.com/feathersjs/feathers/issues/1624)) ([50162c6](https://github.com/feathersjs/feathers/commit/50162c6e562f0a47c6a280c4f01fff7c3afee293))
500
-
501
-
502
-
503
-
288
+ - Small type improvements ([#1624](https://github.com/feathersjs/feathers/issues/1624)) ([50162c6](https://github.com/feathersjs/feathers/commit/50162c6e562f0a47c6a280c4f01fff7c3afee293))
504
289
 
505
290
  ## [4.3.7](https://github.com/feathersjs/feathers/compare/v4.3.6...v4.3.7) (2019-10-14)
506
291
 
507
-
508
292
  ### Bug Fixes
509
293
 
510
- * Typings for express request and response properties ([#1609](https://github.com/feathersjs/feathers/issues/1609)) ([38cf8c9](https://github.com/feathersjs/feathers/commit/38cf8c950c1a4fb4a6d78d68d70e7fdd63b71c3c))
511
-
512
-
513
-
514
-
294
+ - Typings for express request and response properties ([#1609](https://github.com/feathersjs/feathers/issues/1609)) ([38cf8c9](https://github.com/feathersjs/feathers/commit/38cf8c950c1a4fb4a6d78d68d70e7fdd63b71c3c))
515
295
 
516
296
  ## [4.3.5](https://github.com/feathersjs/feathers/compare/v4.3.4...v4.3.5) (2019-10-07)
517
297
 
518
298
  **Note:** Version bump only for package @feathersjs/express
519
299
 
520
-
521
-
522
-
523
-
524
300
  ## [4.3.4](https://github.com/feathersjs/feathers/compare/v4.3.3...v4.3.4) (2019-10-03)
525
301
 
526
302
  **Note:** Version bump only for package @feathersjs/express
527
303
 
528
-
529
-
530
-
531
-
532
304
  ## [4.3.3](https://github.com/feathersjs/feathers/compare/v4.3.2...v4.3.3) (2019-09-21)
533
305
 
534
306
  **Note:** Version bump only for package @feathersjs/express
535
307
 
536
-
537
-
538
-
539
-
540
308
  ## [4.3.2](https://github.com/feathersjs/feathers/compare/v4.3.1...v4.3.2) (2019-09-16)
541
309
 
542
-
543
310
  ### Bug Fixes
544
311
 
545
- * Add info to express error handler logger type ([#1557](https://github.com/feathersjs/feathers/issues/1557)) ([3e1d26c](https://github.com/feathersjs/feathers/commit/3e1d26c))
546
-
547
-
548
-
549
-
312
+ - Add info to express error handler logger type ([#1557](https://github.com/feathersjs/feathers/issues/1557)) ([3e1d26c](https://github.com/feathersjs/feathers/commit/3e1d26c))
550
313
 
551
314
  ## [4.3.1](https://github.com/feathersjs/feathers/compare/v4.3.0...v4.3.1) (2019-09-09)
552
315
 
553
316
  **Note:** Version bump only for package @feathersjs/express
554
317
 
555
-
556
-
557
-
558
-
559
318
  # [4.3.0](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.4...v4.3.0) (2019-08-27)
560
319
 
561
320
  **Note:** Version bump only for package @feathersjs/express
562
321
 
563
-
564
-
565
-
566
-
567
322
  # [4.3.0-pre.4](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.3...v4.3.0-pre.4) (2019-08-22)
568
323
 
569
324
  **Note:** Version bump only for package @feathersjs/express
570
325
 
571
-
572
-
573
-
574
-
575
326
  # [4.3.0-pre.3](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.2...v4.3.0-pre.3) (2019-08-19)
576
327
 
577
-
578
328
  ### Bug Fixes
579
329
 
580
- * Update all dependencies ([7d53a00](https://github.com/feathersjs/feathers/commit/7d53a00))
581
-
582
-
583
-
584
-
330
+ - Update all dependencies ([7d53a00](https://github.com/feathersjs/feathers/commit/7d53a00))
585
331
 
586
332
  # [4.3.0-pre.2](https://github.com/feathersjs/feathers/compare/v4.3.0-pre.1...v4.3.0-pre.2) (2019-08-02)
587
333
 
588
-
589
334
  ### Bug Fixes
590
335
 
591
- * Add method to reliably get default authentication service ([#1470](https://github.com/feathersjs/feathers/issues/1470)) ([e542cb3](https://github.com/feathersjs/feathers/commit/e542cb3))
592
-
593
-
594
-
595
-
336
+ - Add method to reliably get default authentication service ([#1470](https://github.com/feathersjs/feathers/issues/1470)) ([e542cb3](https://github.com/feathersjs/feathers/commit/e542cb3))
596
337
 
597
338
  # [4.3.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.5...v4.3.0-pre.1) (2019-07-11)
598
339
 
599
340
  **Note:** Version bump only for package @feathersjs/express
600
341
 
601
-
602
-
603
-
604
-
605
342
  # [4.0.0-pre.5](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.4...v4.0.0-pre.5) (2019-07-10)
606
343
 
607
-
608
344
  ### Bug Fixes
609
345
 
610
- * Remove unnecessary top level export files in @feathersjs/express ([#1442](https://github.com/feathersjs/feathers/issues/1442)) ([73c3fb2](https://github.com/feathersjs/feathers/commit/73c3fb2))
611
-
346
+ - Remove unnecessary top level export files in @feathersjs/express ([#1442](https://github.com/feathersjs/feathers/issues/1442)) ([73c3fb2](https://github.com/feathersjs/feathers/commit/73c3fb2))
612
347
 
613
348
  ### Features
614
349
 
615
- * @feathersjs/express allow to pass an existing Express application instance ([#1446](https://github.com/feathersjs/feathers/issues/1446)) ([853a6b0](https://github.com/feathersjs/feathers/commit/853a6b0))
616
-
617
-
618
-
619
-
350
+ - @feathersjs/express allow to pass an existing Express application instance ([#1446](https://github.com/feathersjs/feathers/issues/1446)) ([853a6b0](https://github.com/feathersjs/feathers/commit/853a6b0))
620
351
 
621
352
  # [4.0.0-pre.4](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.3...v4.0.0-pre.4) (2019-07-05)
622
353
 
623
-
624
354
  ### Bug Fixes
625
355
 
626
- * @feathersjs/express: allow middleware arrays ([#1421](https://github.com/feathersjs/feathers/issues/1421)) ([b605ab8](https://github.com/feathersjs/feathers/commit/b605ab8))
627
- * @feathersjs/express: replace `reduce` with `map` ([#1429](https://github.com/feathersjs/feathers/issues/1429)) ([44542e9](https://github.com/feathersjs/feathers/commit/44542e9))
628
- * Clean up hooks code ([#1407](https://github.com/feathersjs/feathers/issues/1407)) ([f25c88b](https://github.com/feathersjs/feathers/commit/f25c88b))
629
-
630
-
631
-
632
-
356
+ - @feathersjs/express: allow middleware arrays ([#1421](https://github.com/feathersjs/feathers/issues/1421)) ([b605ab8](https://github.com/feathersjs/feathers/commit/b605ab8))
357
+ - @feathersjs/express: replace `reduce` with `map` ([#1429](https://github.com/feathersjs/feathers/issues/1429)) ([44542e9](https://github.com/feathersjs/feathers/commit/44542e9))
358
+ - Clean up hooks code ([#1407](https://github.com/feathersjs/feathers/issues/1407)) ([f25c88b](https://github.com/feathersjs/feathers/commit/f25c88b))
633
359
 
634
360
  # [4.0.0-pre.3](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.2...v4.0.0-pre.3) (2019-06-01)
635
361
 
636
-
637
362
  ### Bug Fixes
638
363
 
639
- * Update dependencies and fix tests ([#1373](https://github.com/feathersjs/feathers/issues/1373)) ([d743a7f](https://github.com/feathersjs/feathers/commit/d743a7f))
640
-
641
-
642
-
643
-
364
+ - Update dependencies and fix tests ([#1373](https://github.com/feathersjs/feathers/issues/1373)) ([d743a7f](https://github.com/feathersjs/feathers/commit/d743a7f))
644
365
 
645
366
  # [4.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.1...v4.0.0-pre.2) (2019-05-15)
646
367
 
647
-
648
368
  ### Bug Fixes
649
369
 
650
- * Use `export =` in TypeScript definitions ([#1285](https://github.com/feathersjs/feathers/issues/1285)) ([12d0f4b](https://github.com/feathersjs/feathers/commit/12d0f4b))
651
-
652
-
653
-
654
-
370
+ - Use `export =` in TypeScript definitions ([#1285](https://github.com/feathersjs/feathers/issues/1285)) ([12d0f4b](https://github.com/feathersjs/feathers/commit/12d0f4b))
655
371
 
656
372
  # [4.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.0...v4.0.0-pre.1) (2019-05-08)
657
373
 
658
-
659
374
  ### Bug Fixes
660
375
 
661
- * Always require strategy parameter in authentication ([#1327](https://github.com/feathersjs/feathers/issues/1327)) ([d4a8021](https://github.com/feathersjs/feathers/commit/d4a8021))
662
- * Merge httpStrategies and authStrategies option ([#1308](https://github.com/feathersjs/feathers/issues/1308)) ([afa4d55](https://github.com/feathersjs/feathers/commit/afa4d55))
663
-
376
+ - Always require strategy parameter in authentication ([#1327](https://github.com/feathersjs/feathers/issues/1327)) ([d4a8021](https://github.com/feathersjs/feathers/commit/d4a8021))
377
+ - Merge httpStrategies and authStrategies option ([#1308](https://github.com/feathersjs/feathers/issues/1308)) ([afa4d55](https://github.com/feathersjs/feathers/commit/afa4d55))
664
378
 
665
379
  ### Features
666
380
 
667
- * Add params.headers to all transports when available ([#1303](https://github.com/feathersjs/feathers/issues/1303)) ([ebce79b](https://github.com/feathersjs/feathers/commit/ebce79b))
668
- * express use service.methods ([#945](https://github.com/feathersjs/feathers/issues/945)) ([3f0b1c3](https://github.com/feathersjs/feathers/commit/3f0b1c3))
669
-
670
-
671
-
672
-
381
+ - Add params.headers to all transports when available ([#1303](https://github.com/feathersjs/feathers/issues/1303)) ([ebce79b](https://github.com/feathersjs/feathers/commit/ebce79b))
382
+ - express use service.methods ([#945](https://github.com/feathersjs/feathers/issues/945)) ([3f0b1c3](https://github.com/feathersjs/feathers/commit/3f0b1c3))
673
383
 
674
384
  # [4.0.0-pre.0](https://github.com/feathersjs/feathers/compare/v3.2.0-pre.1...v4.0.0-pre.0) (2019-04-21)
675
385
 
676
-
677
386
  ### Bug Fixes
678
387
 
679
- * Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
680
- * Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
681
- * Update all dependencies to latest ([#1206](https://github.com/feathersjs/feathers/issues/1206)) ([e51e0f6](https://github.com/feathersjs/feathers/commit/e51e0f6))
682
- * **chore:** Properly configure and run code linter ([#1092](https://github.com/feathersjs/feathers/issues/1092)) ([fd3fc34](https://github.com/feathersjs/feathers/commit/fd3fc34))
683
- * **package:** update @feathersjs/commons to version 2.0.0 ([#31](https://github.com/feathersjs/feathers/issues/31)) ([c1ef5b1](https://github.com/feathersjs/feathers/commit/c1ef5b1))
684
- * **package:** update debug to version 3.0.0 ([#2](https://github.com/feathersjs/feathers/issues/2)) ([7e19603](https://github.com/feathersjs/feathers/commit/7e19603))
685
-
388
+ - Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
389
+ - Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
390
+ - Update all dependencies to latest ([#1206](https://github.com/feathersjs/feathers/issues/1206)) ([e51e0f6](https://github.com/feathersjs/feathers/commit/e51e0f6))
391
+ - **chore:** Properly configure and run code linter ([#1092](https://github.com/feathersjs/feathers/issues/1092)) ([fd3fc34](https://github.com/feathersjs/feathers/commit/fd3fc34))
392
+ - **package:** update @feathersjs/commons to version 2.0.0 ([#31](https://github.com/feathersjs/feathers/issues/31)) ([c1ef5b1](https://github.com/feathersjs/feathers/commit/c1ef5b1))
393
+ - **package:** update debug to version 3.0.0 ([#2](https://github.com/feathersjs/feathers/issues/2)) ([7e19603](https://github.com/feathersjs/feathers/commit/7e19603))
686
394
 
687
395
  ### Features
688
396
 
689
- * @feathersjs/authentication-oauth ([#1299](https://github.com/feathersjs/feathers/issues/1299)) ([656bae7](https://github.com/feathersjs/feathers/commit/656bae7))
690
- * Add AuthenticationBaseStrategy and make authentication option handling more explicit ([#1284](https://github.com/feathersjs/feathers/issues/1284)) ([2667d92](https://github.com/feathersjs/feathers/commit/2667d92))
691
- * Add TypeScript definitions ([#1275](https://github.com/feathersjs/feathers/issues/1275)) ([9dd6713](https://github.com/feathersjs/feathers/commit/9dd6713))
692
- * Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
693
- * Authentication v3 client ([#1240](https://github.com/feathersjs/feathers/issues/1240)) ([65b43bd](https://github.com/feathersjs/feathers/commit/65b43bd))
694
- * Authentication v3 Express integration ([#1218](https://github.com/feathersjs/feathers/issues/1218)) ([82bcfbe](https://github.com/feathersjs/feathers/commit/82bcfbe))
695
-
397
+ - @feathersjs/authentication-oauth ([#1299](https://github.com/feathersjs/feathers/issues/1299)) ([656bae7](https://github.com/feathersjs/feathers/commit/656bae7))
398
+ - Add AuthenticationBaseStrategy and make authentication option handling more explicit ([#1284](https://github.com/feathersjs/feathers/issues/1284)) ([2667d92](https://github.com/feathersjs/feathers/commit/2667d92))
399
+ - Add TypeScript definitions ([#1275](https://github.com/feathersjs/feathers/issues/1275)) ([9dd6713](https://github.com/feathersjs/feathers/commit/9dd6713))
400
+ - Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
401
+ - Authentication v3 client ([#1240](https://github.com/feathersjs/feathers/issues/1240)) ([65b43bd](https://github.com/feathersjs/feathers/commit/65b43bd))
402
+ - Authentication v3 Express integration ([#1218](https://github.com/feathersjs/feathers/issues/1218)) ([82bcfbe](https://github.com/feathersjs/feathers/commit/82bcfbe))
696
403
 
697
404
  ### BREAKING CHANGES
698
405
 
699
- * Rewrite for authentication v3
700
-
701
-
702
-
703
-
406
+ - Rewrite for authentication v3
704
407
 
705
408
  ## [1.3.1](https://github.com/feathersjs/feathers/compare/@feathersjs/express@1.3.0...@feathersjs/express@1.3.1) (2019-01-02)
706
409
 
707
-
708
410
  ### Bug Fixes
709
411
 
710
- * Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
711
-
712
-
713
-
714
-
412
+ - Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166dda))
715
413
 
716
414
  <a name="1.3.0"></a>
717
- # [1.3.0](https://github.com/feathersjs/feathers/compare/@feathersjs/express@1.2.7...@feathersjs/express@1.3.0) (2018-12-16)
718
415
 
416
+ # [1.3.0](https://github.com/feathersjs/feathers/compare/@feathersjs/express@1.2.7...@feathersjs/express@1.3.0) (2018-12-16)
719
417
 
720
418
  ### Bug Fixes
721
419
 
722
- * Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
723
- * **chore:** Properly configure and run code linter ([#1092](https://github.com/feathersjs/feathers/issues/1092)) ([fd3fc34](https://github.com/feathersjs/feathers/commit/fd3fc34))
724
-
420
+ - Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/9974803))
421
+ - **chore:** Properly configure and run code linter ([#1092](https://github.com/feathersjs/feathers/issues/1092)) ([fd3fc34](https://github.com/feathersjs/feathers/commit/fd3fc34))
725
422
 
726
423
  ### Features
727
424
 
728
- * Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
729
-
730
-
731
-
732
-
425
+ - Allow registering a service at the root level ([#1115](https://github.com/feathersjs/feathers/issues/1115)) ([c73d322](https://github.com/feathersjs/feathers/commit/c73d322))
733
426
 
734
427
  <a name="1.2.7"></a>
428
+
735
429
  ## [1.2.7](https://github.com/feathersjs/feathers/compare/@feathersjs/express@1.2.6...@feathersjs/express@1.2.7) (2018-09-21)
736
430
 
737
431
  **Note:** Version bump only for package @feathersjs/express
738
432
 
739
-
740
-
741
-
742
-
743
433
  <a name="1.2.6"></a>
434
+
744
435
  ## [1.2.6](https://github.com/feathersjs/feathers/compare/@feathersjs/express@1.2.5...@feathersjs/express@1.2.6) (2018-09-17)
745
436
 
746
437
  **Note:** Version bump only for package @feathersjs/express
747
438
 
748
-
749
-
750
-
751
-
752
439
  <a name="1.2.5"></a>
440
+
753
441
  ## [1.2.5](https://github.com/feathersjs/feathers/compare/@feathersjs/express@1.2.4...@feathersjs/express@1.2.5) (2018-09-02)
754
442
 
755
443
  **Note:** Version bump only for package @feathersjs/express
756
444
 
757
445
  <a name="1.2.4"></a>
446
+
758
447
  ## 1.2.4
759
448
 
760
449
  - Migrate to Monorepo ([feathers#462](https://github.com/feathersjs/feathers/issues/462))
761
450
 
762
451
  ## [v1.2.3](https://github.com/feathersjs/express/tree/v1.2.3) (2018-06-03)
452
+
763
453
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.2.2...v1.2.3)
764
454
 
765
455
  **Closed issues:**
@@ -772,6 +462,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
772
462
  - Update uberproto to the latest version [\#28](https://github.com/feathersjs/express/pull/28) ([bertho-zero](https://github.com/bertho-zero))
773
463
 
774
464
  ## [v1.2.2](https://github.com/feathersjs/express/tree/v1.2.2) (2018-04-16)
465
+
775
466
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.2.1...v1.2.2)
776
467
 
777
468
  **Merged pull requests:**
@@ -779,6 +470,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
779
470
  - Allow multiple express middleware functions to be passed into `app.use` [\#25](https://github.com/feathersjs/express/pull/25) ([eXigentCoder](https://github.com/eXigentCoder))
780
471
 
781
472
  ## [v1.2.1](https://github.com/feathersjs/express/tree/v1.2.1) (2018-03-29)
473
+
782
474
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.2.0...v1.2.1)
783
475
 
784
476
  **Closed issues:**
@@ -792,11 +484,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
792
484
  - Update axios to the latest version 🚀 [\#22](https://github.com/feathersjs/express/pull/22) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
793
485
 
794
486
  ## [v1.2.0](https://github.com/feathersjs/express/tree/v1.2.0) (2018-02-09)
487
+
795
488
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.1.2...v1.2.0)
796
489
 
797
490
  **Closed issues:**
798
491
 
799
- - Error in `create` method results in unhandled rejection [\#19](https://github.com/feathersjs/express/issues/19)
492
+ - Error in `create` method results in unhandled rejection [\#19](https://github.com/feathersjs/express/issues/19)
800
493
  - @feathersjs/express call without paramaters could returns an instance of express [\#18](https://github.com/feathersjs/express/issues/18)
801
494
  - Feathers-express blows up the feathers application version property and the example doesn't work [\#16](https://github.com/feathersjs/express/issues/16)
802
495
 
@@ -808,6 +501,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
808
501
  - Update semistandard to the latest version 🚀 [\#14](https://github.com/feathersjs/express/pull/14) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
809
502
 
810
503
  ## [v1.1.2](https://github.com/feathersjs/express/tree/v1.1.2) (2017-11-16)
504
+
811
505
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.1.1...v1.1.2)
812
506
 
813
507
  **Merged pull requests:**
@@ -815,6 +509,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
815
509
  - Export default and original Express object [\#12](https://github.com/feathersjs/express/pull/12) ([daffl](https://github.com/daffl))
816
510
 
817
511
  ## [v1.1.1](https://github.com/feathersjs/express/tree/v1.1.1) (2017-11-06)
512
+
818
513
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.1.0...v1.1.1)
819
514
 
820
515
  **Merged pull requests:**
@@ -822,6 +517,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
822
517
  - Also add notFound to export [\#11](https://github.com/feathersjs/express/pull/11) ([daffl](https://github.com/daffl))
823
518
 
824
519
  ## [v1.1.0](https://github.com/feathersjs/express/tree/v1.1.0) (2017-11-05)
520
+
825
521
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.0.0...v1.1.0)
826
522
 
827
523
  **Merged pull requests:**
@@ -829,9 +525,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
829
525
  - Re-export Express error handler [\#10](https://github.com/feathersjs/express/pull/10) ([daffl](https://github.com/daffl))
830
526
 
831
527
  ## [v1.0.0](https://github.com/feathersjs/express/tree/v1.0.0) (2017-11-01)
528
+
832
529
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.0.0-pre.4...v1.0.0)
833
530
 
834
531
  ## [v1.0.0-pre.4](https://github.com/feathersjs/express/tree/v1.0.0-pre.4) (2017-10-25)
532
+
835
533
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.0.0-pre.3...v1.0.0-pre.4)
836
534
 
837
535
  **Merged pull requests:**
@@ -839,6 +537,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
839
537
  - Update to better returnHook handling [\#9](https://github.com/feathersjs/express/pull/9) ([daffl](https://github.com/daffl))
840
538
 
841
539
  ## [v1.0.0-pre.3](https://github.com/feathersjs/express/tree/v1.0.0-pre.3) (2017-10-21)
540
+
842
541
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.0.0-pre.2...v1.0.0-pre.3)
843
542
 
844
543
  **Merged pull requests:**
@@ -848,6 +547,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
848
547
  - Update axios to the latest version 🚀 [\#6](https://github.com/feathersjs/express/pull/6) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
849
548
 
850
549
  ## [v1.0.0-pre.2](https://github.com/feathersjs/express/tree/v1.0.0-pre.2) (2017-10-18)
550
+
851
551
  [Full Changelog](https://github.com/feathersjs/express/compare/v1.0.0-pre.1...v1.0.0-pre.2)
852
552
 
853
553
  **Merged pull requests:**
@@ -857,10 +557,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
857
557
  - Update debug to the latest version 🚀 [\#2](https://github.com/feathersjs/express/pull/2) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
858
558
 
859
559
  ## [v1.0.0-pre.1](https://github.com/feathersjs/express/tree/v1.0.0-pre.1) (2017-07-19)
560
+
860
561
  **Merged pull requests:**
861
562
 
862
563
  - Update dependencies to enable Greenkeeper 🌴 [\#1](https://github.com/feathersjs/express/pull/1) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
863
564
 
864
-
865
-
866
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
565
+ \* _This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)_
package/lib/index.js CHANGED
@@ -104,16 +104,6 @@ function feathersExpress(feathersApp, expressApp = (0, express_1.default)()) {
104
104
  await this.setup(server);
105
105
  debug('Feathers application listening');
106
106
  return server;
107
- },
108
- async teardown(server) {
109
- return feathersTeardown.call(this, server).then(() => new Promise((resolve, reject) => {
110
- if (this.server) {
111
- this.server.close((e) => (e ? reject(e) : resolve(this)));
112
- }
113
- else {
114
- resolve(this);
115
- }
116
- }));
117
107
  }
118
108
  });
119
109
  const appDescriptors = {
@@ -133,6 +123,18 @@ function feathersExpress(feathersApp, expressApp = (0, express_1.default)()) {
133
123
  Object.defineProperty(expressApp, prop, newProp);
134
124
  }
135
125
  });
126
+ // Assign teardown and setup which will also make sure that hooks are initialized
127
+ app.setup = feathersApp.setup;
128
+ app.teardown = async function teardown(server) {
129
+ return feathersTeardown.call(this, server).then(() => new Promise((resolve, reject) => {
130
+ if (this.server) {
131
+ this.server.close((e) => (e ? reject(e) : resolve(this)));
132
+ }
133
+ else {
134
+ resolve(this);
135
+ }
136
+ }));
137
+ };
136
138
  app.configure((0, transport_commons_1.routing)());
137
139
  return app;
138
140
  }
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA0C;AAC1C,mDAAgG;AAChG,qEAAuD;AACvD,iDAAiD;AACjD,gDAAuB;AA4BrB,eA5BK,cAAI,CA4BL;AA1BN,iCAAqD;AAenD,qFAfO,WAAI,OAeP;AAEJ,0FAjB0B,gBAAS,OAiB1B;AAhBX,yCAAwE;AAiBtE,6FAjBO,uBAA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,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;CAChE"}
package/lib/rest.js CHANGED
@@ -15,6 +15,7 @@ const serviceMiddleware = () => {
15
15
  return toHandler(async (req, res, next) => {
16
16
  const { query, headers, path, body: data, method: httpMethod } = req;
17
17
  const methodOverride = req.headers[transport_commons_1.http.METHOD_HEADER];
18
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
18
19
  const { service, params: { __id: id = null, ...route } = {} } = req.lookup;
19
20
  const method = transport_commons_1.http.getServiceMethod(httpMethod, id, methodOverride);
20
21
  const { methods } = (0, feathers_1.getServiceOptions)(service);
package/lib/rest.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rest.js","sourceRoot":"","sources":["../src/rest.ts"],"names":[],"mappings":";;;AAAA,qCAAmE;AACnE,+CAAqD;AACrD,iDAAiD;AACjD,qEAAoD;AACpD,mDAA8F;AAE9F,qDAA8E;AAG9E,MAAM,KAAK,GAAG,IAAA,qBAAW,EAAC,0BAA0B,CAAC,CAAA;AAErD,MAAM,SAAS,GAAG,CAChB,IAAsE,EACtD,EAAE;IAClB,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAA;AAC/E,CAAC,CAAA;AAED,MAAM,iBAAiB,GAAG,GAAmB,EAAE;IAC7C,OAAO,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QACxC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,GAAG,CAAA;QACpE,MAAM,cAAc,GAAG,GAAG,CAAC,OAAO,CAAC,wBAAI,CAA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C,CAAA;IACJ,CAAC,CAAA;AACH,CAAC,CAAA;AA5BY,QAAA,IAAI,QA4BhB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@feathersjs/express",
3
3
  "description": "Feathers Express framework bindings and REST provider",
4
- "version": "5.0.0-pre.29",
4
+ "version": "5.0.0-pre.30",
5
5
  "homepage": "https://feathersjs.com",
6
6
  "main": "lib/",
7
7
  "types": "lib/",
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "scripts": {
43
43
  "prepublish": "npm run compile",
44
- "pack": "npm pack --pack-destination ../cli/test",
44
+ "pack": "npm pack --pack-destination ../cli/test/build",
45
45
  "compile": "shx rm -rf lib/ && tsc && npm run pack",
46
46
  "test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
47
47
  },
@@ -52,28 +52,28 @@
52
52
  "access": "public"
53
53
  },
54
54
  "dependencies": {
55
- "@feathersjs/authentication": "^5.0.0-pre.29",
56
- "@feathersjs/commons": "^5.0.0-pre.29",
57
- "@feathersjs/errors": "^5.0.0-pre.29",
58
- "@feathersjs/feathers": "^5.0.0-pre.29",
59
- "@feathersjs/transport-commons": "^5.0.0-pre.29",
60
- "@types/express": "^4.17.13",
61
- "@types/express-serve-static-core": "^4.17.30",
55
+ "@feathersjs/authentication": "^5.0.0-pre.30",
56
+ "@feathersjs/commons": "^5.0.0-pre.30",
57
+ "@feathersjs/errors": "^5.0.0-pre.30",
58
+ "@feathersjs/feathers": "^5.0.0-pre.30",
59
+ "@feathersjs/transport-commons": "^5.0.0-pre.30",
60
+ "@types/express": "^4.17.14",
61
+ "@types/express-serve-static-core": "^4.17.31",
62
62
  "cors": "^2.8.5",
63
63
  "express": "^4.18.1"
64
64
  },
65
65
  "devDependencies": {
66
- "@feathersjs/authentication-local": "^5.0.0-pre.29",
67
- "@feathersjs/tests": "^5.0.0-pre.29",
68
- "@types/lodash": "^4.14.185",
69
- "@types/mocha": "^9.1.1",
70
- "@types/node": "^18.7.17",
66
+ "@feathersjs/authentication-local": "^5.0.0-pre.30",
67
+ "@feathersjs/tests": "^5.0.0-pre.30",
68
+ "@types/lodash": "^4.14.186",
69
+ "@types/mocha": "^10.0.0",
70
+ "@types/node": "^18.8.2",
71
71
  "axios": "^0.27.2",
72
72
  "lodash": "^4.17.21",
73
73
  "mocha": "^10.0.0",
74
74
  "shx": "^0.3.4",
75
75
  "ts-node": "^10.9.1",
76
- "typescript": "^4.8.3"
76
+ "typescript": "^4.8.4"
77
77
  },
78
- "gitHead": "4314dc89a41a8bbaabf00b47697bf7887861d17d"
78
+ "gitHead": "b535c91197f4b997520e0a0e608793eeba791931"
79
79
  }
package/src/index.ts CHANGED
@@ -102,19 +102,6 @@ export default function feathersExpress<S = any, C = any>(
102
102
  debug('Feathers application listening')
103
103
 
104
104
  return server
105
- },
106
-
107
- async teardown(server?: any) {
108
- return feathersTeardown.call(this, server).then(
109
- () =>
110
- new Promise((resolve, reject) => {
111
- if (this.server) {
112
- this.server.close((e) => (e ? reject(e) : resolve(this)))
113
- } else {
114
- resolve(this)
115
- }
116
- })
117
- )
118
105
  }
119
106
  } as Application<S, C>)
120
107
 
@@ -138,6 +125,21 @@ export default function feathersExpress<S = any, C = any>(
138
125
  }
139
126
  })
140
127
 
128
+ // Assign teardown and setup which will also make sure that hooks are initialized
129
+ app.setup = feathersApp.setup as any
130
+ app.teardown = async function teardown(server?: any) {
131
+ return feathersTeardown.call(this, server).then(
132
+ () =>
133
+ new Promise((resolve, reject) => {
134
+ if (this.server) {
135
+ this.server.close((e) => (e ? reject(e) : resolve(this)))
136
+ } else {
137
+ resolve(this)
138
+ }
139
+ })
140
+ )
141
+ }
142
+
141
143
  app.configure(routing() as any)
142
144
 
143
145
  return app
package/src/rest.ts CHANGED
@@ -20,6 +20,7 @@ const serviceMiddleware = (): RequestHandler => {
20
20
  const { query, headers, path, body: data, method: httpMethod } = req
21
21
  const methodOverride = req.headers[http.METHOD_HEADER] as string | undefined
22
22
 
23
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
23
24
  const { service, params: { __id: id = null, ...route } = {} } = req.lookup!
24
25
  const method = http.getServiceMethod(httpMethod, id, methodOverride)
25
26
  const { methods } = getServiceOptions(service)