Socket
Socket
Sign inDemoInstall

@typegoose/typegoose

Package Overview
Dependencies
Maintainers
1
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typegoose/typegoose - npm Package Versions

1
2022

6.1.0

Diff

Changelog

Source

6.1.0

  • Update Dependencies
    • Upgrade mongoose from 5.7.1 to 5.7.7
    • [IC] Upgrade Typescript from 3.6.x to 3.7.2
  • Completely remove @staticMethod & @instanceMethod, because they were completely obsolete
  • README now has no documentation anymore
  • @prop({ validate }) now accepts { validator, message } as an array
  • Add function deleteModel & deleteModelWithClass
  • allow Prop Option "type" to overwrite the inferred type look here for an example
  • integrate "Array Validators & Transform" tests typegoose#29
  • adding global options, with setGlobalOptions
  • add modelOption runSyncIndexes
  • add modelOption allowMixed
  • add text to PropOptions
  • deprecate ArrayPropOptions's itemsRef, itemsRefPath & itemsRefType
  • DocumentType will now overwrite the type of _id if the class is extending Base (in TypeScript there is currently no other way)
  • add tslib as dependency to minimize generated code
  • fixing typo in (deprecated) setModelForClass
  • Remake how Enums are handled, use setGlobalOptions({ globalOptions: { useNewEnum: true } }) (to not break existing databases made with the old handling)
  • add function getModelWithString
  • [IC] tsconfig: add option "strictBindCallApply"
  • [IC] tsconfig: add option "strictFunctionTypes"
  • [IC] combine initAsObject and initAsArray into initProperty
  • [IC] Use internal "isNullOrUndefined", needed because all "util.is*" functions got deprecated in node 4.0.0
  • [IC] Replace all "isArray" with "Array.isArray", needed because all "util.is*" functions got deprecated in node 4.0.0
  • [IC] adding many sanity isNullOrUndefined checks
  • [IC] Re-done how the handling of Mixed is done
  • [IC] Re-done how IModelOptions are merged (thanks to lodash cloneDeepWith & mergeWith)
  • [IC] de-duplicate "ref" & "refPath" code
  • [IC] added test for "Custom Types"
  • [IC] typegoose now makes use of "importHelpers"(tsconfig) to save some space
  • [IC] Refactor how "isPrimitive" works, some types like Buffer & Decimal now work
  • [IC] Added more debug logs to prop.ts
  • [IC] Move Decorator Cache to the class itself
  • [IC] "baseProp" now uses one single arguments, with all the options
  • [IC] "createUniqueID" now returns a boolean instead of the "initname"
hasezoey
published 6.1.0-13 •

hasezoey
published 6.1.0-12 •

hasezoey
published 6.1.0-11 •

hasezoey
published 6.1.0-10 •

hasezoey
published 6.1.0-9 •

hasezoey
published 6.1.0-8 •

hasezoey
published 6.1.0-7 •

hasezoey
published 6.1.0-6 •

hasezoey
published 6.1.0-5 •

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