Releases: serhiisol/node-decorators
Releases · serhiisol/node-decorators
Server-1.0.0-beta.18
Core
- Fixed
Decoratereplacing class parameter
Http
- Added
getAdaptertoHttpModule
Sockets
- Removed
@Disconnectingevent - Added
getAdaptertoSocketsModule - Added
adapter.disconnectif error occurs onconnection
Server-1.0.0-beta.17
- Sockets swagger support
- Fixed
ApiOperationusage
Server-1.0.0-beta.16
Core
- Changed param metadata source - changed it to method
paramDecoratorFactoryaddscallIndexto the param, in case if few decorators are used for the same method- Added base
HandlerCreatorabstract class MetadataScannermoved to the core
Http
- Reused
HandlerCreatorclass for handlers - Fixed applying all the namespace urls to the routes
adapter.closemethod updated for all the adapters
Sockets
- Reused
HandlerCreatorclass 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.listenno longer receivesport:numberparam, port will be forwarded to theserver.listeninstance.
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.routewas 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
createParamDecoratorandadapter.getParamfactory 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