This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
Releases: serhiisol/node-decorators
Releases · serhiisol/node-decorators
[email protected]
- Updated di version to 2.0.0
[email protected]
- added fix to handle arrow functions as middlewares (fixes #131)
[email protected]
- Added async providers support
- Added eslint to the project
- Cleaned up old legacy typedocs
BREAKING CHANGE
Container.get
now returns a promise. Requirements for async providers.
[email protected]
- fixed Openapi package caused by express 2.8.0 update
[email protected]
- Fixed type definitions
- IO_MIDDLEWARE as optional middleware (fixes #119)
- Function as middleware
[email protected]
Features:
- Added support of
return value
(closes #120) - Added support of simple functions as middlewares (closes #118)
- Added
@Status
decorator to send specific status code for routes that don't use@Res
but use returned value instead - Removed default args for routes that won't provide any param decorators
Fixes:
- Defining multiple routes for the same method won't merge middlewares, each route will now have own middleware list
[email protected]
- Added
Req
andRes
aliases forRequest
andResponse
param decorators respectively (#117)
[email protected]
- Initial release of express openapi package (#114)
[email protected]
- Allow having multiple route decorators per method (#113)
[email protected]
- Keep middlewares in controllers and routes meta if already set (#107)