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
Server-1.0.0-beta.18
Core
- Fixed
Decorate
replacing class parameter
Http
- Added
getAdapter
toHttpModule
Sockets
- Removed
@Disconnecting
event - Added
getAdapter
toSocketsModule
- Added
adapter.disconnect
if error occurs onconnection
Server-1.0.0-beta.17
- Sockets swagger support
- Fixed
ApiOperation
usage
Server-1.0.0-beta.16
Core
- Changed param metadata source - changed it to method
paramDecoratorFactory
addscallIndex
to the param, in case if few decorators are used for the same method- Added base
HandlerCreator
abstract class MetadataScanner
moved to the core
Http
- Reused
HandlerCreator
class for handlers - Fixed applying all the namespace urls to the routes
adapter.close
method updated for all the adapters
Sockets
- Reused
HandlerCreator
class for handlers
Server-1.0.0-beta.15
- Added web sockets module
- Socket.io adapter
Server-1.0.0-beta.14
- Existing server instance can be now provided to the application:
const app = await Application.create(AppModule, server);
- Adds ability to instantiate an adapter with custom application (express, fastify or koa):
HttpModule.create(new ExpressAdapter(app));
adapter.listen
no longer receivesport:number
param, port will be forwarded to theserver.listen
instance.
Server-1.0.0-beta.13
- updated handling of missing views in koa and fastify adapters
Server-1.0.0-beta.12
- Koa adapter was added
- Adjustments to support koa
adapter.route
was removed in favor ofadapter.routes
, adapters can now register all routes at once (for example using routers) instead of one at a time.
Server-1.0.0-beta.11
- Fastify adapter was added
- Adjustments to support fastify
createParamDecorator
andadapter.getParam
factory will return function instead, promise-like params are causing delays in execution while awaiting for them in the handler.
Server-1.0.0-beta.9
- Initial release of Swagger Platform
Server-1.0.0-beta.8
- Removes standard type validation
- Adds custom param validators:
post(@Params('id', (id) => !IsNaN(Number(id))) id: number) {}
Resolves #183