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

7.3.3

Diff

Changelog

Source

7.3.3

  • Don't assume that the plugin function has an name [typegoose#353]
  • Only check mongoose & nodejs version if process is defined
  • [IC] replace all util.format with template strings [typegoose#348]
  • [IC] add wrapper & polyfill for util.deprecate[typegoose#344]
hasezoey
published 7.3.2 •

Changelog

Source

7.3.2

  • Update @prop tsdoc to show it supports Maps and Arrays
  • Update dead documentation links
  • Update enum-error to better reflect what the error is about
hasezoey
published 7.3.1 •

Changelog

Source

7.3.1

  • Update Dependencies
    • typescript to 3.9.7
  • Add hook-typings for countDocuments, estimatedDocumentCount, deleteMany, findOneAndDelete, deleteOne
hasezoey
published 7.3.0 •

Changelog

Source

7.3.0

  • Update Dependencies
    • mongoose to 5.9.22
    • lodash to 4.17.19
    • @types/mongoose to 5.7.30
    • @types/lodash to 4.14.157
    • @types/semver to 7.3.1
    • typescript to 3.9.6
  • TimeStamps's (Default Class) properties are not marked as Readonly anymore
  • All Typeguards now accept undefined as the first parameter too (if an type was OR with undefined, the function would give an type-error)
  • Add option discriminators for embedded Discriminators [typegoose#248]
  • Set correct Decorator Return type (ClassDecorator & PropertyDecorator)
  • Change warning message for warnMixed
  • If an SchemaType doesn't extend SchemaTypeOptions, the options are now defaulted to the outer-layer
  • innerOptions and outerOptions can now be used for Maps too
  • Custom Validators now support message being an function
  • Automatically convert mongoose.Types.Buffer to mongoose.Schema.Types.Buffer
  • Fix Types when extending default class Base with other than ObjectId [typegoose#316]
  • [IC] mapOptions now always errors if the given type doesn't extend mongoose.SchemaTypeOptions
  • [IC] Moved function _buildPropMetadata to its own file (processProp) and renamed it to processProp [typegoose#286]
  • [IC] Moved pre-processing in function prop into processProp [typegoose#286]
  • [IC] Removed error NoMetadataError
  • [IC] Removed check that Type needs to be defined in prop / processProp
hasezoey
published 7.3.0-1 •

hasezoey
published 7.3.0-0 •

hasezoey
published 7.2.0 •

Changelog

Source

7.2.0

  • Update Dependencies
    • mongoose to 5.9.17
    • @types/mongoose to 5.7.21
    • typescript to 3.9.3
  • Remove type RefSchemaType
  • Add mongoose.Schema.Types.* that are suitable for ref to RefType
  • Runtime-Deprecate @mapProp(TDEP0002) & @arrayProp(TDEP0001)
  • Runtime-Deprecate type-alias options, items & of & refType(TDEP0003)
  • Handle mongoose.Types.Array<Ref<>> for Typeguards (isDocumentArray & isRefTypeArray) [typegoose#278]
hasezoey
published 7.1.3 •

Changelog

Source

7.1.3

  • Added an Error if option ref is set but is undefined/null
  • Add mongoose.Types.DocumentArray and mongoose.Schema.Types.DocumentArray to @prop array-detection
  • Change if (!kind) to if (isNullOrUndefined(kind))
hasezoey
published 7.1.2 •

Changelog

Source

7.1.2

  • @prop options types now work again
  • BasePropOptions.type is now unknown instead of any
  • All aliases of BasePropOptions.type now inherit the types from there
  • Fix bug where autopopulate (or any other plugin) wouldn't pick up on virtuals [typegoose#274]
  • [IC] refType is now moved to prop
hasezoey
published 7.1.1 •

Changelog

Source

7.1.1

  • Remove empty interface PropOptions
  • Remove type PropOptionsWithValidate
  • Rename type PropOptionsWithNumberValidate to PropOptionsForNumber
  • Rename type PropOptionsWithStringValidate to PropOptionsForString
  • Add options options & match for VirtualOptions
  • Add option enum for ValidateNumberOptions
  • arrayProp & mapProp are now just an alias for prop
  • Set TSDoc option @deprecated for arrayProp and mapProp
  • Detect mongoose.Types.Array & mongoose.Schema.Types.Array as Array in @prop
  • Detect mongoose.Types.Map & mongoose.Schema.Types.Map as Map in @prop
  • Add Overloads to @prop
  • PascalCased decorators now have the TSDoc of the original function
  • Default class Base's __v & __t are now optional (with ?)
  • Fix mentioned bug from typegoose#181, to allow mongoose.Schema.Types.String & mongoose.Schema.Types.Number as valid enum types
  • Options of & items are now mapped to type and get called when buildSchema is called
  • [IC] DeDuplicate code in prop.ts
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