- 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 extendingBase
(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
andinitAsArray
intoinitProperty
- [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 lodashcloneDeepWith
&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"