Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@typegoose/typegoose

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typegoose/typegoose - npm Package Versions

1
23

10.2.0-beta.3

Diff

Changelog

Source

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)
hasezoey
published 10.2.0-beta.2 •

Changelog

Source

10.2.0-beta.2 (2023-02-09)

Features

  • add option to locally disable caching (78ac3bc)

Fixes

  • rename global "disableCaching" to "disableGlobalCaching" (5deb0eb)
hasezoey
published 10.2.0-beta.1 •

Changelog

Source

10.2.0-beta.1 (2023-02-07)

Features

hasezoey
published 10.1.1 •

Changelog

Source

10.1.1 (2023-02-05)

Fixes

hasezoey
published 10.1.0 •

Changelog

Source

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)
hasezoey
published 10.0.0 •

Changelog

Source

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

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.190 (57233c9)
  • @types/lodash: upgrade to 4.14.191 (99df11d)
  • @types/node: upgrade to 14.14.31 (9f150d4)
  • @typescript-eslint/*: upgrade to 5.44.0 (70ab1bb)
  • @typescript-eslint/*: upgrade to 5.45.0 (58f19ca)
  • @typescript-eslint/*: upgrade to 5.46.0 (75576a0)
  • commitlint: upgrade to 17.3.0 (ee9fc80)
  • eslint: upgrade to 8.28.0 (ddcd191)
  • 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.0.4 (31f082c)
  • lint-staged: upgrade to 13.1.0 (b904e07)
  • mongodb-memory-server: upgrade to 8.10.1 (287dda8)
  • mongodb-memory-server: upgrade to 8.10.2 (12b257d)
  • mongoose: upgrade to 6.7.3 (f3870ff)
  • mongoose: upgrade to 6.7.5 (f68226e)
  • mongoose: upgrade to 6.8.0 (8e8958f)
  • prettier: upgrade to 2.8.0 (9328043)
  • prettier: upgrade to 2.8.1 (a8a7513)
  • semantic-release: upgrade to 19.0.5 (3d9175e)
  • typescript: upgrade to 4.9.3 (cfca616)
  • typescript: upgrade to 4.9.4 (1698424)
hasezoey
published 10.0.0-beta.3 •

Changelog

Source

10.0.0-beta.3 (2022-12-12)

Style

Dependencies

  • @types/jest: upgrade to 29.2.4 (296960a)
  • @typescript-eslint/*: upgrade to 5.46.0 (75576a0)
  • eslint: upgrade to 8.29.0 (8cb5c46)
  • lint-staged: upgrade to 13.1.0 (b904e07)
  • mongodb-memory-server: upgrade to 8.10.2 (12b257d)
  • prettier: upgrade to 2.8.1 (a8a7513)
  • typescript: upgrade to 4.9.4 (1698424)
hasezoey
published 10.0.0-beta.2 •

Changelog

Source

10.0.0-beta.2 (2022-12-06)

Dependencies

  • mongoose: upgrade to 6.8.0 (8e8958f)

Fixes

  • hooks: update types for new "errorHandler" option (f52ea0d)
hasezoey
published 10.0.0-beta.1 •

Changelog

Source

10.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

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

  • 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: 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/lodash: upgrade to 4.14.190 (57233c9)
  • @types/lodash: upgrade to 4.14.191 (99df11d)
  • @types/node: upgrade to 14.14.31 (9f150d4)
  • @typescript-eslint/*: upgrade to 5.44.0 (70ab1bb)
  • @typescript-eslint/*: upgrade to 5.45.0 (58f19ca)
  • commitlint: upgrade to 17.3.0 (ee9fc80)
  • eslint: upgrade to 8.28.0 (ddcd191)
  • husky: upgrade to 8.0.2 (4e1c894)
  • jest: upgrade to 29.0.3 (4252897)
  • lint-staged: upgrade to 13.0.4 (31f082c)
  • mongodb-memory-server: upgrade to 8.10.1 (287dda8)
  • mongoose: upgrade to 6.7.3 (f3870ff)
  • mongoose: upgrade to 6.7.5 (f68226e)
  • prettier: upgrade to 2.8.0 (9328043)
  • semantic-release: upgrade to 19.0.5 (3d9175e)
  • typescript: upgrade to 4.9.3 (cfca616)
hasezoey
published 9.13.2 •

Changelog

Source

9.13.2 (2022-12-01)

Fixes

  • deprecate option "runSyncIndexes" (40f6d30)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc