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
2122

6.0.1

Diff

Changelog

Source

6.0.1

  • Add TSDoc for refType on PropOptions
  • refPath now uses the right type (new uses refType instead of itemsType)
  • Fix decorator options (rawOptions) mutating thanks to typegoose#60
  • Pre hook's function's next is now not marked as "optional" anymore, which caused next() to be EmptyVoidFn | undefined
hasezoey
published 6.0.0 •

Changelog

Source

6.0.0

To Migrate, please look at the migration guide

  • Project got moved to the new repo (typegoose/typegoose) and new package @typegoose/typegoose
  • rename InstanceType<T> to DocumentType<T> [szokodiakos#366]
  • adding a migration guide from ~5.9 to 6.0.0
  • adding missing "get" and "set" property options [szokodiakos#260]
  • adding @modelOptions and getModelForClass and setModelForClass will now override it
  • setModelForClass is now deprecated [typegoose#6, szokodiakos#186]
  • setting the Typegoose Class to abstract
  • deprecating the Typegoose Class because of making the functions outsourced [szokodiakos#356]
  • hook methods can now be arrays of methods [szokodiakos#313]
  • completely removed parallel from pre hook
  • refactored the types of hooks
  • adding support for any value in prop for plugins [szokodiakos#374]
  • schema.loadClass is now used instead of @instanceMethod and @staticMethod [szokodiakos#48, szokodiakos#346, szokodiakos#182]
  • method decorators are now deprecated
  • schema generation got refactored (/reconstructed) multiple times
  • adding count to VirtualOptions
  • Updated Dependencies (^mongoose@5.7.1)
  • adding discriminator support [typegoose#11]
  • adding default class for (schemaOptions) timestamps
  • adding more docs to README & as tsdoc
  • some changes that are probably forgot
  • szokodiakos#363 got reverted in favor of mongoose@5.6.9
  • fixes Custom Options not passed through to mongoose & plugins when using ref [szokodiakos#379]
  • Adding "immutable" prop option [szokodiakos#320]
  • adding Types to Ref (to allow not just ObjectID) [szokodiakos#369]
  • szokodiakos#54 seems to work now in 6.0.0 (added test in 6.0.0-21)
  • because of the changes in 6.0.0 #235 got fixed
  • Adding "InvalidTypeError" for the case that "undefined" or "null" is used as a type (or something other happens)
  • Change Error text of "InvalidPropError"
  • adding some "soft-errors" and traces with "loglevel"
  • exposing settings for "loglevel"
  • fixes Decorator Execution Order [typegoose#23, typegoose#24]
  • add support for custom discriminator properties
  • add error if using a self-containing class
  • add support for using multiple classes with the same name (automaticName, customName, collection)
  • [IC] "NoParamConstructor" got renamed into "AnyParamConstructor" it now accepts any arguments
  • [IC] Remake data.ts to use Maps [typegoose#3]
  • [IC] adding many tests and bumping coverage
  • [IC] moving many Types to types.ts
  • [IC] removing unneeded dependencies
  • [IC] changed how travis runs jobs multiple times
  • [IC] many tslint rule changes
  • [IC] getting the name from "class.name" got outsourced into "utils.getName" (for future use)
  • [IC] use switches instead of many if's
  • [IC] adding some tests
hasezoey
published 5.9.2 •

Changelog

Source

5.9.2

  • Change README examples & badges to the new repo

  • use new travis.yml (from version 6.0.0)

  • use new style of package.json (from version 6.0.0)

  • Tags got deleted and added, please remove all local tags and re-download them

This Release did not change anything in the code, it is just there to update the NPM front

1
2122
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