0.8.0
版本发布时间: 2019-10-02 03:36:51
typestack/routing-controllers最新发布版本:v0.10.4(2023-04-29 00:45:23)
0.8.0 [BREAKING CHANGES]
- class-transformer and class-validator are now peer dependencies.
Features #### Features
- Extract generic
@Session()
decorator into@SessionParam()
and@Session()
(ref [#335][#348][#407]) - Restore/introduce
@QueryParams()
and@Params()
missing decorators options (ref [#289]) - 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]) - 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])