github typegoose/typegoose v7.1.0
Release 7.1.0

latest releases: v12.4.0, v12.4.0-beta.2, v12.3.1...
4 years ago
  • Update Dependencies
    • mongoose to 5.9.14
    • @types/mongoose to 5.7.19
    • tslib to 2.0.0
    • typescript to 3.9.2
  • Fix duplicate hooks / virtuals / queryMethods / plugins / indices via inheritance [#218 ]
  • improve TSDoc of some functions
  • Fix queryMethod reflection
  • Set proper function type for queryMethod
  • Added the ability to define option ref with an arrow-function (ref: () => type)
  • All Decorators are now exported PascalCased & camelCased
  • Actually export the @queryMethod decorator
  • The @queryMethod decorator now has correct types [#247]
  • The functions addModelToTypegoose, getModelForClass, buildSchema, deleteModelWithClass, getDiscriminatorModelForClass now have the T generic removed (it was unnecessary)
  • The functions addModelToTypegoose, getModelForClass, getDiscriminatorModelForClass now have an new optional generic QueryHelpers
  • The Type ReturnModelType now has the T generic removed (it was unnecessary)
  • The Type ReturnModelType now has an second optional generic QueryHelpers
  • Fix bug where ref: Class didnt execute getName when Virtual-Populate was used
  • Allow use of @prop for arrays & maps (In preparation for 8.0), it is now auto-detected based on design:type
  • The Decorator @plugin now automatically infers the options if the plugin & function have typings and use options
  • [IC] add some tslint rules & apply them
  • [IC] enable "strictNullChecks" & fix accordingly

https://typegoose.github.io/typegoose/docs/changelog#710

Don't miss a new typegoose release

NewReleases is sending notifications on new releases.