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
Common#1.1.2
Bug fixes
- fix(common): Rethrow errors in suppress decorator (#47)
Socket#2.0.0
Features
Breaking changes
- Renamed
- @callback() to @ack()
- @GlobalMiddleware() for socket global middleware to @Middleware()
- Renamed @namespace() to @controller(namespace: string, middleware?: Function | Function[])
- Removed
- @Middleware(middleware: Function | Function[]) - use Controller based middleware
- deprecated bootstrapSocketIO(io: SocketIO.Server, Controllers) - Attaches controllers to IO server - use attachControllers() instead
- deprecated attachControllerToSocket(io: SocketIO.Server, socket: SocketIO.Socket, Controllers) - Attaches controllers to Socket - use attachControllersToSocket() instead
Mongoose#2.0.0
Mongoose#1.2.1
- Fixed model ctx for DI
Common#1.1.1
- Fix for @catch() to provide proper arguments if original function returns Promise (async function)
Common#1.1.0
- Moved project back to es5
- @catch() now accepts all passed arguments of the original function and error, e.g.:
@Catch((volume: number, e: Error) => {
// ...
})
sound(volume: number) {}
Socket#1.4.0
This PR fixes:
- Controller DI (closes #29)
{ provide: UserController, deps: [UserService] }
- Renamed methods bootstrapSocketIO and attachControllerToSocket (see README for details)
Mongoose#1.2.0
- Model DI (closes #35)
- Cleaned up README (closes #33)
Express#1.3.0
- Moved express-related types to package interfaces
- @request decorator accepts optional parameter name (closes #27)
- Controller DI (closes #28)
Mongoose#1.1.2
- Add options parameter to Model decorator
- Mark Set and Option decorator as deprecated (emit console warning)
- Update README.md accordingly