github typegoose/typegoose v6.1.0
Release 6.1.0

latest releases: v12.4.0, v12.4.0-beta.2, v12.3.1...
4 years ago
  • Update Dependencies
    • Upgrade mongoose from 5.7.1 to 5.7.7
    • [IC] Upgrade Typescript from 3.6.x to 3.7.2
  • Completly remove @staticMethod & @instanceMethod, because they were completly obsolete
  • README now has no documentation anymore
  • @prop({ validate }) now accepts { validator, message } as an array
  • Add function deleteModel & deleteModelWithClass
  • allow Prop Option "type" to overwrite the inferred type look here for an example
  • integrate "Array Validators & Transform" tests #29
  • adding global options, with setGlobalOptions
  • add modelOption runSyncIndexes
  • add modelOption allowMixed
  • add text to PropOptions
  • deprecate ArrayPropOptions's itemsRef, itemsRefPath & itemsRefType
  • DocumentType will now overwrite the type of _id if the class is extending Base (in typescript there is currently no other way)
  • add tslib as dependencie to minimize generated code
  • fixing typo in (deprecated) setModelForClass
  • Remake how Enums are handeled, use setGlobalOptions({ globalOptions: { useNewEnum: true } }) (to not break existing databases made with the old handling)
  • add function getModelWithString
  • [IC] tsconfig: add option "strictBindCallApply"
  • [IC] tsconfig: add option "strictFunctionTypes"
  • [IC] combine initAsObject and initAsArray into initProperty
  • [IC] Use internal "isNullOrUndefined", needed because all "util.is*" functions got deprecated in node 4.0.0
  • [IC] Replace all "isArray" with "Array.isArray", needed because all "util.is*" functions got deprecated in node 4.0.0
  • [IC] adding many sanity isNullOrUndefined checks
  • [IC] Re-done how the handling of Mixed is done
  • [IC] Re-done how IModelOptions are merged (thanks to lodash cloneDeepWith & mergeWith)
  • [IC] de-duplicate "ref" & "refPath" code
  • [IC] added test for "Custom Types"
  • [IC] typegoose now makes use of "importHelpers"(tsconfig) to save some space
  • [IC] Refactor how "isPrimitive" works, some types like Buffer & Decimal now work
  • [IC] Added more debug logs to prop.ts
  • [IC] Move Decorator Cache to the class itself
  • [IC] "baseProp" now uses one single arguments, whith all the options
  • [IC] "createUniqueID" now returns a boolean instead of the "initname"

https://typegoose.github.io/typegoose/changelog#610

Don't miss a new typegoose release

NewReleases is sending notifications on new releases.