You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
typegoose__typegoose/CHANGELOG.md

2747 lines
191 KiB

2 weeks ago
## [11.2.0](https://github.com/typegoose/typegoose/compare/v11.1.0...v11.2.0) (2023-05-20)
### Features
* support "enum" being a deferred function ([3b754f0](https://github.com/typegoose/typegoose/commit/3b754f0a18a3d1d1c5549d29d50542faf9153a5f))
### Reverts
* Revert "dependencies(@types/node): upgrade to 16.11.7" ([90c5fde](https://github.com/typegoose/typegoose/commit/90c5fde4f1f3addeb7843f4cc88a1fab76ca7cfd))
### Fixes
* allow usage and translation of "enum: { values: Type }" ([3ca1d5f](https://github.com/typegoose/typegoose/commit/3ca1d5fe04cd19f16b4f19e9ea16310bcb640466))
### Dependencies
* **@types/lodash:** upgrade to 4.14.192 ([b9ec3fe](https://github.com/typegoose/typegoose/commit/b9ec3fe22f7f9e5bf47b6629f0e973c3904eb012))
* **@types/node:** upgrade to 14.18.45 ([502436a](https://github.com/typegoose/typegoose/commit/502436a43ff20ab675cf6d876693526cc7ce2241))
* **@types/semver:** upgrade to 7.5.0 ([162d0a6](https://github.com/typegoose/typegoose/commit/162d0a6daa66c8f6ae8817c60e5b3a155a535381))
* **@typescript-eslint/*:** upgrade to 5.57.0 ([ed40301](https://github.com/typegoose/typegoose/commit/ed40301d69cb0fa6dbd50bb2102561575e7445a4))
* **@typescript-eslint/*:** upgrade to 5.59.6 ([b4c7760](https://github.com/typegoose/typegoose/commit/b4c776027d42860eeb34a7ca2ac59d909b91fd54))
* **commitlint:** upgrade to 17.5.1 ([1a3db22](https://github.com/typegoose/typegoose/commit/1a3db22e1e33fdce7d36ea9f06dfde26d740d7c0))
* **commitlint:** upgrade to 17.6.3 ([4181605](https://github.com/typegoose/typegoose/commit/41816058272e15dc26ce5d4a62c5b087e0ed1ee9))
* **eslint:** upgrade to 8.37.0 ([62cac9f](https://github.com/typegoose/typegoose/commit/62cac9f8eef2d85a996b529063d4ebb8273d2f05))
* **eslint:** upgrade to 8.41.0 ([e2f55d7](https://github.com/typegoose/typegoose/commit/e2f55d76c9c3ceb721faa30142fca777330122ae))
* **mongoose:** upgrade to 7.2.0 ([c53fa61](https://github.com/typegoose/typegoose/commit/c53fa61324485d9d952ae18c87bd1fff1331ee79))
* **semver:** upgrade to 7.5.1 ([0b929d2](https://github.com/typegoose/typegoose/commit/0b929d247dc442f410470d3a271ce710d666eefe))
* **tslib:** upgrade to 2.5.2 ([1c9b9cb](https://github.com/typegoose/typegoose/commit/1c9b9cb2049e73a19778f908c588196cf4801f50))
## [11.2.0-beta.1](https://github.com/typegoose/typegoose/compare/v11.1.0...v11.2.0-beta.1) (2023-05-08)
### Features
* support "enum" being a deferred function ([3b754f0](https://github.com/typegoose/typegoose/commit/3b754f0a18a3d1d1c5549d29d50542faf9153a5f))
### Reverts
* Revert "dependencies(@types/node): upgrade to 16.11.7" ([90c5fde](https://github.com/typegoose/typegoose/commit/90c5fde4f1f3addeb7843f4cc88a1fab76ca7cfd))
### Fixes
* allow usage and translation of "enum: { values: Type }" ([3ca1d5f](https://github.com/typegoose/typegoose/commit/3ca1d5fe04cd19f16b4f19e9ea16310bcb640466))
### Dependencies
* **@types/lodash:** upgrade to 4.14.192 ([b9ec3fe](https://github.com/typegoose/typegoose/commit/b9ec3fe22f7f9e5bf47b6629f0e973c3904eb012))
* **@types/node:** upgrade to 14.18.45 ([502436a](https://github.com/typegoose/typegoose/commit/502436a43ff20ab675cf6d876693526cc7ce2241))
* **@typescript-eslint/*:** upgrade to 5.57.0 ([ed40301](https://github.com/typegoose/typegoose/commit/ed40301d69cb0fa6dbd50bb2102561575e7445a4))
* **commitlint:** upgrade to 17.5.1 ([1a3db22](https://github.com/typegoose/typegoose/commit/1a3db22e1e33fdce7d36ea9f06dfde26d740d7c0))
* **eslint:** upgrade to 8.37.0 ([62cac9f](https://github.com/typegoose/typegoose/commit/62cac9f8eef2d85a996b529063d4ebb8273d2f05))
1 month ago
## [11.1.0](https://github.com/typegoose/typegoose/compare/v11.0.3...v11.1.0) (2023-04-29)
Note: when updating to this version, `@types/node@16` is required (instead of the previous `@14`)
1 month ago
### Dependencies
* **@types/jest:** upgrade to 29.5.1 ([16000b5](https://github.com/typegoose/typegoose/commit/16000b5439546ff1e092c2df32a444c37da8c907))
* **@types/lodash:** upgrade to 4.14.194 ([19dda46](https://github.com/typegoose/typegoose/commit/19dda46396d2dc873d1208913e38be6e77e257a1))
* **@types/node:** upgrade to 16.11.7 ([d2739b9](https://github.com/typegoose/typegoose/commit/d2739b981272510a76709921ae5c71904bc9ada5))
* **@typescript-eslint/*:** upgrade to 5.59.1 ([0b5ed3a](https://github.com/typegoose/typegoose/commit/0b5ed3a1a294a58693336e216240562a7bb6bc88))
* **commitlint:** upgrade to 17.6.1 ([19b9ffd](https://github.com/typegoose/typegoose/commit/19b9ffd38b4da2359d231be8532d2f925fa6c948))
* **eslint:** upgrade to 8.39.0 ([ca7d21e](https://github.com/typegoose/typegoose/commit/ca7d21e2c9c53ca1f450c2bdf30180d28911d8ad))
* **lint-staged:** upgrade to 13.2.2 ([056eb2c](https://github.com/typegoose/typegoose/commit/056eb2c531b02a53cdbe5bea62e56ed991cf3fcc))
* **mongodb-memory-server:** upgrade to 8.12.2 ([dd03def](https://github.com/typegoose/typegoose/commit/dd03def3228ed0fd6ecc52040fe066050ea7aa4e))
* **mongoose:** upgrade to 7.1.0 ([017b7a1](https://github.com/typegoose/typegoose/commit/017b7a1dfc8b243912cca120e5bddb21b1550da2))
* **prettier:** upgrade to 2.8.8 ([e84fd4e](https://github.com/typegoose/typegoose/commit/e84fd4e3473d89c4e037c33cbbf7cf3a12898ce0))
* **semver:** upgrade to 7.5.0 ([9c09ed6](https://github.com/typegoose/typegoose/commit/9c09ed6e4121ad28d71739a5120b694056b06f17))
* **ts-jest:** upgrade to 29.1.0 ([69be082](https://github.com/typegoose/typegoose/commit/69be082474d24b2344ffb03c737dd14b78cbc682))
1 month ago
## [11.0.3](https://github.com/typegoose/typegoose/compare/v11.0.2...v11.0.3) (2023-04-27)
### Fixes
* consistently merge ModelOptions with "getMergedModelOptions" ([5fec7e0](https://github.com/typegoose/typegoose/commit/5fec7e06678e13009a167ba7b812071cba8879c6)), closes [typegoose/typegoose#827](https://github.com/typegoose/typegoose/issues/827)
* **utils:** add function to consistently merge ModelOptions ([e8c9203](https://github.com/typegoose/typegoose/commit/e8c92039f94104b5193fb2bc717b2cf6b6aa35bc))
2 months ago
## [11.0.2](https://github.com/typegoose/typegoose/compare/v11.0.1...v11.0.2) (2023-04-19)
### Fixes
* **types:** add helper type "FilterOutFunctionKeys" ([ce91f29](https://github.com/typegoose/typegoose/commit/ce91f29fba25f04e19f3be2b5033f86ec00d94dd))
2 months ago
## [11.0.1](https://github.com/typegoose/typegoose/compare/v11.0.0...v11.0.1) (2023-04-15)
### Fixes
* **typegoose::getDiscriminatorModelForClass:** fix "from" type for models with different _id type ([fb752fc](https://github.com/typegoose/typegoose/commit/fb752fc77d5763bccade2d0a8cdd45f8fdad6631))
2 months ago
## [11.0.0](https://github.com/typegoose/typegoose/compare/v10.3.4...v11.0.0) (2023-03-27)
### ⚠ BREAKING CHANGES
* **mongoose:** mongoose 7.0.0 is now in use
* Default-Class "FindOrCreate" (and type "FindOrCreateResult") has been removed, because mongoose-findorcreate is not compatible with mongoose 7.0
### Features
* remove usage and references to "mongoose-findorcreate" ([6de3aa9](https://github.com/typegoose/typegoose/commit/6de3aa9c034a52891ef47bf378bedfc010746d08))
### Fixes
* update types and type-tests for mongoose 7.0 ([b3df459](https://github.com/typegoose/typegoose/commit/b3df45987778e66aea1a6a4ec1d90c0611b133d3))
### Style
* **hooks:** update version notice ([02fc3bb](https://github.com/typegoose/typegoose/commit/02fc3bb107cee724cf95c61e958266387ff034d2))
* **test::model::typeguards:** add comments noting that a type is meant to be ([6aa8f17](https://github.com/typegoose/typegoose/commit/6aa8f17c6b967d1d8b4cd9885c997cd7fa54430a))
### Dependencies
* **@semantic-release/changelog:** upgrade to 6.0.3 ([3196d08](https://github.com/typegoose/typegoose/commit/3196d08959d267c3bd3e31be6b572fab3afd03e1))
* **@types/jest:** upgrade to 29.5.0 ([a2aeefb](https://github.com/typegoose/typegoose/commit/a2aeefb7d87ded392488040627a3646e86db6b3b))
* **@typescript-eslint/*:** upgrade to 5.55.0 ([40d882f](https://github.com/typegoose/typegoose/commit/40d882f9c151d6f1aa80d43de201561f3911f166))
* **@typescript-eslint/*:** upgrade to 5.56.0 ([0116947](https://github.com/typegoose/typegoose/commit/01169476119886f61a5cf771f3301f0d02ab73bd))
* **commitlint:** upgrade to 17.5.0 ([d7986a1](https://github.com/typegoose/typegoose/commit/d7986a1ce5faca88d6131f0f34a9666ef1cda875))
* **eslint-config-prettier:** upgrade to 8.7.0 ([9394fcf](https://github.com/typegoose/typegoose/commit/9394fcf5b3253d46809af4ef15691d08480ad22d))
* **eslint-config-prettier:** upgrade to 8.8.0 ([25bfc89](https://github.com/typegoose/typegoose/commit/25bfc89f90b9d900ed182775c1807393f61d634a))
* **eslint:** upgrade to 8.36.0 ([4b1db7a](https://github.com/typegoose/typegoose/commit/4b1db7a11766ef305c48f3c6e20ba044b4edef65))
* **jest:** upgrade to 29.5.0 ([50491f0](https://github.com/typegoose/typegoose/commit/50491f0a6c480bd007fc57c45ef79bf430ed9161))
* **lint-staged:** upgrade to 13.2.0 ([4417d74](https://github.com/typegoose/typegoose/commit/4417d748a33dea03c55d59ba5eba81f7034ee0e5))
* **mongodb-memory-server:** upgrade to 9.12.1 ([fd2874b](https://github.com/typegoose/typegoose/commit/fd2874bc01e0bd03a6fa5c16d4cb572be308cc70))
* **mongoose:** upgrade to 7.0.0 ([0e06ec9](https://github.com/typegoose/typegoose/commit/0e06ec97d18e099026597e2a31d3ca15fbe388e7))
* **mongoose:** upgrade to 7.0.2 ([bedb61d](https://github.com/typegoose/typegoose/commit/bedb61d5c2bdcfd37b5dde8b7a4b9426c4099587))
* **mongoose:** upgrade to 7.0.3 ([8e964ea](https://github.com/typegoose/typegoose/commit/8e964ea28d63d392db2222e88e2d32afd02c0257))
* **prettier:** upgrade to 2.8.7 ([c72bd0c](https://github.com/typegoose/typegoose/commit/c72bd0ce654b530cc8cab5791ac9daf91965c7d2))
* **rimraf:** upgrade to 4.1.2 ([88181b6](https://github.com/typegoose/typegoose/commit/88181b64b7c27b3dc9fa867c6996d2fc15c8cec6))
* **rimraf:** upgrade to 4.4.0 ([3395239](https://github.com/typegoose/typegoose/commit/33952398cfa8074d3f57dff86ad3649ece3c7566))
* **rimraf:** upgrade to 4.4.1 ([f23b668](https://github.com/typegoose/typegoose/commit/f23b6689647650bad26b5aa2c9d736e416c549fd))
## [11.0.0-beta.3](https://github.com/typegoose/typegoose/compare/v11.0.0-beta.2...v11.0.0-beta.3) (2023-03-27)
### Style
* **types:** fix minor grammar mistakes ([#803](https://github.com/typegoose/typegoose/issues/803)) ([6bd97ae](https://github.com/typegoose/typegoose/commit/6bd97ae87c9e39d1538e0f3be465eba69d535cc4))
### Dependencies
* **@semantic-release/changelog:** upgrade to 6.0.3 ([3196d08](https://github.com/typegoose/typegoose/commit/3196d08959d267c3bd3e31be6b572fab3afd03e1))
* **@typescript-eslint/*:** upgrade to 5.56.0 ([0116947](https://github.com/typegoose/typegoose/commit/01169476119886f61a5cf771f3301f0d02ab73bd))
* **commitlint:** upgrade to 17.5.0 ([d7986a1](https://github.com/typegoose/typegoose/commit/d7986a1ce5faca88d6131f0f34a9666ef1cda875))
* **eslint-config-prettier:** upgrade to 8.8.0 ([25bfc89](https://github.com/typegoose/typegoose/commit/25bfc89f90b9d900ed182775c1807393f61d634a))
* **mongoose:** upgrade to 7.0.3 ([8e964ea](https://github.com/typegoose/typegoose/commit/8e964ea28d63d392db2222e88e2d32afd02c0257))
* **prettier:** upgrade to 2.8.7 ([c72bd0c](https://github.com/typegoose/typegoose/commit/c72bd0ce654b530cc8cab5791ac9daf91965c7d2))
* **rimraf:** upgrade to 4.4.1 ([f23b668](https://github.com/typegoose/typegoose/commit/f23b6689647650bad26b5aa2c9d736e416c549fd))
## [11.0.0-beta.2](https://github.com/typegoose/typegoose/compare/v11.0.0-beta.1...v11.0.0-beta.2) (2023-03-19)
### Fixes
* **errors:** update E004 message and example ([c777def](https://github.com/typegoose/typegoose/commit/c777def88e92281b71db899023c5eb0a9b3b3e94))
* **globalOptions:** another fix to check for "process" being undefined ([5d81464](https://github.com/typegoose/typegoose/commit/5d8146465b6ef0e363b958ffdb8d8637e71723d2))
* **typegoose:** fix "process" variable checking for being undefined on browser ([39743e2](https://github.com/typegoose/typegoose/commit/39743e20a5a065a1f5ee76d3a9b8d2905658d059))
### Dependencies
* **@types/jest:** upgrade to 29.5.0 ([a2aeefb](https://github.com/typegoose/typegoose/commit/a2aeefb7d87ded392488040627a3646e86db6b3b))
* **@typescript-eslint/*:** upgrade to 5.55.0 ([40d882f](https://github.com/typegoose/typegoose/commit/40d882f9c151d6f1aa80d43de201561f3911f166))
* **eslint-config-prettier:** upgrade to 8.7.0 ([9394fcf](https://github.com/typegoose/typegoose/commit/9394fcf5b3253d46809af4ef15691d08480ad22d))
* **eslint:** upgrade to 8.36.0 ([4b1db7a](https://github.com/typegoose/typegoose/commit/4b1db7a11766ef305c48f3c6e20ba044b4edef65))
* **jest:** upgrade to 29.5.0 ([50491f0](https://github.com/typegoose/typegoose/commit/50491f0a6c480bd007fc57c45ef79bf430ed9161))
* **lint-staged:** upgrade to 13.2.0 ([4417d74](https://github.com/typegoose/typegoose/commit/4417d748a33dea03c55d59ba5eba81f7034ee0e5))
* **mongodb-memory-server:** upgrade to 9.12.1 ([fd2874b](https://github.com/typegoose/typegoose/commit/fd2874bc01e0bd03a6fa5c16d4cb572be308cc70))
* **mongoose:** upgrade to 7.0.2 ([bedb61d](https://github.com/typegoose/typegoose/commit/bedb61d5c2bdcfd37b5dde8b7a4b9426c4099587))
* **rimraf:** upgrade to 4.4.0 ([3395239](https://github.com/typegoose/typegoose/commit/33952398cfa8074d3f57dff86ad3649ece3c7566))
## [11.0.0-beta.1](https://github.com/typegoose/typegoose/compare/v10.3.0...v11.0.0-beta.1) (2023-03-03)
### ⚠ BREAKING CHANGES
* **mongoose:** mongoose 7.0.0 is now in use
* Default-Class "FindOrCreate" (and type "FindOrCreateResult") has been removed, because mongoose-findorcreate is not compatible with mongoose 7.0
### Features
* remove usage and references to "mongoose-findorcreate" ([6de3aa9](https://github.com/typegoose/typegoose/commit/6de3aa9c034a52891ef47bf378bedfc010746d08))
### Dependencies
* **mongoose:** upgrade to 7.0.0 ([0e06ec9](https://github.com/typegoose/typegoose/commit/0e06ec97d18e099026597e2a31d3ca15fbe388e7))
* **rimraf:** upgrade to 4.1.2 ([88181b6](https://github.com/typegoose/typegoose/commit/88181b64b7c27b3dc9fa867c6996d2fc15c8cec6))
### Fixes
* update types and type-tests for mongoose 7.0 ([b3df459](https://github.com/typegoose/typegoose/commit/b3df45987778e66aea1a6a4ec1d90c0611b133d3))
### Style
* **hooks:** update version notice ([02fc3bb](https://github.com/typegoose/typegoose/commit/02fc3bb107cee724cf95c61e958266387ff034d2))
* **test::model::typeguards:** add comments noting that a type is meant to be ([6aa8f17](https://github.com/typegoose/typegoose/commit/6aa8f17c6b967d1d8b4cd9885c997cd7fa54430a))
2 months ago
## [10.3.4](https://github.com/typegoose/typegoose/compare/v10.3.3...v10.3.4) (2023-03-23)
### Style
* **types:** fix minor grammar mistakes ([#803](https://github.com/typegoose/typegoose/issues/803)) ([6bd97ae](https://github.com/typegoose/typegoose/commit/6bd97ae87c9e39d1538e0f3be465eba69d535cc4))
3 months ago
## [10.3.3](https://github.com/typegoose/typegoose/compare/v10.3.2...v10.3.3) (2023-03-18)
### Fixes
* **errors:** update E004 message and example ([c777def](https://github.com/typegoose/typegoose/commit/c777def88e92281b71db899023c5eb0a9b3b3e94))
3 months ago
## [10.3.2](https://github.com/typegoose/typegoose/compare/v10.3.1...v10.3.2) (2023-03-13)
### Fixes
* **globalOptions:** another fix to check for "process" being undefined ([5d81464](https://github.com/typegoose/typegoose/commit/5d8146465b6ef0e363b958ffdb8d8637e71723d2))
3 months ago
## [10.3.1](https://github.com/typegoose/typegoose/compare/v10.3.0...v10.3.1) (2023-03-13)
### Fixes
* **typegoose:** fix "process" variable checking for being undefined on browser ([39743e2](https://github.com/typegoose/typegoose/commit/39743e20a5a065a1f5ee76d3a9b8d2905658d059))
3 months ago
## [10.3.0](https://github.com/typegoose/typegoose/compare/v10.2.0...v10.3.0) (2023-02-28)
### Features
* add a way to disable caching ([2528601](https://github.com/typegoose/typegoose/commit/2528601529fd63efceda932809a8edabd128bd92)), closes [typegoose/typegoose#789](https://github.com/typegoose/typegoose/issues/789)
* add option to locally disable caching ([78ac3bc](https://github.com/typegoose/typegoose/commit/78ac3bce1536cf667d454fd02810035c6758901a))
* **types:** change "DocumentType" to actually use a proper "_id" type ([c63c5f1](https://github.com/typegoose/typegoose/commit/c63c5f1528dda78fc2d5c2ffc440a9d09a188b41))
### Fixes
* rename global "disableCaching" to "disableGlobalCaching" ([5deb0eb](https://github.com/typegoose/typegoose/commit/5deb0eb2efca76a4c3f0d3f0e132790e89244024))
### Style
* **types:** update tsdoc example for "DocumentType" ([33fa48e](https://github.com/typegoose/typegoose/commit/33fa48ec6b1b24117653fbd02c3441f1dcf0c69c))
### Dependencies
* **@typescript-eslint/*:** upgrade to 5.52.0 ([97cc0b1](https://github.com/typegoose/typegoose/commit/97cc0b17c3318554b4b20b722942753f9e137d9c))
* **@typescript-eslint/*:** upgrade to 5.54.0 ([5c08a5c](https://github.com/typegoose/typegoose/commit/5c08a5c36fb29df17355e4b5a4ca1925120de027))
* **commitlint:** upgrade to 17.4.4 ([c696ac2](https://github.com/typegoose/typegoose/commit/c696ac29d8d5c4b52d6cc84c9c2a0f1d2391c51d))
* **eslint:** upgrade to 8.34.0 ([7c51f83](https://github.com/typegoose/typegoose/commit/7c51f8356cfaa11d338d28a20e6b38f162ce9a82))
* **eslint:** upgrade to 8.35.0 ([0dce134](https://github.com/typegoose/typegoose/commit/0dce134da2270443200d2b7dfa039d4a0b6251ce))
* **jest:** upgrade to 29.4.3 ([d7ab126](https://github.com/typegoose/typegoose/commit/d7ab126140d10d25eca38ce8531032b956c9a786))
* **lint-staged:** upgrade to 13.1.2 ([6c4ce7e](https://github.com/typegoose/typegoose/commit/6c4ce7e037eef827785be6793d3d40c875f318fd))
* **prettier:** upgrade to 2.8.4 ([9fd5e78](https://github.com/typegoose/typegoose/commit/9fd5e78765223b7d7d2408e9a7c8fd40295bbff8))
* **typescript:** upgrade to 4.9.5 ([27a1838](https://github.com/typegoose/typegoose/commit/27a18388a420b4da7f41d1ba4aba906b04f89e92))
3 months ago
## [10.2.0](https://github.com/typegoose/typegoose/compare/v10.1.1...v10.2.0) (2023-02-23)
### Dependencies
* **@typescript-eslint/*:** upgrade to 5.53.0 ([d1fda7b](https://github.com/typegoose/typegoose/commit/d1fda7b0d4cde8683bc6adff8a6637630f5d6757))
* **commitlint:** upgrade to 17.4.4 ([1399451](https://github.com/typegoose/typegoose/commit/13994519c2697c056d766eecb1fd644ea7f11ae5))
* **eslint:** upgrade to 8.34.0 ([0585e4c](https://github.com/typegoose/typegoose/commit/0585e4c36aa5688056444194ba95552e98dfe311))
* **jest:** upgrade to 29.4.3 ([c369561](https://github.com/typegoose/typegoose/commit/c36956117ebd2c5b585991cb284ac8da79446f4b))
* **lint-staged:** upgrade to 13.1.2 ([e1bd015](https://github.com/typegoose/typegoose/commit/e1bd015f94f52e2278c73044a47ca686990769e1))
* **mongodb-memory-server:** upgrade to 8.11.5 ([502a3c8](https://github.com/typegoose/typegoose/commit/502a3c81d1d54a831eac9de3f4c9a612b826ed5e))
* **mongoose:** upgrade to 6.10.0 ([33558f7](https://github.com/typegoose/typegoose/commit/33558f73bc8b528b23ff1e0ae9cac1df3b1672e4))
* **prettier:** upgrade to 2.8.4 ([382d82c](https://github.com/typegoose/typegoose/commit/382d82c88d15e673ec7fe9dd2544003d760eab21))
* **typescript:** upgrade to 4.9.5 ([92b6779](https://github.com/typegoose/typegoose/commit/92b677943e0cdb27f87f6ebf8e273b6c0234b55b))
## [10.2.0-beta.3](https://github.com/typegoose/typegoose/compare/v10.2.0-beta.2...v10.2.0-beta.3) (2023-02-19)
### Features
* **types:** change "DocumentType" to actually use a proper "_id" type ([c63c5f1](https://github.com/typegoose/typegoose/commit/c63c5f1528dda78fc2d5c2ffc440a9d09a188b41))
### Dependencies
* **@typescript-eslint/*:** upgrade to 5.52.0 ([97cc0b1](https://github.com/typegoose/typegoose/commit/97cc0b17c3318554b4b20b722942753f9e137d9c))
* **commitlint:** upgrade to 17.4.4 ([c696ac2](https://github.com/typegoose/typegoose/commit/c696ac29d8d5c4b52d6cc84c9c2a0f1d2391c51d))
* **eslint:** upgrade to 8.34.0 ([7c51f83](https://github.com/typegoose/typegoose/commit/7c51f8356cfaa11d338d28a20e6b38f162ce9a82))
* **jest:** upgrade to 29.4.3 ([d7ab126](https://github.com/typegoose/typegoose/commit/d7ab126140d10d25eca38ce8531032b956c9a786))
* **lint-staged:** upgrade to 13.1.2 ([6c4ce7e](https://github.com/typegoose/typegoose/commit/6c4ce7e037eef827785be6793d3d40c875f318fd))
* **prettier:** upgrade to 2.8.4 ([9fd5e78](https://github.com/typegoose/typegoose/commit/9fd5e78765223b7d7d2408e9a7c8fd40295bbff8))
* **typescript:** upgrade to 4.9.5 ([27a1838](https://github.com/typegoose/typegoose/commit/27a18388a420b4da7f41d1ba4aba906b04f89e92))
### Style
* **types:** update tsdoc example for "DocumentType" ([33fa48e](https://github.com/typegoose/typegoose/commit/33fa48ec6b1b24117653fbd02c3441f1dcf0c69c))
## [10.2.0-beta.2](https://github.com/typegoose/typegoose/compare/v10.2.0-beta.1...v10.2.0-beta.2) (2023-02-09)
### Features
* add option to locally disable caching ([78ac3bc](https://github.com/typegoose/typegoose/commit/78ac3bce1536cf667d454fd02810035c6758901a))
### Fixes
* rename global "disableCaching" to "disableGlobalCaching" ([5deb0eb](https://github.com/typegoose/typegoose/commit/5deb0eb2efca76a4c3f0d3f0e132790e89244024))
## [10.2.0-beta.1](https://github.com/typegoose/typegoose/compare/v10.1.1...v10.2.0-beta.1) (2023-02-07)
### Features
* add a way to disable caching ([2528601](https://github.com/typegoose/typegoose/commit/2528601529fd63efceda932809a8edabd128bd92)), closes [typegoose/typegoose#789](https://github.com/typegoose/typegoose/issues/789)
4 months ago
## [10.1.1](https://github.com/typegoose/typegoose/compare/v10.1.0...v10.1.1) (2023-02-05)
### Fixes
* **typegoose::getDiscriminatorModelForClass:** add warning when using different "existing*" options ([0599ef2](https://github.com/typegoose/typegoose/commit/0599ef299901e5eb4a47e64fea298a802f25d9c5)), closes [typegoose/typegoose#789](https://github.com/typegoose/typegoose/issues/789)
4 months ago
## [10.1.0](https://github.com/typegoose/typegoose/compare/v10.0.0...v10.1.0) (2023-01-29)
### Dependencies
* **@semantic-release/npm:** upgrade to 9.0.2 ([44633e4](https://github.com/typegoose/typegoose/commit/44633e40a99d7d86138d0846be4acfa88f208daa))
* **@types/jest:** upgrade to 29.4.0 ([424ba45](https://github.com/typegoose/typegoose/commit/424ba4538506eb8ca8cb1b684811a0f378058275))
* **@typescript-eslint/*:** upgrade to 5.49.0 ([108630d](https://github.com/typegoose/typegoose/commit/108630d88e38cb0ceab666b68c7cb3f549e68bfa))
* **commitlint:** upgrade to 17.4.2 ([22b0881](https://github.com/typegoose/typegoose/commit/22b08818c0799f53b5d863b1132401db0ebbe610))
* **eslint-config-prettier:** upgrade to 8.6.0 ([144aaa6](https://github.com/typegoose/typegoose/commit/144aaa6b2060d5a8cd379dc7e6ff800b65172b99))
* **eslint:** upgrade to 8.32.0 ([eb047d1](https://github.com/typegoose/typegoose/commit/eb047d1408a89e19153533d179b315582ac1f3fe))
* **husky:** upgrade to 8.0.3 ([c4fe8a2](https://github.com/typegoose/typegoose/commit/c4fe8a23df656f978aa55b287dc02fe4ea63f6b3))
* **jest:** upgrade to 29.4.1 ([b97b56f](https://github.com/typegoose/typegoose/commit/b97b56fb2344e5b4084be4ad40089206d5af8d7e))
* **mongodb-memory-server:** upgrade to 8.11.4 ([24e6ca3](https://github.com/typegoose/typegoose/commit/24e6ca3220b536e3f14ff3eb04e9a8f568ddceeb))
* **mongoose:** upgrade to 6.9.0 ([14239a6](https://github.com/typegoose/typegoose/commit/14239a683ed5d33a8bbb1ce5a7f720c2ede8e10b))
* **prettier:** upgrade to 2.8.3 ([f691573](https://github.com/typegoose/typegoose/commit/f691573880d1a5a31209f040b5c222e363f5deac))
* **ts-jest:** upgrade to 29.0.5 ([0b45b90](https://github.com/typegoose/typegoose/commit/0b45b90fe347d8ecf0641fe9bb3a2b6d5234cff5))
* **tslib:** upgrade to 2.5.0 ([b463238](https://github.com/typegoose/typegoose/commit/b4632388c1dee9727047f6f76044b47e41442cd0))
6 months ago
## [10.0.0](https://github.com/typegoose/typegoose/compare/v9.13.2...v10.0.0) (2022-12-12)
### ⚠ BREAKING CHANGES
* **typegoose::buildSchema:** "buildSchema" now only accepts 2 parameters instead of 3 (the last 2 got merged)
* Option "runSyncIndexes" has been removed, if still wanting to continue to use it, run "model.syncIndexes()" manually
* File "index(.ts|.js)" got renamed to "indexes(.ts|.js)" to lessen confusion
* **utils:** Function "getClassForDocument" is removed, use "getClass" directly
* **types::IndexOptions:** Anyone using "@index" or "IndexOptions" directly with a generic will have to remove the generic
* "DecoratedPropertyMetadata::whatis" got renamed to "DecoratedPropertyMetadata::propType" for anyone using it
* **tsconfig.json:** tsconfig "target" is now "es2020" which could be potentially be breaking
* NodeJS 14.0 is now the lowest required node version
* **types::Ref:** "Ref" now transparently uses "DocumentType", which could lead ot breaking changes.
"isDocumentType" and "isRefType" now narrow out the type that is tested, which could be a breaking change.
* **tsconfig.json:** tsconfig "target" is now "es2019" which could be potentially be breaking
### Features
* add option to not inherit indexes from extending class ([6f49c6f](https://github.com/typegoose/typegoose/commit/6f49c6f400b8a95fb8b11d963d074eca6bd5ec29)), closes [typegoose/typegoose#696](https://github.com/typegoose/typegoose/issues/696)
* change "overwriteOptions" to be just for naming options ([7713b0e](https://github.com/typegoose/typegoose/commit/7713b0edc36541a914106d15048d2f710e3b0044)), closes [typegoose/typegoose#721](https://github.com/typegoose/typegoose/issues/721)
* refactor to remove "data.schemas" ([3fdeab1](https://github.com/typegoose/typegoose/commit/3fdeab1c2247f80f0c60103a35f9e65e3d9b308a)), closes [typegoose/typegoose#760](https://github.com/typegoose/typegoose/issues/760)
* remove deprecated references to "WhatIsIt" ([b0cd080](https://github.com/typegoose/typegoose/commit/b0cd080ae3b4465a8187962b2fdb78bbd4f0d798))
* remove option "runSyncIndexes" ([7532411](https://github.com/typegoose/typegoose/commit/753241139feb15e568e10bb7eb9f5b0e5f331963))
* rename "index.ts" to "indexes.ts" ([59b3da7](https://github.com/typegoose/typegoose/commit/59b3da7e2bbdd2daeedaff6f58b85350870d1ad6))
* support defining nested-discriminators on the base class ([3a26c10](https://github.com/typegoose/typegoose/commit/3a26c1038158dcdb952954d74fec339370598df2)), closes [typegoose/typegoose#758](https://github.com/typegoose/typegoose/issues/758)
* **tsconfig.json:** update "target" to match minimal NodeJS capabilities ([896aef2](https://github.com/typegoose/typegoose/commit/896aef2c06e279c64b135313f9b7d5f7ccb521b1)), closes [typegoose/typegoose#735](https://github.com/typegoose/typegoose/issues/735)
* **tsconfig.json:** update "target" to match minimal NodeJS capabilities ([59826c1](https://github.com/typegoose/typegoose/commit/59826c1aabec37ba577f9c110c5d916024ae463c)), closes [typegoose/typegoose#735](https://github.com/typegoose/typegoose/issues/735)
* **typegoose::buildSchema:** reduce amout of parameters needed ([75a067c](https://github.com/typegoose/typegoose/commit/75a067cda915062a9ab6a75ec007b7f8a6cd9584)), closes [typegoose/typegoose#721](https://github.com/typegoose/typegoose/issues/721)
* **types::Ref:** update to transparently use "DocumentType" ([4b3520e](https://github.com/typegoose/typegoose/commit/4b3520e55b8b13947cce2a28d83b53825e22fd60)), closes [typegoose/typegoose#730](https://github.com/typegoose/typegoose/issues/730) [typegoose/typegoose#772](https://github.com/typegoose/typegoose/issues/772)
* **utils::getClass:** support getting name from "modelName" if available ([5447184](https://github.com/typegoose/typegoose/commit/5447184a6eda1c458c87296ad32b6b1c03b159e0))
* **utils:** remove function "getClassForDocument" ([da3a878](https://github.com/typegoose/typegoose/commit/da3a878a9625a70073dedca4fc30e7d4929c4575))
* **utils:** remove function "initProperty" ([0993605](https://github.com/typegoose/typegoose/commit/0993605c59e317af2f1bf5b6582b16a96b8f152d))
### Refactor
* **hooks:** dont define empty hooks options if not provided ([89b9416](https://github.com/typegoose/typegoose/commit/89b94169efc80d1be3fea7419d9289b110621918))
* **hooks:** use mongoose's array looping over methods over typegoose's ([ca2a03a](https://github.com/typegoose/typegoose/commit/ca2a03a64c9d23c5ad30e42eaa1800eac79ac5f6)), closes [typegoose/typegoose#587](https://github.com/typegoose/typegoose/issues/587)
* **utils::initProperty:** simplify paths ([37ca83e](https://github.com/typegoose/typegoose/commit/37ca83ede507340bac06fa340d04552f906fb953))
* update minimal NodeJS version to 14.0.0 ([fcffbd8](https://github.com/typegoose/typegoose/commit/fcffbd8f9a2f2444b06637ef4ef839ff8079beae))
### Fixes
* **hooks:** update types for new "errorHandler" option ([f52ea0d](https://github.com/typegoose/typegoose/commit/f52ea0d4caf1f73686280ff01123db24b84f54d5))
* **plugin:** actually print "anonymous" if function name is empty ([ae124bc](https://github.com/typegoose/typegoose/commit/ae124bcb6c8478275aef571ce4137afff75029b2))
* **typegoose:** lessen the amount of "merge*" calls ([e30f4ae](https://github.com/typegoose/typegoose/commit/e30f4ae61ca17912688398ffb2a3f0b93724b5f6))
### Style
* **biguser.test:** fix type error for "toMatchSnapshot" missing property "_id" ([b7e86eb](https://github.com/typegoose/typegoose/commit/b7e86ebc6b675d6f6eefcd4e080de1bbd66617d0))
* **hooks:** update types to more closely match mongoose's ([62e1f2b](https://github.com/typegoose/typegoose/commit/62e1f2bd7cca0376f392cc78aa20ea3f254fc330)), closes [typegoose/typegoose#587](https://github.com/typegoose/typegoose/issues/587)
* **schema:** remove test todo ([8a3a296](https://github.com/typegoose/typegoose/commit/8a3a2969cb2b6dd5e4dd190cb0283685bbd0fee4))
* **schema:** update comment explaining on why "as any" is used for hooks ([3e0386b](https://github.com/typegoose/typegoose/commit/3e0386b3d2dda194e0552e9b84facbb359235d53))
* **typegoose:** rename some internal variables ([fc04892](https://github.com/typegoose/typegoose/commit/fc048924e63dcd11381fe257de7dcb6e811f1eba))
* **types::DecoratedPropertyMetadata:** change "options" to have proper type instead of "any" ([845c5e0](https://github.com/typegoose/typegoose/commit/845c5e0720eab62b6790d4a7b60a815157783fe7))
* **types::EmptyVoidFn:** remove unused type ([2e79801](https://github.com/typegoose/typegoose/commit/2e79801f482d784305fcbdfc8567f0ccfec07373))
* **types::IndexOptions:** remove unused generic ([5ed9f25](https://github.com/typegoose/typegoose/commit/5ed9f25be95a007f151ceaa00099eb34e64cda3d))
* **types:** fix typescript complaining about a tsdoc link ([90fca45](https://github.com/typegoose/typegoose/commit/90fca4585f3e0b3c166cbd16adc951f73b887f1d))
* **types:** remove deprecated temporary options from "ICustomOptions" ([932cce5](https://github.com/typegoose/typegoose/commit/932cce52c9b728136850c1d2b142241f04319fdd))
* **types:** remove type "IObjectWithTypegooseName" ([67e8350](https://github.com/typegoose/typegoose/commit/67e8350d4da9382186755fb608fe6395eaf0b89b))
* **utils::getClass:** update types to better reflect what it is doing ([a9a23f6](https://github.com/typegoose/typegoose/commit/a9a23f6c40db74e6b83b9b6e61a13e894c9bb2d2))
* **utils::getClass:** update types to use less duplicate types ([5435d88](https://github.com/typegoose/typegoose/commit/5435d881fb275cd299a8e7dbc3928e691a419cf4))
* **utils:** remove unused imports ([4b79a49](https://github.com/typegoose/typegoose/commit/4b79a49b899f87aaba74ca23b807cc207d0e238d))
### Dependencies
* **@semantic-release/changelog:** upgrade to 6.0.2 ([91ef4b4](https://github.com/typegoose/typegoose/commit/91ef4b48504e0341b41e0f3accdb7fb96388e7a3))
* **@semantic-release/github:** upgrade to 8.0.7 ([ece0c7e](https://github.com/typegoose/typegoose/commit/ece0c7e341311bef4063e063b6cd231621f10983))
* **@types/jest:** upgrade to 29.2.4 ([296960a](https://github.com/typegoose/typegoose/commit/296960a7df8bed42ce0fb40da3af57f26e69cedb))
* **@types/lodash:** upgrade to 4.14.190 ([57233c9](https://github.com/typegoose/typegoose/commit/57233c9a09345338aa5e7c67a5a5f38369ffd8da))
* **@types/lodash:** upgrade to 4.14.191 ([99df11d](https://github.com/typegoose/typegoose/commit/99df11d90676c92457eda1eb30443ee809a7ea7d))
* **@types/node:** upgrade to 14.14.31 ([9f150d4](https://github.com/typegoose/typegoose/commit/9f150d443082149ffe68c5a311e9dc272b8e4179))
* **@typescript-eslint/*:** upgrade to 5.44.0 ([70ab1bb](https://github.com/typegoose/typegoose/commit/70ab1bb8ba9b6e2d32c22c85880e0c6b0d4733c7))
* **@typescript-eslint/*:** upgrade to 5.45.0 ([58f19ca](https://github.com/typegoose/typegoose/commit/58f19cad35a63fb3fa4f4e7585d24a9fa135ca4c))
* **@typescript-eslint/*:** upgrade to 5.46.0 ([75576a0](https://github.com/typegoose/typegoose/commit/75576a0b7fe9c196a5c559e2bb2eb226e5fa0725))
* **commitlint:** upgrade to 17.3.0 ([ee9fc80](https://github.com/typegoose/typegoose/commit/ee9fc80adbe88456e2023da2fa11c4bd8354cdaa))
* **eslint:** upgrade to 8.28.0 ([ddcd191](https://github.com/typegoose/typegoose/commit/ddcd191ab4b5183c5ec19b4b3a75b46ed307a893))
* **eslint:** upgrade to 8.29.0 ([8cb5c46](https://github.com/typegoose/typegoose/commit/8cb5c4601541be7e38ab3e55fe2502c4f20b4ec9))
* **husky:** upgrade to 8.0.2 ([4e1c894](https://github.com/typegoose/typegoose/commit/4e1c894ad2120a8fd97c0f30ab80923ac11f81c0))
* **jest:** upgrade to 29.0.3 ([4252897](https://github.com/typegoose/typegoose/commit/4252897efcfff050513bca42df9d1b7cc2f9bc6e))
* **lint-staged:** upgrade to 13.0.4 ([31f082c](https://github.com/typegoose/typegoose/commit/31f082c870b87d74ee18a9640b392aa200467a23))
* **lint-staged:** upgrade to 13.1.0 ([b904e07](https://github.com/typegoose/typegoose/commit/b904e07ad028531dfaa8392ad586a3c35971d013))
* **mongodb-memory-server:** upgrade to 8.10.1 ([287dda8](https://github.com/typegoose/typegoose/commit/287dda87acd6482b850fe700cc545e191b69d129))
* **mongodb-memory-server:** upgrade to 8.10.2 ([12b257d](https://github.com/typegoose/typegoose/commit/12b257db432fabb41c7b2b02128c7f844b76d3e5))
* **mongoose:** upgrade to 6.7.3 ([f3870ff](https://github.com/typegoose/typegoose/commit/f3870ffddb89efa9e6eea3f676646b9585793047))
* **mongoose:** upgrade to 6.7.5 ([f68226e](https://github.com/typegoose/typegoose/commit/f68226e379cfaf35caa735b355a98da421b57aaf))
* **mongoose:** upgrade to 6.8.0 ([8e8958f](https://github.com/typegoose/typegoose/commit/8e8958f60753e671661086b76c51ac06c2ccb8ed))
* **prettier:** upgrade to 2.8.0 ([9328043](https://github.com/typegoose/typegoose/commit/932804318f66c1f8b2de0b8f059bdff0f919c3ac))
* **prettier:** upgrade to 2.8.1 ([a8a7513](https://github.com/typegoose/typegoose/commit/a8a75135b6b869940731c9b64b28ef171119222a))
* **semantic-release:** upgrade to 19.0.5 ([3d9175e](https://github.com/typegoose/typegoose/commit/3d9175ec2f257ca8f67f44b3e528003d8bc2936e))
* **typescript:** upgrade to 4.9.3 ([cfca616](https://github.com/typegoose/typegoose/commit/cfca61665838f0e565cdd946ef339c8e2c78644b))
* **typescript:** upgrade to 4.9.4 ([1698424](https://github.com/typegoose/typegoose/commit/169842432ca7af6be4f6c0c844de7a39cc41a271))
## [10.0.0-beta.3](https://github.com/typegoose/typegoose/compare/v10.0.0-beta.2...v10.0.0-beta.3) (2022-12-12)
### Style
* **schema:** remove test todo ([8a3a296](https://github.com/typegoose/typegoose/commit/8a3a2969cb2b6dd5e4dd190cb0283685bbd0fee4))
### Dependencies
* **@types/jest:** upgrade to 29.2.4 ([296960a](https://github.com/typegoose/typegoose/commit/296960a7df8bed42ce0fb40da3af57f26e69cedb))
* **@typescript-eslint/*:** upgrade to 5.46.0 ([75576a0](https://github.com/typegoose/typegoose/commit/75576a0b7fe9c196a5c559e2bb2eb226e5fa0725))
* **eslint:** upgrade to 8.29.0 ([8cb5c46](https://github.com/typegoose/typegoose/commit/8cb5c4601541be7e38ab3e55fe2502c4f20b4ec9))
* **lint-staged:** upgrade to 13.1.0 ([b904e07](https://github.com/typegoose/typegoose/commit/b904e07ad028531dfaa8392ad586a3c35971d013))
* **mongodb-memory-server:** upgrade to 8.10.2 ([12b257d](https://github.com/typegoose/typegoose/commit/12b257db432fabb41c7b2b02128c7f844b76d3e5))
* **prettier:** upgrade to 2.8.1 ([a8a7513](https://github.com/typegoose/typegoose/commit/a8a75135b6b869940731c9b64b28ef171119222a))
* **typescript:** upgrade to 4.9.4 ([1698424](https://github.com/typegoose/typegoose/commit/169842432ca7af6be4f6c0c844de7a39cc41a271))
## [10.0.0-beta.2](https://github.com/typegoose/typegoose/compare/v10.0.0-beta.1...v10.0.0-beta.2) (2022-12-06)
### Dependencies
* **mongoose:** upgrade to 6.8.0 ([8e8958f](https://github.com/typegoose/typegoose/commit/8e8958f60753e671661086b76c51ac06c2ccb8ed))
### Fixes
* **hooks:** update types for new "errorHandler" option ([f52ea0d](https://github.com/typegoose/typegoose/commit/f52ea0d4caf1f73686280ff01123db24b84f54d5))
## [10.0.0-beta.1](https://github.com/typegoose/typegoose/compare/v9.13.2...v10.0.0-beta.1) (2022-12-01)
### ⚠ BREAKING CHANGES
* **typegoose::buildSchema:** "buildSchema" now only accepts 2 parameters instead of 3 (the last 2 got merged)
* Option "runSyncIndexes" has been removed, if still wanting to continue to use it, run "model.syncIndexes()" manually
* File "index(.ts|.js)" got renamed to "indexes(.ts|.js)" to lessen confusion
* **utils:** Function "getClassForDocument" is removed, use "getClass" directly
* **types::IndexOptions:** Anyone using "@index" or "IndexOptions" directly with a generic will have to remove the generic
* "DecoratedPropertyMetadata::whatis" got renamed to "DecoratedPropertyMetadata::propType" for anyone using it
* **tsconfig.json:** tsconfig "target" is now "es2020" which could be potentially be breaking
* NodeJS 14.0 is now the lowest required node version
* **types::Ref:** "Ref" now transparently uses "DocumentType", which could lead ot breaking changes.
"isDocumentType" and "isRefType" now narrow out the type that is tested, which could be a breaking change.
* **tsconfig.json:** tsconfig "target" is now "es2019" which could be potentially be breaking
### Features
* add option to not inherit indexes from extending class ([6f49c6f](https://github.com/typegoose/typegoose/commit/6f49c6f400b8a95fb8b11d963d074eca6bd5ec29)), closes [typegoose/typegoose#696](https://github.com/typegoose/typegoose/issues/696)
* change "overwriteOptions" to be just for naming options ([7713b0e](https://github.com/typegoose/typegoose/commit/7713b0edc36541a914106d15048d2f710e3b0044)), closes [typegoose/typegoose#721](https://github.com/typegoose/typegoose/issues/721)
* refactor to remove "data.schemas" ([3fdeab1](https://github.com/typegoose/typegoose/commit/3fdeab1c2247f80f0c60103a35f9e65e3d9b308a)), closes [typegoose/typegoose#760](https://github.com/typegoose/typegoose/issues/760)
* remove deprecated references to "WhatIsIt" ([b0cd080](https://github.com/typegoose/typegoose/commit/b0cd080ae3b4465a8187962b2fdb78bbd4f0d798))
* remove option "runSyncIndexes" ([7532411](https://github.com/typegoose/typegoose/commit/753241139feb15e568e10bb7eb9f5b0e5f331963))
* rename "index.ts" to "indexes.ts" ([59b3da7](https://github.com/typegoose/typegoose/commit/59b3da7e2bbdd2daeedaff6f58b85350870d1ad6))
* support defining nested-discriminators on the base class ([3a26c10](https://github.com/typegoose/typegoose/commit/3a26c1038158dcdb952954d74fec339370598df2)), closes [typegoose/typegoose#758](https://github.com/typegoose/typegoose/issues/758)
* **tsconfig.json:** update "target" to match minimal NodeJS capabilities ([896aef2](https://github.com/typegoose/typegoose/commit/896aef2c06e279c64b135313f9b7d5f7ccb521b1)), closes [typegoose/typegoose#735](https://github.com/typegoose/typegoose/issues/735)
* **tsconfig.json:** update "target" to match minimal NodeJS capabilities ([59826c1](https://github.com/typegoose/typegoose/commit/59826c1aabec37ba577f9c110c5d916024ae463c)), closes [typegoose/typegoose#735](https://github.com/typegoose/typegoose/issues/735)
* **typegoose::buildSchema:** reduce amout of parameters needed ([75a067c](https://github.com/typegoose/typegoose/commit/75a067cda915062a9ab6a75ec007b7f8a6cd9584)), closes [typegoose/typegoose#721](https://github.com/typegoose/typegoose/issues/721)
* **types::Ref:** update to transparently use "DocumentType" ([4b3520e](https://github.com/typegoose/typegoose/commit/4b3520e55b8b13947cce2a28d83b53825e22fd60)), closes [typegoose/typegoose#730](https://github.com/typegoose/typegoose/issues/730) [typegoose/typegoose#772](https://github.com/typegoose/typegoose/issues/772)
* **utils::getClass:** support getting name from "modelName" if available ([5447184](https://github.com/typegoose/typegoose/commit/5447184a6eda1c458c87296ad32b6b1c03b159e0))
* **utils:** remove function "getClassForDocument" ([da3a878](https://github.com/typegoose/typegoose/commit/da3a878a9625a70073dedca4fc30e7d4929c4575))
* **utils:** remove function "initProperty" ([0993605](https://github.com/typegoose/typegoose/commit/0993605c59e317af2f1bf5b6582b16a96b8f152d))
### Refactor
* **hooks:** dont define empty hooks options if not provided ([89b9416](https://github.com/typegoose/typegoose/commit/89b94169efc80d1be3fea7419d9289b110621918))
* **hooks:** use mongoose's array looping over methods over typegoose's ([ca2a03a](https://github.com/typegoose/typegoose/commit/ca2a03a64c9d23c5ad30e42eaa1800eac79ac5f6)), closes [typegoose/typegoose#587](https://github.com/typegoose/typegoose/issues/587)
* **utils::initProperty:** simplify paths ([37ca83e](https://github.com/typegoose/typegoose/commit/37ca83ede507340bac06fa340d04552f906fb953))
* update minimal NodeJS version to 14.0.0 ([fcffbd8](https://github.com/typegoose/typegoose/commit/fcffbd8f9a2f2444b06637ef4ef839ff8079beae))
### Fixes
* **plugin:** actually print "anonymous" if function name is empty ([ae124bc](https://github.com/typegoose/typegoose/commit/ae124bcb6c8478275aef571ce4137afff75029b2))
* **typegoose:** lessen the amount of "merge*" calls ([e30f4ae](https://github.com/typegoose/typegoose/commit/e30f4ae61ca17912688398ffb2a3f0b93724b5f6))
### Style
* **biguser.test:** fix type error for "toMatchSnapshot" missing property "_id" ([b7e86eb](https://github.com/typegoose/typegoose/commit/b7e86ebc6b675d6f6eefcd4e080de1bbd66617d0))
* **hooks:** update types to more closely match mongoose's ([62e1f2b](https://github.com/typegoose/typegoose/commit/62e1f2bd7cca0376f392cc78aa20ea3f254fc330)), closes [typegoose/typegoose#587](https://github.com/typegoose/typegoose/issues/587)
* **schema:** update comment explaining on why "as any" is used for hooks ([3e0386b](https://github.com/typegoose/typegoose/commit/3e0386b3d2dda194e0552e9b84facbb359235d53))
* **typegoose:** rename some internal variables ([fc04892](https://github.com/typegoose/typegoose/commit/fc048924e63dcd11381fe257de7dcb6e811f1eba))
* **types::DecoratedPropertyMetadata:** change "options" to have proper type instead of "any" ([845c5e0](https://github.com/typegoose/typegoose/commit/845c5e0720eab62b6790d4a7b60a815157783fe7))
* **types::EmptyVoidFn:** remove unused type ([2e79801](https://github.com/typegoose/typegoose/commit/2e79801f482d784305fcbdfc8567f0ccfec07373))
* **types::IndexOptions:** remove unused generic ([5ed9f25](https://github.com/typegoose/typegoose/commit/5ed9f25be95a007f151ceaa00099eb34e64cda3d))
* **types:** fix typescript complaining about a tsdoc link ([90fca45](https://github.com/typegoose/typegoose/commit/90fca4585f3e0b3c166cbd16adc951f73b887f1d))
* **types:** remove deprecated temporary options from "ICustomOptions" ([932cce5](https://github.com/typegoose/typegoose/commit/932cce52c9b728136850c1d2b142241f04319fdd))
* **types:** remove type "IObjectWithTypegooseName" ([67e8350](https://github.com/typegoose/typegoose/commit/67e8350d4da9382186755fb608fe6395eaf0b89b))
* **utils::getClass:** update types to better reflect what it is doing ([a9a23f6](https://github.com/typegoose/typegoose/commit/a9a23f6c40db74e6b83b9b6e61a13e894c9bb2d2))
* **utils::getClass:** update types to use less duplicate types ([5435d88](https://github.com/typegoose/typegoose/commit/5435d881fb275cd299a8e7dbc3928e691a419cf4))
* **utils:** remove unused imports ([4b79a49](https://github.com/typegoose/typegoose/commit/4b79a49b899f87aaba74ca23b807cc207d0e238d))
### Dependencies
* **@semantic-release/changelog:** upgrade to 6.0.2 ([91ef4b4](https://github.com/typegoose/typegoose/commit/91ef4b48504e0341b41e0f3accdb7fb96388e7a3))
* **@semantic-release/github:** upgrade to 8.0.7 ([ece0c7e](https://github.com/typegoose/typegoose/commit/ece0c7e341311bef4063e063b6cd231621f10983))
* **@types/lodash:** upgrade to 4.14.190 ([57233c9](https://github.com/typegoose/typegoose/commit/57233c9a09345338aa5e7c67a5a5f38369ffd8da))
* **@types/lodash:** upgrade to 4.14.191 ([99df11d](https://github.com/typegoose/typegoose/commit/99df11d90676c92457eda1eb30443ee809a7ea7d))
* **@types/node:** upgrade to 14.14.31 ([9f150d4](https://github.com/typegoose/typegoose/commit/9f150d443082149ffe68c5a311e9dc272b8e4179))
* **@typescript-eslint/*:** upgrade to 5.44.0 ([70ab1bb](https://github.com/typegoose/typegoose/commit/70ab1bb8ba9b6e2d32c22c85880e0c6b0d4733c7))
* **@typescript-eslint/*:** upgrade to 5.45.0 ([58f19ca](https://github.com/typegoose/typegoose/commit/58f19cad35a63fb3fa4f4e7585d24a9fa135ca4c))
* **commitlint:** upgrade to 17.3.0 ([ee9fc80](https://github.com/typegoose/typegoose/commit/ee9fc80adbe88456e2023da2fa11c4bd8354cdaa))
* **eslint:** upgrade to 8.28.0 ([ddcd191](https://github.com/typegoose/typegoose/commit/ddcd191ab4b5183c5ec19b4b3a75b46ed307a893))
* **husky:** upgrade to 8.0.2 ([4e1c894](https://github.com/typegoose/typegoose/commit/4e1c894ad2120a8fd97c0f30ab80923ac11f81c0))
* **jest:** upgrade to 29.0.3 ([4252897](https://github.com/typegoose/typegoose/commit/4252897efcfff050513bca42df9d1b7cc2f9bc6e))
* **lint-staged:** upgrade to 13.0.4 ([31f082c](https://github.com/typegoose/typegoose/commit/31f082c870b87d74ee18a9640b392aa200467a23))
* **mongodb-memory-server:** upgrade to 8.10.1 ([287dda8](https://github.com/typegoose/typegoose/commit/287dda87acd6482b850fe700cc545e191b69d129))
* **mongoose:** upgrade to 6.7.3 ([f3870ff](https://github.com/typegoose/typegoose/commit/f3870ffddb89efa9e6eea3f676646b9585793047))
* **mongoose:** upgrade to 6.7.5 ([f68226e](https://github.com/typegoose/typegoose/commit/f68226e379cfaf35caa735b355a98da421b57aaf))
* **prettier:** upgrade to 2.8.0 ([9328043](https://github.com/typegoose/typegoose/commit/932804318f66c1f8b2de0b8f059bdff0f919c3ac))
* **semantic-release:** upgrade to 19.0.5 ([3d9175e](https://github.com/typegoose/typegoose/commit/3d9175ec2f257ca8f67f44b3e528003d8bc2936e))
* **typescript:** upgrade to 4.9.3 ([cfca616](https://github.com/typegoose/typegoose/commit/cfca61665838f0e565cdd946ef339c8e2c78644b))
6 months ago
### [9.13.2](https://github.com/typegoose/typegoose/compare/v9.13.1...v9.13.2) (2022-12-01)
### Fixes
* deprecate option "runSyncIndexes" ([40f6d30](https://github.com/typegoose/typegoose/commit/40f6d300aa35de2ebb01e8d2dd3e95a0c398fd75))
6 months ago
### [9.13.1](https://github.com/typegoose/typegoose/compare/v9.13.0...v9.13.1) (2022-11-24)
### Fixes
* **typeguards:** quick fix for typescript 4.9 ([df36c34](https://github.com/typegoose/typegoose/commit/df36c346006cb89e4d89c8d152c63b3b222bcfd5)), closes [#772](https://github.com/typegoose/typegoose/issues/772)
6 months ago
## [9.13.0](https://github.com/typegoose/typegoose/compare/v9.12.1...v9.13.0) (2022-11-22)
### Features
* fix non-nested discriminator hooks & plugins ([8cc7301](https://github.com/typegoose/typegoose/commit/8cc73018aaf538a698ac390bb3bb0d46628cabcc)), closes [#12472](https://github.com/typegoose/typegoose/issues/12472) [#12604](https://github.com/typegoose/typegoose/issues/12604) [#12613](https://github.com/typegoose/typegoose/issues/12613) [#12696](https://github.com/typegoose/typegoose/issues/12696) [typegoose/typegoose#768](https://github.com/typegoose/typegoose/issues/768)
### Dependencies
* **@types/lodash:** upgrade to 4.14.186 ([8367452](https://github.com/typegoose/typegoose/commit/836745224e5a167ab8a5cb6701fbe3335bc7b651))
* **@types/lodash:** upgrade to 4.14.189 ([6257223](https://github.com/typegoose/typegoose/commit/62572238e3cdbe2d7ce944da395f5f2ff7637593))
* **@types/semver:** upgrade to 7.3.13 ([9c7a151](https://github.com/typegoose/typegoose/commit/9c7a15182cafc3a59ff213b3e76a05b488b84ac2))
* **@typescript-eslint/*:** upgrade to 5.41.0 ([e10e53a](https://github.com/typegoose/typegoose/commit/e10e53aac461a0bb40890c15449db6ee29a6ff90))
* **@typescript-eslint/*:** upgrade to 5.43.0 ([851163f](https://github.com/typegoose/typegoose/commit/851163f33d75c0ec707ccc3e843a7cd222f1960b))
* **eslint:** upgrade to 8.26.0 ([187c843](https://github.com/typegoose/typegoose/commit/187c84337b1836b0243b17550b579307877f3667))
* **eslint:** upgrade to 8.27.0 ([436036a](https://github.com/typegoose/typegoose/commit/436036ab21352ef625007d2a46b9d677f4e99f90))
* **loglevel:** upgrade to 1.8.1 ([b017f76](https://github.com/typegoose/typegoose/commit/b017f76cdb55cbe257fbf02cad5e699d93102a77))
* **mongodb-memory-server:** upgrade to 8.10.0 ([79242e6](https://github.com/typegoose/typegoose/commit/79242e64588887e63a78b3866f600508e38af18d))
* **mongodb-memory-server:** upgrade to 8.9.3 ([1725f65](https://github.com/typegoose/typegoose/commit/1725f65af25c86fb89f3f1cbd5cb4795ce9e0edf))
* **mongoose:** upgrade to 6.7.0 ([d5fa0e0](https://github.com/typegoose/typegoose/commit/d5fa0e09d933e6132241c5d2c2159882dc6d8b91))
* **mongoose:** upgrade to 6.7.2 ([d1e83f7](https://github.com/typegoose/typegoose/commit/d1e83f7aa140a4c5fce605e80340d617a4fe5fe2))
* **semver:** upgrade to 7.3.8 ([7dc8138](https://github.com/typegoose/typegoose/commit/7dc813880df15ad9fc7fd4861661f8fb3d767a0d))
* **tslib:** upgrade to 2.4.1 ([9da2600](https://github.com/typegoose/typegoose/commit/9da260029f06bf5d34a789e09bd4c86a2f301273))
* **typescript:** upgrade to 4.8.4 ([6590961](https://github.com/typegoose/typegoose/commit/6590961e8736804fe17a1d0f9f82e19c1b0f09ff)), closes [#644](https://github.com/typegoose/typegoose/issues/644)
### Style
* **dbIndex.test:** remove unused imports ([7c1c7be](https://github.com/typegoose/typegoose/commit/7c1c7bee2a208c7d1e194319728504e9bd95d917))
## [9.13.0-beta.2](https://github.com/typegoose/typegoose/compare/v9.13.0-beta.1...v9.13.0-beta.2) (2022-11-17)
### Features
* fix non-nested discriminator hooks & plugins ([8cc7301](https://github.com/typegoose/typegoose/commit/8cc73018aaf538a698ac390bb3bb0d46628cabcc)), closes [#12472](https://github.com/typegoose/typegoose/issues/12472) [#12604](https://github.com/typegoose/typegoose/issues/12604) [#12613](https://github.com/typegoose/typegoose/issues/12613) [#12696](https://github.com/typegoose/typegoose/issues/12696) [typegoose/typegoose#768](https://github.com/typegoose/typegoose/issues/768)
### Dependencies
* **@types/lodash:** upgrade to 4.14.189 ([6257223](https://github.com/typegoose/typegoose/commit/62572238e3cdbe2d7ce944da395f5f2ff7637593))
* **@typescript-eslint/*:** upgrade to 5.43.0 ([851163f](https://github.com/typegoose/typegoose/commit/851163f33d75c0ec707ccc3e843a7cd222f1960b))
* **eslint:** upgrade to 8.27.0 ([436036a](https://github.com/typegoose/typegoose/commit/436036ab21352ef625007d2a46b9d677f4e99f90))
* **loglevel:** upgrade to 1.8.1 ([b017f76](https://github.com/typegoose/typegoose/commit/b017f76cdb55cbe257fbf02cad5e699d93102a77))
* **mongodb-memory-server:** upgrade to 8.10.0 ([79242e6](https://github.com/typegoose/typegoose/commit/79242e64588887e63a78b3866f600508e38af18d))
* **mongoose:** upgrade to 6.7.2 ([d1e83f7](https://github.com/typegoose/typegoose/commit/d1e83f7aa140a4c5fce605e80340d617a4fe5fe2))
* **tslib:** upgrade to 2.4.1 ([9da2600](https://github.com/typegoose/typegoose/commit/9da260029f06bf5d34a789e09bd4c86a2f301273))
## [9.13.0-beta.1](https://github.com/typegoose/typegoose/compare/v9.12.1...v9.13.0-beta.1) (2022-10-27)
### Dependencies
* **@types/lodash:** upgrade to 4.14.186 ([8367452](https://github.com/typegoose/typegoose/commit/836745224e5a167ab8a5cb6701fbe3335bc7b651))
* **@types/semver:** upgrade to 7.3.13 ([9c7a151](https://github.com/typegoose/typegoose/commit/9c7a15182cafc3a59ff213b3e76a05b488b84ac2))
* **@typescript-eslint/*:** upgrade to 5.41.0 ([e10e53a](https://github.com/typegoose/typegoose/commit/e10e53aac461a0bb40890c15449db6ee29a6ff90))
* **eslint:** upgrade to 8.26.0 ([187c843](https://github.com/typegoose/typegoose/commit/187c84337b1836b0243b17550b579307877f3667))
* **mongodb-memory-server:** upgrade to 8.9.3 ([1725f65](https://github.com/typegoose/typegoose/commit/1725f65af25c86fb89f3f1cbd5cb4795ce9e0edf))
* **mongoose:** upgrade to 6.7.0 ([d5fa0e0](https://github.com/typegoose/typegoose/commit/d5fa0e09d933e6132241c5d2c2159882dc6d8b91))
* **semver:** upgrade to 7.3.8 ([7dc8138](https://github.com/typegoose/typegoose/commit/7dc813880df15ad9fc7fd4861661f8fb3d767a0d))
* **typescript:** upgrade to 4.8.4 ([6590961](https://github.com/typegoose/typegoose/commit/6590961e8736804fe17a1d0f9f82e19c1b0f09ff)), closes [#644](https://github.com/typegoose/typegoose/issues/644)
8 months ago
### [9.12.1](https://github.com/typegoose/typegoose/compare/v9.12.0...v9.12.1) (2022-09-26)
### Fixes
* add option to skip applying plugins on discriminators ([f9cbc90](https://github.com/typegoose/typegoose/commit/f9cbc90044b715cf1f2d1b535daca754b5de8bf3))
9 months ago
## [9.12.0](https://github.com/typegoose/typegoose/compare/v9.11.2...v9.12.0) (2022-09-13)
### Dependencies
* **@types/jest:** upgrade to 28.1.8 ([cc0377f](https://github.com/typegoose/typegoose/commit/cc0377f02dff75daf20db379740719f504e4e612))
* **@types/lodash:** upgrade to 4.14.185 ([58bde50](https://github.com/typegoose/typegoose/commit/58bde50259219a401aeb0842941aa32461089029))
* **@types/semver:** upgrade to 7.3.12 ([570d6d2](https://github.com/typegoose/typegoose/commit/570d6d23d919e68b65fec583159ccb64983bdf1e))
* **@typescript-eslint/*:** upgrade to 5.37.0 ([0eb4fa6](https://github.com/typegoose/typegoose/commit/0eb4fa6c1cc9fb209e4c5501f578490199a71403))
* **eslint:** upgrade to 8.23.1 ([fe69e01](https://github.com/typegoose/typegoose/commit/fe69e01a628eac39f01332e597574d793085b083))
* **jest-runner-tsd:** upgrade to 3.1.1 ([28dfd2a](https://github.com/typegoose/typegoose/commit/28dfd2ad28adb242fd130dba0e8b35c0629db735))
* **mongodb-memory-server:** upgrade to 8.9.1 ([76b8ba9](https://github.com/typegoose/typegoose/commit/76b8ba9a57ffeaa5d1545e8b92232f26e940ae2d))
* **mongoose:** upgrade to 6.6.0 ([44fce67](https://github.com/typegoose/typegoose/commit/44fce673f7f6ff91a56168d5d8b96e5f0d91d1bd))
* **ts-jest:** upgrade to 28.0.8 ([7bfba67](https://github.com/typegoose/typegoose/commit/7bfba67b0acfdb083223c27ffd9144f25e74c998))
9 months ago
### [9.11.2](https://github.com/typegoose/typegoose/compare/v9.11.1...v9.11.2) (2022-08-25)
### Style
* fix some typos ([#754](https://github.com/typegoose/typegoose/issues/754)) ([12b7007](https://github.com/typegoose/typegoose/commit/12b7007b7b2ce0ff50314be5cafac839756696f9))
9 months ago
### [9.11.1](https://github.com/typegoose/typegoose/compare/v9.11.0...v9.11.1) (2022-08-25)
### Fixes
* **scripts:** use double quotes in lint file glob ([#755](https://github.com/typegoose/typegoose/issues/755)) ([e383d32](https://github.com/typegoose/typegoose/commit/e383d3260f0b445ff133de56466794937a84c545))
10 months ago
## [9.11.0](https://github.com/typegoose/typegoose/compare/v9.10.1...v9.11.0) (2022-07-28)
### Dependencies
* **@types/jest:** upgrade to 28.1.6 ([3d93a26](https://github.com/typegoose/typegoose/commit/3d93a26f72150f24f76264932fbcd8688f18cd7b))
* **@typescript-eslint/*:** upgrade to 5.31.0 ([8a10681](https://github.com/typegoose/typegoose/commit/8a106814b9bd9bac42dc74b22b5fec15d20176ac))
* **eslint:** upgrade to 8.20.0 ([eaf2af4](https://github.com/typegoose/typegoose/commit/eaf2af4d7e3ee0ba22caf0711f4e956f4a3c8617))
* **jest:** upgrade to 28.1.3 ([436eda7](https://github.com/typegoose/typegoose/commit/436eda7639df4af529c1ce577921ed584c75226e))
* **lint-staged:** upgrade to 12.5.0 ([f447011](https://github.com/typegoose/typegoose/commit/f4470115cf24a5c99bfb549f9675d0e4143f1f6f))
* **mongodb-memory-server:** upgrade to 8.8.0 ([f7b95d5](https://github.com/typegoose/typegoose/commit/f7b95d5dbf92bce1661c4be11fc05fcb4561db18))
* **mongoose:** upgrade to 6.5.0 ([5535fa8](https://github.com/typegoose/typegoose/commit/5535fa8246b0367e74af5aec2650e6c3a1f2014b))
* **ts-jest:** upgrade to 28.0.7 ([7dc67be](https://github.com/typegoose/typegoose/commit/7dc67be5e06f6e7c4cfbd65bccf41c3b0400c458))
## [9.11.0-beta.2](https://github.com/typegoose/typegoose/compare/v9.11.0-beta.1...v9.11.0-beta.2) (2022-07-28)
### Dependencies
* **lint-staged:** upgrade to 12.5.0 ([f447011](https://github.com/typegoose/typegoose/commit/f4470115cf24a5c99bfb549f9675d0e4143f1f6f))
## [9.11.0-beta.1](https://github.com/typegoose/typegoose/compare/v9.10.1...v9.11.0-beta.1) (2022-07-27)
### Dependencies
* **@types/jest:** upgrade to 28.1.6 ([3d93a26](https://github.com/typegoose/typegoose/commit/3d93a26f72150f24f76264932fbcd8688f18cd7b))
* **@typescript-eslint/*:** upgrade to 5.31.0 ([8a10681](https://github.com/typegoose/typegoose/commit/8a106814b9bd9bac42dc74b22b5fec15d20176ac))
* **eslint:** upgrade to 8.20.0 ([eaf2af4](https://github.com/typegoose/typegoose/commit/eaf2af4d7e3ee0ba22caf0711f4e956f4a3c8617))
* **jest:** upgrade to 28.1.3 ([436eda7](https://github.com/typegoose/typegoose/commit/436eda7639df4af529c1ce577921ed584c75226e))
* **mongodb-memory-server:** upgrade to 8.8.0 ([f7b95d5](https://github.com/typegoose/typegoose/commit/f7b95d5dbf92bce1661c4be11fc05fcb4561db18))
* **mongoose:** upgrade to 6.5.0 ([5535fa8](https://github.com/typegoose/typegoose/commit/5535fa8246b0367e74af5aec2650e6c3a1f2014b))
* **ts-jest:** upgrade to 28.0.7 ([7dc67be](https://github.com/typegoose/typegoose/commit/7dc67be5e06f6e7c4cfbd65bccf41c3b0400c458))
11 months ago
### [9.10.1](https://github.com/typegoose/typegoose/compare/v9.10.0...v9.10.1) (2022-07-03)
### Fixes
* update mongoose peer dependency ([ed9dd62](https://github.com/typegoose/typegoose/commit/ed9dd62dbda3398c1045070c93a873012453980b)), closes [typegoose/typegoose#733](https://github.com/typegoose/typegoose/issues/733)
11 months ago
## [9.10.0](https://github.com/typegoose/typegoose/compare/v9.9.0...v9.10.0) (2022-07-02)
### Features
* **utils:** allow setting warnMixed Severity as property option ([ff793d1](https://github.com/typegoose/typegoose/commit/ff793d1201682e54b19927a525cfcec1c11fc2ec)), closes [typegoose/typegoose#620](https://github.com/typegoose/typegoose/issues/620)
### Dependencies
* **@types/jest:** upgrade to 28.1.4 ([feb2ece](https://github.com/typegoose/typegoose/commit/feb2ece6d190ab28d9c918f16c3a29f6fea3b49b))
* **@types/node:** upgrade to 12.20.55 ([3e09201](https://github.com/typegoose/typegoose/commit/3e09201cfe18cab63c569c6aca1d66eea170e108))
* **@types/semver:** upgrade to 7.3.10 ([92288de](https://github.com/typegoose/typegoose/commit/92288de5a45cbab0c541b84caf86c4db2cadaf8e))
* **@typescript-eslint/*:** upgrade to 5.30.3 ([7a722e1](https://github.com/typegoose/typegoose/commit/7a722e13be77d15c1b2d8a93f1c347ec8952a74e))
* **eslint:** upgrade to 8.19.0 ([f5940b4](https://github.com/typegoose/typegoose/commit/f5940b45b7675f89738d1c0081f45570f7dfc4e5))
* **eslint-plugin-prettier:** upgrade to 4.2.1 ([b1acd20](https://github.com/typegoose/typegoose/commit/b1acd20eacfdbb75faaebb6a88c5e9c191268e19))
* **jest:** upgrade to 28.1.2 ([e8139e2](https://github.com/typegoose/typegoose/commit/e8139e2f3d3b6364031b7f7f9f31026e14236513))
* **mongodb-memory-server:** upgrade to 8.7.2 ([c81fb51](https://github.com/typegoose/typegoose/commit/c81fb5165fc4bebe26ae372d542c736ffdca9106))
* **mongoose:** upgrade to 6.4.2 ([1558851](https://github.com/typegoose/typegoose/commit/15588515b22cc8fd1733931f0ef624319063502e))
* **prettier:** upgrade to 2.7.1 ([8a47e33](https://github.com/typegoose/typegoose/commit/8a47e33016999dd88731473db53148ac3cdb5300))
* **ts-jest:** upgrade to 28.0.5 ([d663713](https://github.com/typegoose/typegoose/commit/d6637131ba124bc42fa59d82d7d9c997a620733c))
### Fixes
* **index:** change "fields" to use mongoose's "IndexDefinition" type ([38862e0](https://github.com/typegoose/typegoose/commit/38862e0463991df73a9d9532cf59c6b0cd981b3b))
* **typegoose:** re-export type "SubDocumentType" and "ArraySubDocumentType" ([16dadd5](https://github.com/typegoose/typegoose/commit/16dadd530b2255fe1e5519d339ff05ffa50d7732))
* **typegoose::getModelWithString:** allow specifying QueryHelpers for return model ([441113b](https://github.com/typegoose/typegoose/commit/441113b7037a816d41686fa1a4bd9ddbbddb34fe))
* **types::BasePropOptions:** update "enum" to use mongoose's types ([8c8a6e2](https://github.com/typegoose/typegoose/commit/8c8a6e27a5d4ed7e724c43908b1846be26d777e3))
* **types::DocumentType:** add correct generic for "toJSON" and "toObject" types ([026482d](https://github.com/typegoose/typegoose/commit/026482df5fd43775b6073ceb55e2bd0bffb0dbc5)), closes [typegoose/typegoose#732](https://github.com/typegoose/typegoose/issues/732)
* **types::DocumentType:** simplify conditional ([be59b7a](https://github.com/typegoose/typegoose/commit/be59b7ac195143887b927c113d9ee8f369cef778))
* **types::IIndexArray:** remove generic ([9983ce9](https://github.com/typegoose/typegoose/commit/9983ce9f81ceca9097aa6d4295a5f117c5687bc8))
* **types::IPluginsArray:** remove generic ([abff87e](https://github.com/typegoose/typegoose/commit/abff87e81134f2e4b60bd3187716b32dda61f4a9))
* **types::VirtualOptions:** update "match" to use mongoose's types ([dc6680f](https://github.com/typegoose/typegoose/commit/dc6680f207a82a7e8f2035925c40262523510feb))
### Style
* **typeguards:isRefType*:** add tsdoc for "refType" parameter ([c704bb6](https://github.com/typegoose/typegoose/commit/c704bb6c5e7ca399e04fecb4afd7a5fb63626846))
* **types:** add "SubDocumentType" and "ArraySubDocumentType" to supplement DocumentType ([72d49c1](https://github.com/typegoose/typegoose/commit/72d49c1a6e16440abb0050f1594280d54ccfd63c))
* **types::BeAnObject:** update tsdoc to explain difference with "KeyStringAny" ([3448fde](https://github.com/typegoose/typegoose/commit/3448fde733aee2d51558897e082894170b08b27c))
* **types::EmptyVoidFn:** fix typo in tsdoc ([93aab06](https://github.com/typegoose/typegoose/commit/93aab0660f4bed680fc91360378cd8e9013531dc))
* **types::IndexOptions:** add TODO for typegoose 10 ([edcd0c4](https://github.com/typegoose/typegoose/commit/edcd0c4af536d1787dd4fae4d7d9786c6e431e87))
* **types::IObjectWithTypegooseName:** deprecate interface and value ([89810b8](https://github.com/typegoose/typegoose/commit/89810b8e53c35a9cde407b1077487a16c945abe6))
* **types::KeyStringAny:** simplify type by using "Record" ([77c9502](https://github.com/typegoose/typegoose/commit/77c95022209c7bf3626af267b8fc8ccb2f1a45a4))
* **types::ReturnModelType:** update tsdoc ([bb66145](https://github.com/typegoose/typegoose/commit/bb661456c5d8fa5e9c0fc3bf022620d07d7c8b62))
* **types::VirtualPopulateMap:** change map type to not be coerced to "any" ([b3c43ac](https://github.com/typegoose/typegoose/commit/b3c43acbf5ad742068d2bf58570a6733474a3d3c))
* **utils::getClass:** update tsdoc to reflect current implementation ([51d2eba](https://github.com/typegoose/typegoose/commit/51d2eba4961b846f3938f281886380291be6e992))
## [9.10.0-beta.10](https://github.com/typegoose/typegoose/compare/v9.10.0-beta.9...v9.10.0-beta.10) (2022-07-02)
### Style
* **types::IndexOptions:** add TODO for typegoose 10 ([edcd0c4](https://github.com/typegoose/typegoose/commit/edcd0c4af536d1787dd4fae4d7d9786c6e431e87))
## [9.10.0-beta.9](https://github.com/typegoose/typegoose/compare/v9.10.0-beta.8...v9.10.0-beta.9) (2022-07-02)
### Dependencies
* **@types/jest:** upgrade to 28.1.4 ([feb2ece](https://github.com/typegoose/typegoose/commit/feb2ece6d190ab28d9c918f16c3a29f6fea3b49b))
* **@typescript-eslint/*:** upgrade to 5.30.3 ([7a722e1](https://github.com/typegoose/typegoose/commit/7a722e13be77d15c1b2d8a93f1c347ec8952a74e))
* **eslint:** upgrade to 8.19.0 ([f5940b4](https://github.com/typegoose/typegoose/commit/f5940b45b7675f89738d1c0081f45570f7dfc4e5))
* **eslint-plugin-prettier:** upgrade to 4.2.1 ([b1acd20](https://github.com/typegoose/typegoose/commit/b1acd20eacfdbb75faaebb6a88c5e9c191268e19))
* **jest:** upgrade to 28.1.2 ([e8139e2](https://github.com/typegoose/typegoose/commit/e8139e2f3d3b6364031b7f7f9f31026e14236513))
* **mongodb-memory-server:** upgrade to 8.7.2 ([c81fb51](https://github.com/typegoose/typegoose/commit/c81fb5165fc4bebe26ae372d542c736ffdca9106))
* **mongoose:** upgrade to 6.4.2 ([1558851](https://github.com/typegoose/typegoose/commit/15588515b22cc8fd1733931f0ef624319063502e))
### Fixes
* **types::BasePropOptions:** update "enum" to use mongoose's types ([8c8a6e2](https://github.com/typegoose/typegoose/commit/8c8a6e27a5d4ed7e724c43908b1846be26d777e3))
* **types::DocumentType:** add correct generic for "toJSON" and "toObject" types ([026482d](https://github.com/typegoose/typegoose/commit/026482df5fd43775b6073ceb55e2bd0bffb0dbc5)), closes [typegoose/typegoose#732](https://github.com/typegoose/typegoose/issues/732)
* **types::IIndexArray:** remove generic ([9983ce9](https://github.com/typegoose/typegoose/commit/9983ce9f81ceca9097aa6d4295a5f117c5687bc8))
* **types::IPluginsArray:** remove generic ([abff87e](https://github.com/typegoose/typegoose/commit/abff87e81134f2e4b60bd3187716b32dda61f4a9))
* **types::VirtualOptions:** update "match" to use mongoose's types ([dc6680f](https://github.com/typegoose/typegoose/commit/dc6680f207a82a7e8f2035925c40262523510feb))
### Style
* **types::BeAnObject:** update tsdoc to explain difference with "KeyStringAny" ([3448fde](https://github.com/typegoose/typegoose/commit/3448fde733aee2d51558897e082894170b08b27c))
* **types::EmptyVoidFn:** fix typo in tsdoc ([93aab06](https://github.com/typegoose/typegoose/commit/93aab0660f4bed680fc91360378cd8e9013531dc))
* **types::IObjectWithTypegooseName:** deprecate interface and value ([89810b8](https://github.com/typegoose/typegoose/commit/89810b8e53c35a9cde407b1077487a16c945abe6))
* **types::KeyStringAny:** simplify type by using "Record" ([77c9502](https://github.com/typegoose/typegoose/commit/77c95022209c7bf3626af267b8fc8ccb2f1a45a4))
* **types::ReturnModelType:** update tsdoc ([bb66145](https://github.com/typegoose/typegoose/commit/bb661456c5d8fa5e9c0fc3bf022620d07d7c8b62))
* **types::VirtualPopulateMap:** change map type to not be coerced to "any" ([b3c43ac](https://github.com/typegoose/typegoose/commit/b3c43acbf5ad742068d2bf58570a6733474a3d3c))
## [9.10.0-beta.8](https://github.com/typegoose/typegoose/compare/v9.10.0-beta.7...v9.10.0-beta.8) (2022-06-30)
### Fixes
* **types::DocumentType:** simplify conditional ([be59b7a](https://github.com/typegoose/typegoose/commit/be59b7ac195143887b927c113d9ee8f369cef778))
## [9.10.0-beta.7](https://github.com/typegoose/typegoose/compare/v9.10.0-beta.6...v9.10.0-beta.7) (2022-06-28)
### Dependencies
* **@types/jest:** upgrade to 28.1.3 ([86c9b8e](https://github.com/typegoose/typegoose/commit/86c9b8e444696dbd6a836c55c76d2340240bcb88))
* **@typescript-eslint/*:** upgrade to 5.30.0 ([e87dffd](https://github.com/typegoose/typegoose/commit/e87dffd81ea1b1734ba56f9e64c6cdd65af658fa))
* **eslint-plugin-prettier:** upgrade to 4.1.0 ([bde224a](https://github.com/typegoose/typegoose/commit/bde224ad9d238326a5c7219c41f6972c20c81216))
* **mongodb-memory-server:** upgrade to 8.7.1 ([2f382b6](https://github.com/typegoose/typegoose/commit/2f382b6d255880b3ee4f31bdf958cd5a943811f1))
## [9.10.0-beta.6](https://github.com/typegoose/typegoose/compare/v9.10.0-beta.5...v9.10.0-beta.6) (2022-06-26)
### Fixes
* **index:** change "fields" to use mongoose's "IndexDefinition" type ([38862e0](https://github.com/typegoose/typegoose/commit/38862e0463991df73a9d9532cf59c6b0cd981b3b))
## [9.10.0-beta.5](https://github.com/typegoose/typegoose/compare/v9.10.0-beta.4...v9.10.0-beta.5) (2022-06-24)
### Fixes
* **typegoose::getModelWithString:** allow specifying QueryHelpers for return model ([441113b](https://github.com/typegoose/typegoose/commit/441113b7037a816d41686fa1a4bd9ddbbddb34fe))
### Style
* **typeguards:isRefType*:** add tsdoc for "refType" parameter ([c704bb6](https://github.com/typegoose/typegoose/commit/c704bb6c5e7ca399e04fecb4afd7a5fb63626846))
* **utils::getClass:** update tsdoc to reflect current implementation ([51d2eba](https://github.com/typegoose/typegoose/commit/51d2eba4961b846f3938f281886380291be6e992))
## [9.10.0-beta.4](https://github.com/typegoose/typegoose/compare/v9.10.0-beta.3...v9.10.0-beta.4) (2022-06-20)
### Dependencies
* **@types/jest:** upgrade to 28.1.2 ([8fda636](https://github.com/typegoose/typegoose/commit/8fda636d1048c4d04c5224d3cc8f381789193ba2))
* **eslint:** upgrade to 8.18.0 ([4eb6b5a](https://github.com/typegoose/typegoose/commit/4eb6b5aecf1c484436e6e758351419aeb21b3150))
* **mongodb-memory-server:** upgrade to 8.7.0 ([7427db7](https://github.com/typegoose/typegoose/commit/7427db78e9c47f68e677e0d758bc92bb293ab3b2))
## [9.10.0-beta.3](https://github.com/typegoose/typegoose/compare/v9.10.0-beta.2...v9.10.0-beta.3) (2022-06-18)
### Style
* **types:** add "SubDocumentType" and "ArraySubDocumentType" to supplement DocumentType ([72d49c1](https://github.com/typegoose/typegoose/commit/72d49c1a6e16440abb0050f1594280d54ccfd63c))
### Fixes
* **typegoose:** re-export type "SubDocumentType" and "ArraySubDocumentType" ([16dadd5](https://github.com/typegoose/typegoose/commit/16dadd530b2255fe1e5519d339ff05ffa50d7732))
## [9.10.0-beta.2](https://github.com/typegoose/typegoose/compare/v9.10.0-beta.1...v9.10.0-beta.2) (2022-06-17)
### Dependencies
* **@types/node:** upgrade to 12.20.55 ([3e09201](https://github.com/typegoose/typegoose/commit/3e09201cfe18cab63c569c6aca1d66eea170e108))
* **@types/semver:** upgrade to 7.3.10 ([92288de](https://github.com/typegoose/typegoose/commit/92288de5a45cbab0c541b84caf86c4db2cadaf8e))
* **@typescript-eslint/*:** upgrade to 5.28.0 ([44f1388](https://github.com/typegoose/typegoose/commit/44f13882146aaea29ca2eabc0f0af92f98a8900e))
* **jest:** upgrade to 28.1.1 ([980ea20](https://github.com/typegoose/typegoose/commit/980ea20146eb395dbbacb04f55e97e252b6e18df))
* **mongodb-memory-server:** upgrade to 8.6.1 ([a5335f0](https://github.com/typegoose/typegoose/commit/a5335f0fe04f97105e322d8de9ba72b9e0ea1fbf))
* **prettier:** upgrade to 2.7.1 ([8a47e33](https://github.com/typegoose/typegoose/commit/8a47e33016999dd88731473db53148ac3cdb5300))
* **ts-jest:** upgrade to 28.0.5 ([d663713](https://github.com/typegoose/typegoose/commit/d6637131ba124bc42fa59d82d7d9c997a620733c))
## [9.10.0-beta.1](https://github.com/typegoose/typegoose/compare/v9.9.0...v9.10.0-beta.1) (2022-06-05)
### Features
* **utils:** allow setting warnMixed Severity as property option ([ff793d1](https://github.com/typegoose/typegoose/commit/ff793d1201682e54b19927a525cfcec1c11fc2ec)), closes [typegoose/typegoose#620](https://github.com/typegoose/typegoose/issues/620)
### Dependencies
* **@types/jest:** upgrade to 28.1.1 ([9521a04](https://github.com/typegoose/typegoose/commit/9521a04d5f500acb145eb7bca0f6a0fef87babe8))
* **@types/node:** upgrade to 12.20.54 ([2bf4bdd](https://github.com/typegoose/typegoose/commit/2bf4bdd4eabfaaaf2a2c2d726b4c3a8c857eb8b4))
* **eslint:** upgrade to 8.17.0 ([5dec6cc](https://github.com/typegoose/typegoose/commit/5dec6cc58105ed7fd868a8a433945d4ed35ea60c))
* **ts-jest:** upgrade to 28.0.4 ([aaf494b](https://github.com/typegoose/typegoose/commit/aaf494bc39abec1220e2aca41070265c758845bb))
## [9.9.0](https://github.com/typegoose/typegoose/compare/v9.8.1...v9.9.0) (2022-06-03)
### Features
* **typegoose::getDiscriminatorModelForClass:** add option to overwrite ModelOptions ([1c7460e](https://github.com/typegoose/typegoose/commit/1c7460e9c20821cb007a709ab25320904dac72d6)), closes [typegoose/typegoose#713](https://github.com/typegoose/typegoose/issues/713)
### Refactor
* **typegoose::getModelForClass:** assign options to new value instead of re-assigning ([2e2f304](https://github.com/typegoose/typegoose/commit/2e2f3044223854bed02556788e775bf31e0a0ba2))
* **typegoose::getModelForClass:** rename value to be more intuitive ([b504314](https://github.com/typegoose/typegoose/commit/b504314c0288e203bcf9564678973a0a6a05e657))
* **utils::getName:** rename a parameter to be more intuitive ([cbdf759](https://github.com/typegoose/typegoose/commit/cbdf75904439753def36d5a756c19178a1b122c1))
### Dependencies
* **@types/jest:** upgrade to 27.5.1 ([ef199ce](https://github.com/typegoose/typegoose/commit/ef199cee202ad3c833c7fbde91d8608a9a7b30cf))
* **@types/lodash:** upgrade to 4.14.182 ([b1f5cb1](https://github.com/typegoose/typegoose/commit/b1f5cb1d245b6710415ff8e1c73ceb28db0f6350))
* **@types/node:** upgrade to 12.20.52 ([72cb216](https://github.com/typegoose/typegoose/commit/72cb2161653f6dc84123108caedc88690aae7122))
* **@typescript-eslint/*:** upgrade to 5.26.0 ([5b25b23](https://github.com/typegoose/typegoose/commit/5b25b23bb7915d3b587ca71f027d62164a071f07))
* **commitlint:** upgrade to 16.3.0 ([dd7301e](https://github.com/typegoose/typegoose/commit/dd7301e9edfa389dc9a1e7a8ef328da5158a6bf5))
* **eslint:** upgrade to 8.16.0 ([2be72ac](https://github.com/typegoose/typegoose/commit/2be72ac054a2886b7e48aafd29b62019927a7036))
* **jest:** upgrade to 28.1.0 ([661b10b](https://github.com/typegoose/typegoose/commit/661b10b7c15a6faff0baf4a195090da4843005b3))
* **mongodb-memory-server:** upgrade to 8.6.0 ([47bfcc4](https://github.com/typegoose/typegoose/commit/47bfcc4325a6a08ae6921e69c5a85249a42cd253))
* **mongoose:** upgrade to 6.3.5 ([7f70529](https://github.com/typegoose/typegoose/commit/7f70529fa5bbcad3d767fdd1cf6bc40481c497f7))
* **tslib:** upgrade to 2.4.0 ([8417ba1](https://github.com/typegoose/typegoose/commit/8417ba17f5183d3e25e07d9160033e6ea7e67d65))
### Style
* **constants:** add tsdoc deprecate to backwards-compat Value ([0791807](https://github.com/typegoose/typegoose/commit/079180711d6dc829d7b70b8404446228c542c304))
* **errors::InvalidWhatIsItError:** add tsdoc deprecate to backwards-compat error ([eec2843](https://github.com/typegoose/typegoose/commit/eec2843a20348ffd73bc36787d43594273d697ef))
* **globalOptions:** update tsdoc ([c10271b](https://github.com/typegoose/typegoose/commit/c10271b0e40a2d50af7bdee5f9bbe0ac3142bc2f))
* **index:** update tsdoc ([3f3723a](https://github.com/typegoose/typegoose/commit/3f3723aab1bc476c9782dae573f0cf33b5fffd97))
* **modelOptions:** update tsdoc ([a95d0aa](https://github.com/typegoose/typegoose/commit/a95d0aa0b1c007900cc69b220f91723abeb1cf30))
* **plugin:** update tsdoc ([1753514](https://github.com/typegoose/typegoose/commit/175351457e961d72f9d60756442cbad69784bfb0))
* **prop:** update tsdoc ([619c7d7](https://github.com/typegoose/typegoose/commit/619c7d7f2acd6fb9842a43cb634a439ca6795dd2))
* **queryMethod:** update tsdoc ([c4e2632](https://github.com/typegoose/typegoose/commit/c4e26320af73d03e6900948ebbd5b4066b59c3f7))
* **schema::_buildSchema:** update tsdoc to current implementation ([082de9f](https://github.com/typegoose/typegoose/commit/082de9f3033abcf4e8fdc2be53e3db635cf60440))
* **typegoose:** add best-guess comment explaining why "rawOption" is used for "getName" ([89c4b1b](https://github.com/typegoose/typegoose/commit/89c4b1bfead50401ab71ad6987ab79522250c8ec))
* **typegoose:** fix missing and incorrect tsdoc ([1cb946f](https://github.com/typegoose/typegoose/commit/1cb946f04a76b5948a994d27458a1990f397db69))
* **typegoose:** update tsdoc ([07acb61](https://github.com/typegoose/typegoose/commit/07acb6166457e374a93d07fa146ddbb617a6cff5))
* **typeguards:** update tsdoc ([1c05684](https://github.com/typegoose/typegoose/commit/1c056843c50a854f1f787f2b089dc278d27c5070))
* **types:** update tsdoc ([15488e6](https://github.com/typegoose/typegoose/commit/15488e6dcc6e6143776a1c7c18cf369d839b2ca6))
* **utils:** update tsdoc to match current implementations ([f2a10d0](https://github.com/typegoose/typegoose/commit/f2a10d022e8142f6046ce7572fc7f4012dd1a360))
* **utils::getName:** change tsdoc to be more descriptive ([f10eb35](https://github.com/typegoose/typegoose/commit/f10eb35961ea0668ac2e5b4da267db82c340aac9))
* **utils::mergeMetadata:** add "returns" tsdoc ([109fb7d](https://github.com/typegoose/typegoose/commit/109fb7d5440acc86dc495caf58d2ffe9cbc7b496))
### Fixes
* **types::BasePropOptions:** replace "set" & "get" with upstream types ([51296f4](https://github.com/typegoose/typegoose/commit/51296f4b62cf9fec9bd55c02f61d1a338ac91983))
* **types::IndexOptions:** remove options that has been fixed upstream ([98c1918](https://github.com/typegoose/typegoose/commit/98c19183caade70d00f908d29c466abb09779c5f))
* **types::ValidateStringOptions:** replace "match" with upstream types ([f290fad](https://github.com/typegoose/typegoose/commit/f290fad470ce4bacd0b87fe3b04119a589f35cec))
* **types::VirtualOptions:** replace options with upstream types ([e2c721a](https://github.com/typegoose/typegoose/commit/e2c721a736ee07a4c3444d35ffc7e3c37ed6c6ab))
## [9.9.0-beta.3](https://github.com/typegoose/typegoose/compare/v9.9.0-beta.2...v9.9.0-beta.3) (2022-06-01)
### Style
* **constants:** add tsdoc deprecate to backwards-compat Value ([0791807](https://github.com/typegoose/typegoose/commit/079180711d6dc829d7b70b8404446228c542c304))
* **errors::InvalidWhatIsItError:** add tsdoc deprecate to backwards-compat error ([eec2843](https://github.com/typegoose/typegoose/commit/eec2843a20348ffd73bc36787d43594273d697ef))
* **globalOptions:** update tsdoc ([c10271b](https://github.com/typegoose/typegoose/commit/c10271b0e40a2d50af7bdee5f9bbe0ac3142bc2f))
* **index:** update tsdoc ([3f3723a](https://github.com/typegoose/typegoose/commit/3f3723aab1bc476c9782dae573f0cf33b5fffd97))
* **modelOptions:** update tsdoc ([a95d0aa](https://github.com/typegoose/typegoose/commit/a95d0aa0b1c007900cc69b220f91723abeb1cf30))
* **plugin:** update tsdoc ([1753514](https://github.com/typegoose/typegoose/commit/175351457e961d72f9d60756442cbad69784bfb0))
* **prop:** update tsdoc ([619c7d7](https://github.com/typegoose/typegoose/commit/619c7d7f2acd6fb9842a43cb634a439ca6795dd2))
* **queryMethod:** update tsdoc ([c4e2632](https://github.com/typegoose/typegoose/commit/c4e26320af73d03e6900948ebbd5b4066b59c3f7))
* **typegoose:** update tsdoc ([07acb61](https://github.com/typegoose/typegoose/commit/07acb6166457e374a93d07fa146ddbb617a6cff5))
* **typeguards:** update tsdoc ([1c05684](https://github.com/typegoose/typegoose/commit/1c056843c50a854f1f787f2b089dc278d27c5070))
* **types:** update tsdoc ([15488e6](https://github.com/typegoose/typegoose/commit/15488e6dcc6e6143776a1c7c18cf369d839b2ca6))
* **utils:** update tsdoc to match current implementations ([f2a10d0](https://github.com/typegoose/typegoose/commit/f2a10d022e8142f6046ce7572fc7f4012dd1a360))
### Fixes
* **types::BasePropOptions:** replace "set" & "get" with upstream types ([51296f4](https://github.com/typegoose/typegoose/commit/51296f4b62cf9fec9bd55c02f61d1a338ac91983))
* **types::IndexOptions:** remove options that has been fixed upstream ([98c1918](https://github.com/typegoose/typegoose/commit/98c19183caade70d00f908d29c466abb09779c5f))
* **types::ValidateStringOptions:** replace "match" with upstream types ([f290fad](https://github.com/typegoose/typegoose/commit/f290fad470ce4bacd0b87fe3b04119a589f35cec))
* **types::VirtualOptions:** replace options with upstream types ([e2c721a](https://github.com/typegoose/typegoose/commit/e2c721a736ee07a4c3444d35ffc7e3c37ed6c6ab))
## [9.9.0-beta.2](https://github.com/typegoose/typegoose/compare/v9.9.0-beta.1...v9.9.0-beta.2) (2022-05-30)
### Dependencies
* **mongoose:** upgrade to 6.3.5 ([7f70529](https://github.com/typegoose/typegoose/commit/7f70529fa5bbcad3d767fdd1cf6bc40481c497f7))
## [9.9.0-beta.1](https://github.com/typegoose/typegoose/compare/v9.8.1...v9.9.0-beta.1) (2022-05-28)
### Features
* **typegoose::getDiscriminatorModelForClass:** add option to overwrite ModelOptions ([1c7460e](https://github.com/typegoose/typegoose/commit/1c7460e9c20821cb007a709ab25320904dac72d6)), closes [typegoose/typegoose#713](https://github.com/typegoose/typegoose/issues/713)
### Style
* **schema::_buildSchema:** update tsdoc to current implementation ([082de9f](https://github.com/typegoose/typegoose/commit/082de9f3033abcf4e8fdc2be53e3db635cf60440))
* **typegoose:** add best-guess comment explaining why "rawOption" is used for "getName" ([89c4b1b](https://github.com/typegoose/typegoose/commit/89c4b1bfead50401ab71ad6987ab79522250c8ec))
* **typegoose:** fix missing and incorrect tsdoc ([1cb946f](https://github.com/typegoose/typegoose/commit/1cb946f04a76b5948a994d27458a1990f397db69))
* **utils::getName:** change tsdoc to be more descriptive ([f10eb35](https://github.com/typegoose/typegoose/commit/f10eb35961ea0668ac2e5b4da267db82c340aac9))
* **utils::mergeMetadata:** add "returns" tsdoc ([109fb7d](https://github.com/typegoose/typegoose/commit/109fb7d5440acc86dc495caf58d2ffe9cbc7b496))
### Refactor
* **typegoose::getModelForClass:** assign options to new value instead of re-assigning ([2e2f304](https://github.com/typegoose/typegoose/commit/2e2f3044223854bed02556788e775bf31e0a0ba2))
* **typegoose::getModelForClass:** rename value to be more intuitive ([b504314](https://github.com/typegoose/typegoose/commit/b504314c0288e203bcf9564678973a0a6a05e657))
* **utils::getName:** rename a parameter to be more intuitive ([cbdf759](https://github.com/typegoose/typegoose/commit/cbdf75904439753def36d5a756c19178a1b122c1))
### Dependencies
* **@types/jest:** upgrade to 27.5.1 ([ef199ce](https://github.com/typegoose/typegoose/commit/ef199cee202ad3c833c7fbde91d8608a9a7b30cf))
* **@types/lodash:** upgrade to 4.14.182 ([b1f5cb1](https://github.com/typegoose/typegoose/commit/b1f5cb1d245b6710415ff8e1c73ceb28db0f6350))
* **@types/node:** upgrade to 12.20.52 ([72cb216](https://github.com/typegoose/typegoose/commit/72cb2161653f6dc84123108caedc88690aae7122))
* **@typescript-eslint/*:** upgrade to 5.26.0 ([5b25b23](https://github.com/typegoose/typegoose/commit/5b25b23bb7915d3b587ca71f027d62164a071f07))
* **commitlint:** upgrade to 16.3.0 ([dd7301e](https://github.com/typegoose/typegoose/commit/dd7301e9edfa389dc9a1e7a8ef328da5158a6bf5))
* **eslint:** upgrade to 8.16.0 ([2be72ac](https://github.com/typegoose/typegoose/commit/2be72ac054a2886b7e48aafd29b62019927a7036))
* **jest:** upgrade to 28.1.0 ([661b10b](https://github.com/typegoose/typegoose/commit/661b10b7c15a6faff0baf4a195090da4843005b3))
* **mongodb-memory-server:** upgrade to 8.6.0 ([47bfcc4](https://github.com/typegoose/typegoose/commit/47bfcc4325a6a08ae6921e69c5a85249a42cd253))
* **tslib:** upgrade to 2.4.0 ([8417ba1](https://github.com/typegoose/typegoose/commit/8417ba17f5183d3e25e07d9160033e6ea7e67d65))
### [9.8.1](https://github.com/typegoose/typegoose/compare/v9.8.0...v9.8.1) (2022-04-21)
The Type change in this release may break some array post hooks and need to be separated
### Fixes
* **hooks:** add "this" typing for post-query hooks ([44ff1c1](https://github.com/typegoose/typegoose/commit/44ff1c120dccf2aaab78df0500484547244404f5)), closes [typegoose/typegoose#694](https://github.com/typegoose/typegoose/issues/694)
## [9.8.0](https://github.com/typegoose/typegoose/compare/v9.7.1...v9.8.0) (2022-04-16)
### Dependencies
* **@types/jest:** upgrade to 27.4.1 ([f1f1f7c](https://github.com/typegoose/typegoose/commit/f1f1f7cca9ba856847dcd5d48333769a049efc5f))
* **@types/lodash:** upgrade to 4.14.181 ([02b1aee](https://github.com/typegoose/typegoose/commit/02b1aee313c8464b729aec57219d1a12fb22c3fc))
* **@typescript-eslint/*:** upgrade to 5.19.0 ([c86c5c8](https://github.com/typegoose/typegoose/commit/c86c5c8b50b4078a8b0e542da06a223bb86f4cfd))
* **commitlint:** upgrade to 16.2.3 ([c486229](https://github.com/typegoose/typegoose/commit/c4862290629334e54af4e6b62f7e7884d981fa2d))
* **eslint:** upgrade to 8.13.0 ([c6b8038](https://github.com/typegoose/typegoose/commit/c6b80383432b5e78e6f3a47b07cec08210d55a03))
* **eslint-config-prettier:** upgrade to 8.5.0 ([0f62917](https://github.com/typegoose/typegoose/commit/0f629172b78f8dccf7d041794de9866428ab3885))
* **mongodb-memory-server:** upgrade to 8.5.0 ([7392b77](https://github.com/typegoose/typegoose/commit/7392b7747edd058660d6b257e0d99a491b44500d))
* **mongoose:** upgrade to 6.3.0 ([2419824](https://github.com/typegoose/typegoose/commit/2419824219e7907dd8f8788125594ff6809a41c6))
* **prettier:** upgrade to 2.6.2 ([f2adbc6](https://github.com/typegoose/typegoose/commit/f2adbc6d86ddea8db461d930c1970d5615213151))
* **semver:** upgrade to 7.3.7 ([367d797](https://github.com/typegoose/typegoose/commit/367d79793c303fe122e1e4059869e06d3b46ae54))
* **ts-jest:** upgrade to 27.1.4 ([4358ecc](https://github.com/typegoose/typegoose/commit/4358ecc1571d91aee443802506368d646c8bb031))
### Fixes
* **types::VirtualOptions:** fix "localField" and "foreignField" typings ([eb6521b](https://github.com/typegoose/typegoose/commit/eb6521be5086f919287ece15807116d5a9506ce3)), closes [typegoose/typegoose#674](https://github.com/typegoose/typegoose/issues/674)
### [9.7.1](https://github.com/typegoose/typegoose/compare/v9.7.0...v9.7.1) (2022-03-23)
### Style
* **utils::mapOptions:** add proper interface for return type ([3deb4ec](https://github.com/typegoose/typegoose/commit/3deb4ecc283145badb251b01974531f9f2896e87))
### Fixes
* **processProp:** fix handling map-array values ([36deb80](https://github.com/typegoose/typegoose/commit/36deb80cd9a63542eb16c0a0fcb5db84ce5db81e)), closes [typegoose/typegoose#682](https://github.com/typegoose/typegoose/issues/682)
## [9.7.0](https://github.com/typegoose/typegoose/compare/v9.6.2...v9.7.0) (2022-02-22)
### Fixes
* **types::QueryHelperThis:** fix missing QueryHelpers in DocumentType ([03a39de](https://github.com/typegoose/typegoose/commit/03a39de4754637b1f1fec4a9840b8c4c30901226))
### Dependencies
* **@typescript-eslint/*:** upgrade to 5.12.1 ([a59ed73](https://github.com/typegoose/typegoose/commit/a59ed73e719466cc1e347a9bc2b30493ad02917e))
* **commitlint:** upgrade to 16.2.1 ([c3005bf](https://github.com/typegoose/typegoose/commit/c3005bf9baf5f95fc52e112fef370816aa27c1b9))