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

mongoose-lean-defaults

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-lean-defaults - npm Package Versions

2

2.2.1

Diff

douglasgabr
published 2.2.0 •

Changelog

Source

2.2.0 / 2022-06-17

  • Added: Option to provide global defaults when attaching plugin to schema #28
douglasgabr
published 2.1.2 •

Changelog

Source

2.1.2 / 2022-06-17

  • Fixed: Support mongoose 5 #27
douglasgabr
published 2.1.1 •

Changelog

Source

2.1.1 / 2022-06-03

  • Fixed: Make it work reliably with other lean plugins
  • Refactored: Code refactored so it is simpler to maintain
douglasgabr
published 2.1.0 •

Changelog

Source

2.1.0 / 2022-02-08

  • Fixed: Fields using Map type receive an additional "$*" key in the result #24
  • Fixed: Recursive schema on array field causes stack overflow #25
  • Added: Attach plugin to findOneAndRemove and findOneAndDelete
  • Added: Support mongoose v6 (>=5 in peerDependencies)
douglasgabr
published 2.0.1 •

Changelog

Source

2.0.1 / 2021-06-09

  • Fixed: should work with typed Schema #20
douglasgabr
published 2.0.0 •

Changelog

Source

2.0.0 / 2021-05-12

  • Fixed: should attach subdocument defaults when using projection #18 #16
  • Chore: migrate codebase to typescript
  • BREAKING CHANGE: if using require('mongoose-lean-defaults'), you should update it to require('mongoose-lean-defaults').default (should not be a problem if using import)
douglasgabr
published 1.1.1 •

douglasgabr
published 1.1.0 •

douglasgabr
published 1.0.1 •

Changelog

Source

1.0.1 / 2020-12-18

  • Chore: add .npmignore to not bundle unnecessary files
2
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