Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Releases: serhiisol/node-decorators

Common#1.1.2

28 Jun 11:22
Compare
Choose a tag to compare

Bug fixes

  • fix(common): Rethrow errors in suppress decorator (#47)

Socket#2.0.0

24 Apr 14:31
Compare
Choose a tag to compare

Features

  • Added wrap option for @io(WrapperClass?) decorator, see @socket() decorator for details

Breaking changes

  • Renamed
  • 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

30 Mar 20:05
Compare
Choose a tag to compare

FEATURES

  • schema() helper function added in order to reach mongoose schema in the same way, with @decorators/mongoose class

BREAKING CHANGES

  • removed deprecated @set() = @option()
  • renamed bootstrapMongoose to model(...)
  • renamed ModelClass

Mongoose#1.2.1

07 Mar 21:10
Compare
Choose a tag to compare
  • Fixed model ctx for DI

Common#1.1.1

07 Mar 21:11
Compare
Choose a tag to compare
  • Fix for @catch() to provide proper arguments if original function returns Promise (async function)

Common#1.1.0

01 Mar 09:00
Compare
Choose a tag to compare
  • 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

28 Feb 15:26
Compare
Choose a tag to compare

This PR fixes:

  1. Controller DI (closes #29)
{ provide: UserController, deps: [UserService] }
  1. Renamed methods bootstrapSocketIO and attachControllerToSocket (see README for details)

Mongoose#1.2.0

27 Feb 23:02
Compare
Choose a tag to compare
  1. Model DI (closes #35)
  2. Cleaned up README (closes #33)

Express#1.3.0

27 Feb 23:02
Compare
Choose a tag to compare
  1. Moved express-related types to package interfaces
  2. @request decorator accepts optional parameter name (closes #27)
  3. Controller DI (closes #28)

Mongoose#1.1.2

30 Jan 11:52
Compare
Choose a tag to compare
  • Add options parameter to Model decorator
  • Mark Set and Option decorator as deprecated (emit console warning)
  • Update README.md accordingly