9.4.0-beta.1 (2021-12-14)
Features
- errors: add custom Error "ExpectedTypeError" (506d145)
- errors: add Error "OptionDoesNotSupportOptionError", merge E020 and E021 into E027 (04491ad)
- errors: move Error E014 into custom Error "ResolveTypegooseNameError" (3ca1a67)
- errors::NoValidClassError: add Error Code to Error and change message (32db334)
- globalOptions: change to use custom Error "ExpectedTypeError" (c6540a5)
- hooks::addToHooks: change to use "ExpectedTypeError" 1 (b8d630f)
- hooks::addToHooks: change to use "ExpectedTypeError" 2 (4769658)
- processProp: use custom Error "InvalidEnumTypeError" (83f131b)
- schema: use custom Error "NoDiscriminatorFunctionError" (00de1cf)
- schema: use custom Error "PathNotInSchemaError" (a897e0c)
- typegoose::deleteModel: change to use custom Error "ExpectedTypeError" (90268b9)
- typegoose::getModelWithString: change to use custom Error "ExpectedTypeError" (ebcab71)
- typegoose:deleteModel: change to not error when not existing (fc30052)
- utils::getName: throw Error when "cl" cannot be resolved to a constructor (7800289)
- utils::mapOptions: use custom Error "InvalidOptionsConstructor" (8199f2f)
Style
- add more Error REFACTOR and TODO comments (108301e)