@typegoose/typegoose
Advanced tools
Changelog
7.3.3
process
is definedutil.format
with template strings [typegoose#348]util.deprecate
[typegoose#344]Changelog
7.3.2
@prop
tsdoc to show it supports Maps and ArraysChangelog
7.3.1
typescript
to 3.9.7countDocuments
, estimatedDocumentCount
, deleteMany
, findOneAndDelete
, deleteOne
Changelog
7.3.0
mongoose
to 5.9.22lodash
to 4.17.19@types/mongoose
to 5.7.30@types/lodash
to 4.14.157@types/semver
to 7.3.1typescript
to 3.9.6TimeStamps
's (Default Class) properties are not marked as Readonly
anymoreundefined
as the first parameter too (if an type was OR with undefined
, the function would give an type-error)discriminators
for embedded Discriminators [typegoose#248]ClassDecorator
& PropertyDecorator
)warnMixed
SchemaTypeOptions
, the options are now defaulted to the outer-layerinnerOptions
and outerOptions
can now be used for Maps toomessage
being an functionmongoose.Types.Buffer
to mongoose.Schema.Types.Buffer
Base
with other than ObjectId
[typegoose#316]mapOptions
now always errors if the given type doesn't extend mongoose.SchemaTypeOptions
_buildPropMetadata
to its own file (processProp
) and renamed it to processProp
[typegoose#286]prop
into processProp
[typegoose#286]NoMetadataError
Type
needs to be defined in prop
/ processProp
Changelog
7.2.0
mongoose
to 5.9.17@types/mongoose
to 5.7.21typescript
to 3.9.3RefSchemaType
mongoose.Schema.Types.*
that are suitable for ref to RefType
@mapProp
(TDEP0002
) & @arrayProp
(TDEP0001
)type
-alias options, items
& of
& refType
(TDEP0003
)mongoose.Types.Array<Ref<>>
for Typeguards (isDocumentArray
& isRefTypeArray
) [typegoose#278]Changelog
7.1.3
ref
is set but is undefined/null
mongoose.Types.DocumentArray
and mongoose.Schema.Types.DocumentArray
to @prop
array-detectionif (!kind)
to if (isNullOrUndefined(kind))
Changelog
7.1.2
@prop
options types now work againBasePropOptions.type
is now unknown
instead of any
BasePropOptions.type
now inherit the types from thererefType
is now moved to prop
Changelog
7.1.1
PropOptions
PropOptionsWithValidate
PropOptionsWithNumberValidate
to PropOptionsForNumber
PropOptionsWithStringValidate
to PropOptionsForString
options
& match
for VirtualOptions
enum
for ValidateNumberOptions
arrayProp
& mapProp
are now just an alias for prop
@deprecated
for arrayProp
and mapProp
mongoose.Types.Array
& mongoose.Schema.Types.Array
as Array
in @prop
mongoose.Types.Map
& mongoose.Schema.Types.Map
as Map
in @prop
@prop
Base
's __v
& __t
are now optional (with ?
)mongoose.Schema.Types.String
& mongoose.Schema.Types.Number
as valid enum typesof
& items
are now mapped to type
and get called when buildSchema
is calledprop.ts