You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- extract generic `@Session()` deocorator into `@SessionParam()` and `@Session()`
6
-
- restore/introduce `@QueryParams()` and `@Params()` missing decorators options (they are needed for validation purposes) - #289
7
-
- normalize param object properties (for "queries", "headers", "params" and "cookies") - now you can easily validate query/path params using `class-validator` - #289
8
-
- enhance params normalization - converting from string to primitive types is now more strict and can throw ParamNormalizationError,
9
-
e.g. when number is expected but the invalid string (NaN) has been received - #289
8
+
- restore/introduce `@QueryParams()` and `@Params()` missing decorators options (ref [#289][#289])
9
+
- normalize param object properties (for "queries", "headers", "params" and "cookies"), with this change you can easily validate query/path params using `class-validator` (ref [#289][#289])
10
+
- improved params normalization, converting to primitive types is now more strict and can throw ParamNormalizationError (e.g. when number is expected but an invalid string (NaN) has been received) (ref [#289][#289])
11
+
12
+
### 0.7.7 (to be released)
13
+
14
+
#### Features
15
+
16
+
- feat(ErrorHandling): add support for custom toJSON method in errors (ref [#325][#325])
17
+
18
+
#### Fixes
19
+
20
+
- fixed inconsistent roles parameter in authorizationChecker (ref [#308][#308])
21
+
22
+
### 0.7.6
23
+
24
+
#### Fixes
25
+
26
+
- fixed bugs with undefined result code behaviour
27
+
28
+
### 0.7.5
29
+
30
+
#### Fixes
31
+
32
+
- fixed bugs with undefined result code behaviour
33
+
34
+
### 0.7.4
35
+
36
+
#### Fixes
37
+
38
+
- fixed bugs with undefined result code behaviour
10
39
11
40
### 0.7.3
12
41
13
-
- FIXED: Directly calling response bug - #286
14
-
- FIXED: Missing parameter in @BodyParam error message - #284
15
-
- FIXED: Sync and async auth checker bug - #283
16
-
- FIXED: Handling different content-type responses in JsonController - #277
17
-
- ADDED: Support for returning Buffer and streams from action handler (controller's method) - #285
18
-
- ADDED: Custom driver support - #276
42
+
#### Features
43
+
44
+
- Support for returning Buffer and streams from action handler (controller's method) (ref [#285][#285])
- FIXED: check auth permissions before accepting files for upload (ref [#251](https://github.com/pleerock/routing-controllers/pull/240))
56
+
#### Fixes
25
57
26
-
### 0.7.1
58
+
- Using `@Authorization` decorator with Koa caused 404 responses (ref [#240][#240])
59
+
- Allow throwing custom errors in `authorizationChecker` (ref [#233][#233])
60
+
- check auth permissions before accepting files for upload (ref [#251][#251])
27
61
28
62
### 0.7.0 [BREAKING CHANGES]
29
63
@@ -33,8 +67,7 @@ e.g. when number is expected but the invalid string (NaN) has been received - #2
33
67
-`MiddlewareInterface` was removed and instead `ExpressMiddlewareInterface` or `KoaMiddlewareInterface` should be used
34
68
-`ExpressErrorMiddlewareInterface` was renamed into `ErrorMiddlewareInterface`
35
69
- per-controller and per-action middlewares used in `@UseBefore` and `@UseAfter` now should not be marked with `@Middleware` decorator
36
-
-`@MiddlewareGlobalBefore()` and `@MiddlewareGlobalAfter()` were removed and instead new signatures should be used: `@Middleware({ type: "before" })`
37
-
and `@Middleware({ type: "after" })`
70
+
-`@MiddlewareGlobalBefore()` and `@MiddlewareGlobalAfter()` were removed and instead new signatures should be used: `@Middleware({ type: "before" })` and `@Middleware({ type: "after" })`
38
71
- named some decorator parameter names
39
72
- added few new decorators to get all parameters like `@QueryParams`, `@Params`, `@HeaderParams` etc.
40
73
- added `@Authorized` and `@CurrentUser` decorators
@@ -50,29 +83,55 @@ and `@Middleware({ type: "after" })`
50
83
51
84
### 0.6.10
52
85
53
-
* added integration with `class-transform-validator` for deserialization and auto validation request parameters
86
+
#### Features
87
+
88
+
- added integration with `class-transform-validator` for deserialization and auto validation request parameters
54
89
55
90
### 0.6.2
56
91
57
-
* made interceptors to support promises
92
+
#### Features
93
+
94
+
- made interceptors to support promises
58
95
59
96
### 0.6.1
60
97
98
+
#### Features
99
+
61
100
- added interceptors support
62
101
63
102
### 0.6.0 [BREAKING CHANGES]
64
103
104
+
#### Features
105
+
65
106
- middleware and error handlers support
66
107
- everything packed into "routing-controllers" main export
67
-
- removed parseJson from @Body decorator
68
-
- removed ActionOptions
69
-
- removed responseType from action options and added @JsonResponse and @TextResponse decorators
70
108
- added few more new decorators
109
+
110
+
#### Fixes
111
+
71
112
- fixed multiple issues with param decorators
72
113
- fixed multiple bugs
73
114
- refactored core
74
115
116
+
#### Removals
117
+
118
+
- removed `parseJson` from `@Body` decorator
119
+
- removed `ActionOptions`
120
+
- removed `responseType` from action options and added `@JsonResponse` and `@TextResponse` decorators
121
+
75
122
### 0.5.0
76
123
77
124
- renamed package from `controllers.ts` to `routing-controllers`
78
125
- added integration with `constructor-utils` for serialization and deserialization
0 commit comments