8.0.0 (2021-07-28)
⚠ BREAKING CHANGES
- typeguards:
isRefType
now is way more stricter and requires an second parameter to work - NodeJS 10 & 11 are now unsupported, lowest supported is now NodeJS 12
- processProp: "ref" and "refPath" now use "mapArrayOptions" that means that some options might be mapped differently
- Changing types from unofficial to official is an breaking change
- prop: Removing deprecated options "items", "of", "refType"
- prop: Removing deprecated function "mapProp"
- prop: Removing deprecated function "arrayProp"
Features
- add class "Passthrough" and functionality (e9ee628), closes typegoose/typegoose#382
- processProp: allow & correctly map reference-maps (581b6b3)
- processProp: use "mapArrayOptions" for "ref" and "refPath" (b39eff9), closes typegoose/typegoose#513
- prop: remove "arrayProp" (8a5b337), closes #258
- prop: remove "mapProp" (9e913b8), closes #258
- prop: remove deprecated options (c27d2a0), closes #257
- typeguards: enhance "isRefType" checks (e3a3bf7), closes typegoose/typegoose#569
- types: add option prop option "castNonArrays" (3a9e95a), closes typegoose/typegoose#568
- unsupport nodejs 10 & 11 (d24d6d7)
- utils: move E019 Error into its own class to confuse less (6ad5043)
- Update to work with mongoose 5.11 (6cdfb0f)
Reverts
- "chore(workflow): tests: change "semantic-release" to be an dry-run" (f0c0067)
- "release: v7.6.0-beta.1" (8116a7d)
Fixes
- defaultClasses: convert "Base" into an interface (2071aa7)
- hooks: remove unused "done" callback (4692976), closes typegoose/typegoose#561
- index: extend typings of the index decorator (#548) (f24ee9d)
- processProp: add error code E023 for '"ref" is not supported for "${propKind}"!' (63a5b31)
- processProp: set type to "Mixed" when type is still "*Map" (e98d026)
- typegoose: fix lowest supported mongoose version (90d2c2f)
- types: add "QueryHelpers" to "DocumentType" (f4dba22)
- types: re-enable QueryHelpers for official types (99071b1)
Dependencies
- @semantic-release/github: upgrade to version "7.2.3" (c52195c)
- @semantic-release/npm: upgrade to "7.1.3" (a4fa9ce)
- @semantic-release/npm: upgrade to version "7.1.3" (d58a074)
- @semantic-release/release-notes-generator: upgrade to version "9.0.2" (c0b2a77)
- @semantic-release/release-notes-generator: upgrade to version "9.0.3" (a8ba787)
- @types/jest: upgrade to version "26.0.22" (e7d4ef1)
- @types/jest: upgrade to version "26.0.23" (ab65cce)
- @types/jest: upgrade to version 26.0.24 (d9b1b69)
- @types/lodash: upgrade to version "4.14.170" (96be5b4)
- @types/lodash: upgrade to version 4.14.171 (d6036de)
- @types/node: upgrade to "10.17.56" (cc23392)
- @types/node: upgrade to version "12.12.6" (0b91f99)
- @types/semver: upgrade to version "7.3.6" (7e60b5c)
- @types/semver: upgrade to version 7.3.8 (2f2d60e)
- @typescript-eslint/*: upgrade to version "4.25.0" (e768711)
- @typescript-eslint/*: upgrade to version "4.28.0" (7c8883b)
- @typescript-eslint/*: upgrade to version "4.28.1" (49b1c11)
- @typescript-eslint/*: upgrade to version 4.28.5 (d7dcc92)
- commitlint: upgrade to "12.1.1" (6442141)
- commitlint: upgrade to version "12.1.4" (7e29e40)
- commitlint: upgrade to version 13.1.0 (62bbfb9)
- coveralls: upgrade to version "3.1.1" (0a3211a)
- eslint: upgrade to "7.26.0" (601814d)
- eslint: upgrade to version "7.23.0" and plugins (bf18717)
- eslint: upgrade to version "7.27.0" (0db5b74)
- eslint: upgrade to version "7.29.0" (525f1c0)
- eslint: upgrade to version 7.31.0 (e6ee83a)
- husky: upgrade to version "6.0.0" (e20983b)
- husky: upgrade to version "7.0.0" (5b58237)
- husky: upgrade to version 7.0.1 (4decf83)
- jest: upgrade to version "27.0.1" (351ace3)
- jest: upgrade to version "27.0.5" (45e8e00)
- jest: upgrade to version "27.0.6" (8eca711)
- lint-staged: upgrade to version "11.0.0" (c8e6c13)
- lint-staged: upgrade to version 11.1.1 (5f370ad)
- mongodb-memory-server: upgrade to version "6.9.6" (fb28d1d)
- mongodb-memory-server: upgrade to version 7.0.0 (6a5e914)
- mongodb-memory-server: upgrade to version 7.3.4 (460bdcb)
- mongoose: allow range "~5.12.14 || ~5.13.0" (bcba9a2)
- mongoose: change from "^" to "~" until types are fixed (b651113)
- mongoose: upgrade to version "5.11.18" (775f44e)
- mongoose: upgrade to version "5.12.14" (943d581)
- mongoose: upgrade to version "5.12.4" (c3b7ce1)
- mongoose: upgrade to version "5.12.9" (3cc88ae)
- mongoose: upgrade to version 5.13.3 (c7414e6)
- prettier: upgrade to "2.3.0" (13058c1)
- prettier: upgrade to version "2.3.2" (5e73507)
- semantic-release: upgrade to version "17.4.2" (283afb1)
- semantic-release: upgrade to version "17.4.3" (ed4cbfc)
- semantic-release: upgrade to version "17.4.4" (090d05f)
- ts-jest: upgrad eto version 27.0.4 (e20fd0c)
- ts-jest: upgrade to version "26.5.4" (047051b)
- ts-jest: upgrade to version "27.0.3" (dc0452f)
- tslib: upgrade to version "2.2.0" (edd2581)
- tslib: upgrade to version "2.3.0" (7a1ba2d)
- typescript: upgrade to version "4.2.3" (26a17a3)
- typescript: upgrade to version "4.3.2" (ee66bc6)
- typescript: upgrade to version "4.3.4" (a2f4a5a)
- typescript: upgrade to version "4.3.5" (4e87c03)
- lockfile maintenance (3486ae3)
- update yarn.lock (fc17dc5)
Style
- eslintrc: disable rule "@typescript-eslint/no-non-null-assertion" (38a69d2)
- hooks: disable rule "@typescript-eslint/no-unused-vars" for file (bf61ecb)
- processProp: disable function "optionDeprecation" (90955ab)
- schema: add comment on why an line is necessary (d38aa5a)
- schema: remove "as any" cast (d9b2f24)
- typegoose: remove non-null assertion (0413613)
- types: fix lint (087091c)
- types: fix TODO (issue closed) (20bd486)
- types: remove unused comment (23d9e2a)
- types::IndexOptions: simplify "weights" definition (294cfff)
- utils: remove "as any" for "SchemaTypeOptions" & "OptionsConstructor" (7b5250a)
- utils: remove unused parameters from "mergeWith" (06df924)
- utils: update comments for mongoose 5.11.19 (74e1196)