- Update Dependencies
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.6
TimeStamps
's (Default Class) properties are not marked asReadonly
anymore- All Typeguards now accept
undefined
as the first parameter too (if an type was OR withundefined
, the function would give an type-error) - Add option
discriminators
for embedded Discriminators [#248] - Set correct Decorator Return type (
ClassDecorator
&PropertyDecorator
) - Change warning message for
warnMixed
- If an SchemaType dosnt extend
SchemaTypeOptions
, the options are now defaulted to the outer-layer innerOptions
andouterOptions
can now be used for Maps too- Custom Validators now support
message
being an function - Automatically convert
mongoose.Types.Buffer
tomongoose.Schema.Types.Buffer
- Fix Types when extending default class
Base
with other thanObjectId
[#316] - [IC]
mapOptions
now always errors if the given type dosnt extendmongoose.SchemaTypeOptions
- [IC] Moved function
_buildPropMetadata
to its own file (processProp
) and renamed it toprocessProp
[#286] - [IC] Moved pre-processing in function
prop
intoprocessProp
[#286] - [IC] Removed error
NoMetadataError
- [IC] Removed check that
Type
needs to be defined inprop
/processProp