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

mongoose-tsgen

Package Overview
Dependencies
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-tsgen - npm Package Versions

1
15

8.3.0

Diff

Changelog

Source

8.3.0 / 2021-05-21

  • Fix plural naming
francescov1
published 8.2.3 •

francescov1
published 8.2.2 •

francescov1
published 8.2.1 •

francescov1
published 8.2.0 •

Changelog

Source

8.2.0 / 2021-05-19

  • Added mongoose.Query.populate overload to narrow query typings & --no-populate-overload flag to disable the behaviour
  • Added new population helper types and type guards PopulatedDocument, IsPopulated
  • Update to Mongoose 5.12.10
francescov1
published 8.1.1 •

francescov1
published 8.1.0 •

Changelog

Source

8.1.0 / 2021-05-17

  • Added --no-mongoose flag to generate types without mongoose references. This option removes document types and replaces ObjectId with string #7
francescov1
published 8.0.2 •

francescov1
published 8.0.1 •

francescov1
published 8.0.0 •

Changelog

Source

8.0.0 / 2021-04-29

  • Removed need to typecast method, static and query objects (this was required to support function types)
  • Query types can now be passed as a generic to the Mongoose model constructor. This greatly simplifies query typing
  • Update to Mongoose 5.12.6
  • remove CLI options:
    • --js (generator depends too much on TS compiler libraries now, so using this with JS has very limited functionality. Convert type files to TS before using mongoose-tsgen moving forward)
    • --augment (added much unnecessary complexity, functionality can be achieved using a simple user-created file)
    • --no-func-types (this was mainly used to avoid using TS compiler API when running the generator. These days the generator depends on the TS compiler API for all basic functions so this option has no use)
  • Use new Mongoose type updates & fixes (5.11.13 and on)
  • Added --debug flag to print useful debug info
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