Releases: typegoose/typegoose
Releases · typegoose/typegoose
v10.3.1
v11.0.0-beta.1
11.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)
Dependencies
Fixes
- update types and type-tests for mongoose 7.0 (b3df459)
Style
v10.3.0
10.3.0 (2023-02-28)
Features
- add a way to disable caching (2528601), closes typegoose/typegoose#789
- add option to locally disable caching (78ac3bc)
- types: change "DocumentType" to actually use a proper "_id" type (c63c5f1)
Fixes
- rename global "disableCaching" to "disableGlobalCaching" (5deb0eb)
Style
- types: update tsdoc example for "DocumentType" (33fa48e)
Dependencies
- @typescript-eslint/*: upgrade to 5.52.0 (97cc0b1)
- @typescript-eslint/*: upgrade to 5.54.0 (5c08a5c)
- commitlint: upgrade to 17.4.4 (c696ac2)
- eslint: upgrade to 8.34.0 (7c51f83)
- eslint: upgrade to 8.35.0 (0dce134)
- jest: upgrade to 29.4.3 (d7ab126)
- lint-staged: upgrade to 13.1.2 (6c4ce7e)
- prettier: upgrade to 2.8.4 (9fd5e78)
- typescript: upgrade to 4.9.5 (27a1838)
v10.2.0
10.2.0 (2023-02-23)
Dependencies
- @typescript-eslint/*: upgrade to 5.53.0 (d1fda7b)
- commitlint: upgrade to 17.4.4 (1399451)
- eslint: upgrade to 8.34.0 (0585e4c)
- jest: upgrade to 29.4.3 (c369561)
- lint-staged: upgrade to 13.1.2 (e1bd015)
- mongodb-memory-server: upgrade to 8.11.5 (502a3c8)
- mongoose: upgrade to 6.10.0 (33558f7)
- prettier: upgrade to 2.8.4 (382d82c)
- typescript: upgrade to 4.9.5 (92b6779)
v10.2.0-beta.3
10.2.0-beta.3 (2023-02-19)
Features
- types: change "DocumentType" to actually use a proper "_id" type (c63c5f1)
Dependencies
- @typescript-eslint/*: upgrade to 5.52.0 (97cc0b1)
- commitlint: upgrade to 17.4.4 (c696ac2)
- eslint: upgrade to 8.34.0 (7c51f83)
- jest: upgrade to 29.4.3 (d7ab126)
- lint-staged: upgrade to 13.1.2 (6c4ce7e)
- prettier: upgrade to 2.8.4 (9fd5e78)
- typescript: upgrade to 4.9.5 (27a1838)
Style
- types: update tsdoc example for "DocumentType" (33fa48e)
v10.2.0-beta.2
10.2.0-beta.2 (2023-02-09)
Features
- add option to locally disable caching (78ac3bc)
Fixes
- rename global "disableCaching" to "disableGlobalCaching" (5deb0eb)
v10.2.0-beta.1
10.2.0-beta.1 (2023-02-07)
Features
- add a way to disable caching (2528601), closes typegoose/typegoose#789
v10.1.1
10.1.1 (2023-02-05)
Fixes
- typegoose::getDiscriminatorModelForClass: add warning when using different "existing*" options (0599ef2), closes typegoose/typegoose#789
v10.1.0
10.1.0 (2023-01-29)
Dependencies
- @semantic-release/npm: upgrade to 9.0.2 (44633e4)
- @types/jest: upgrade to 29.4.0 (424ba45)
- @typescript-eslint/*: upgrade to 5.49.0 (108630d)
- commitlint: upgrade to 17.4.2 (22b0881)
- eslint-config-prettier: upgrade to 8.6.0 (144aaa6)
- eslint: upgrade to 8.32.0 (eb047d1)
- husky: upgrade to 8.0.3 (c4fe8a2)
- jest: upgrade to 29.4.1 (b97b56f)
- mongodb-memory-server: upgrade to 8.11.4 (24e6ca3)
- mongoose: upgrade to 6.9.0 (14239a6)
- prettier: upgrade to 2.8.3 (f691573)
- ts-jest: upgrade to 29.0.5 (0b45b90)
- tslib: upgrade to 2.5.0 (b463238)
v10.0.0
10.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), closes typegoose/typegoose#696
- change "overwriteOptions" to be just for naming options (7713b0e), closes typegoose/typegoose#721
- refactor to remove "data.schemas" (3fdeab1), closes typegoose/typegoose#760
- remove deprecated references to "WhatIsIt" (b0cd080)
- remove option "runSyncIndexes" (7532411)
- rename "index.ts" to "indexes.ts" (59b3da7)
- support defining nested-discriminators on the base class (3a26c10), closes typegoose/typegoose#758
- tsconfig.json: update "target" to match minimal NodeJS capabilities (896aef2), closes typegoose/typegoose#735
- tsconfig.json: update "target" to match minimal NodeJS capabilities (59826c1), closes typegoose/typegoose#735
- typegoose::buildSchema: reduce amout of parameters needed (75a067c), closes typegoose/typegoose#721
- types::Ref: update to transparently use "DocumentType" (4b3520e), closes typegoose/typegoose#730 typegoose/typegoose#772
- utils::getClass: support getting name from "modelName" if available (5447184)
- utils: remove function "getClassForDocument" (da3a878)
- utils: remove function "initProperty" (0993605)
Refactor
- hooks: dont define empty hooks options if not provided (89b9416)
- hooks: use mongoose's array looping over methods over typegoose's (ca2a03a), closes typegoose/typegoose#587
- utils::initProperty: simplify paths (37ca83e)
- update minimal NodeJS version to 14.0.0 (fcffbd8)
Fixes
- hooks: update types for new "errorHandler" option (f52ea0d)
- plugin: actually print "anonymous" if function name is empty (ae124bc)
- typegoose: lessen the amount of "merge*" calls (e30f4ae)
Style
- biguser.test: fix type error for "toMatchSnapshot" missing property "_id" (b7e86eb)
- hooks: update types to more closely match mongoose's (62e1f2b), closes typegoose/typegoose#587
- schema: remove test todo (8a3a296)
- schema: update comment explaining on why "as any" is used for hooks (3e0386b)
- typegoose: rename some internal variables (fc04892)
- types::DecoratedPropertyMetadata: change "options" to have proper type instead of "any" (845c5e0)
- types::EmptyVoidFn: remove unused type (2e79801)
- types::IndexOptions: remove unused generic (5ed9f25)
- types: fix typescript complaining about a tsdoc link (90fca45)
- types: remove deprecated temporary options from "ICustomOptions" (932cce5)
- types: remove type "IObjectWithTypegooseName" (67e8350)
- utils::getClass: update types to better reflect what it is doing (a9a23f6)
- utils::getClass: update types to use less duplicate types (5435d88)
- utils: remove unused imports (4b79a49)
Dependencies
- @semantic-release/changelog: upgrade to 6.0.2 (91ef4b4)
- @semantic-release/github: upgrade to 8.0.7 (ece0c7e)
- @types/jest: upgrade to 29.2.4 (296960a)
- @types/lodash: upgrade to 4.14.191 (99df11d)
- @types/node: upgrade to 14.14.31 (9f150d4)
- @typescript-eslint/*: upgrade to 5.46.0 (75576a0)
- commitlint: upgrade to 17.3.0 (ee9fc80)
- eslint: upgrade to 8.29.0 (8cb5c46)
- husky: upgrade to 8.0.2 (4e1c894)
- jest: upgrade to 29.0.3 (4252897)
- lint-staged: upgrade to 13.1.0 (b904e07)
- mongodb-memory-server: upgrade to 8.10.2 (12b257d)
- mongoose: upgrade to 6.8.0 (8e8958f)
- prettier: upgrade to 2.8.1 (a8a7513)
- semantic-release: upgrade to 19.0.5 (3d9175e)
- typescript: upgrade to 4.9.4 (1698424)