Releases: typegoose/typegoose
Releases · typegoose/typegoose
Release 6.1.6
- handle
_id: false/true
better - add function
getClass
- [IC] fix using "name"-getter in
getName
Release 6.1.5
- Option merging is now properly done
- [IC] fix giving wrong key to customMerger
- [IC] remove the need to use "cloneDeepWith"
Release 6.1.4
- Apply Global Options without needing @modeloptions
- [IC] add function "utils.assignGlobalModelOptions"
Release 6.1.3
- fix bug when "buildSchema" didnt get called when overwriting the type in
@prop
- [IC] add tests for Generic Discriminators
Release 6.1.2
- Allow setting
_id: false
(and apply it) for@mapProp
- [IC] De-duplicate code for
_id
if subDocument
Release 6.1.1
deleteModel
now deletes the model from the connection it is on #119- [IC] de-duplicate test code for connecting
Release 6.1.0
- 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"
Release 6.0.4
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
Release 6.0.3
- 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 ifmongoose-autopopulate
is used - Added default class
FindOrCreate
which has the types formongoose-findorcreate
Release 6.0.2
- actually allow overwriting "_id" of "Base"
- [IC] add npm version script