Skip to content

Releases: typegoose/typegoose

Release 6.1.6

29 Nov 09:46
b3feaf9
Compare
Choose a tag to compare
  • handle _id: false/true better
  • add function getClass
  • [IC] fix using "name"-getter in getName

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

Release 6.1.5

18 Nov 20:10
v6.1.5
55d1b54
Compare
Choose a tag to compare
  • Option merging is now properly done
  • [IC] fix giving wrong key to customMerger
  • [IC] remove the need to use "cloneDeepWith"

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

Release 6.1.4

18 Nov 18:43
v6.1.4
e540408
Compare
Choose a tag to compare
  • Apply Global Options without needing @modeloptions
  • [IC] add function "utils.assignGlobalModelOptions"

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

Release 6.1.3

18 Nov 17:08
v6.1.3
ac7981c
Compare
Choose a tag to compare
  • fix bug when "buildSchema" didnt get called when overwriting the type in @prop
  • [IC] add tests for Generic Discriminators

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

Release 6.1.2

11 Nov 13:20
v6.1.2
656a99f
Compare
Choose a tag to compare
  • Allow setting _id: false (and apply it) for @mapProp
  • [IC] De-duplicate code for _id if subDocument

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

Release 6.1.1

08 Nov 18:39
v6.1.1
6878258
Compare
Choose a tag to compare
  • deleteModel now deletes the model from the connection it is on #119
  • [IC] de-duplicate test code for connecting

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

Release 6.1.0

06 Nov 08:06
v6.1.0
5a9bbaf
Compare
Choose a tag to compare
  • 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

Release 6.0.4

16 Oct 21:07
v6.0.4
1f094d3
Compare
Choose a tag to compare

This Release didnt change anything on the code, it was mostly tests & github-page

  • Update Dependencies
    • Upgrade mongoose from 5.7.1 to 5.7.4
  • Added soft warning when using "ref" in an "arrayProp"
  • Added soft warning when using "refPath" in an "arrayProp"
  • Add missing ")" to a deprecation message
  • [IC] Fixed some Test's types
  • [IC] internal variable renames to better reflect what they are for

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

Release 6.0.3

16 Oct 21:00
v6.0.3
580c2b0
Compare
Choose a tag to compare
  • when using @plugin, options are now checked if they are an object, when not: make them an object
  • Added many debug logs for _buildSchema
  • Added Prop Option autopopulate, only has an effect if mongoose-autopopulate is used
  • Added default class FindOrCreate which has the types for mongoose-findorcreate

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

Release 6.0.2

16 Oct 21:00
v6.0.2
796a1e0
Compare
Choose a tag to compare
  • actually allow overwriting "_id" of "Base"
  • [IC] add npm version script

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