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

1

1.0.0

Diff

Changelog

Source

1.0.0 / 2020-12-18

  • Refactor: use Array#forEach() instead of Array#map() to improve memory usage #14 Hafez
  • Fixed: handle $slice and $elemMatch projections #12 Valeri Karpov
  • Chore: bump version to 1.0.0, since there's no reason to keep it at 0.x, so future changes can be better represented by semver
douglasgabr
published 0.4.1 •

Changelog

Source

0.4.1 / 2020-03-19

  • Fixed: return defaults of fields which are nested inside projected object #8 Vladimir Enchev
douglasgabr
published 0.4.0 •

Changelog

Source

0.4.0 / 2020-02-21

  • Added: respect projection when attaching defaults
douglasgabr
published 0.3.2 •

Changelog

Source

0.3.2 / 2020-01-02

  • Fixed: old null values were breaking nested defaults
douglasgabr
published 0.3.1 •

Changelog

Source

0.3.1 / 2019-09-28

  • Added: support null value in SchemaType.default()
douglasgabr
published 0.3.0 •

Changelog

Source

0.3.0 / 2019-09-28

  • Added: support SchemaType.default() (Fixes: #3)
  • Added: support nested objects without default values:
    new Schema({
      obj: {
        prop: String,
      },
    });
    
douglasgabr
published 0.2.0 •

Changelog

Source

0.2.0 / 2019-07-25

douglasgabr
published 0.1.1 •

Changelog

Source

0.1.1 / 2019-07-19

  • Fixed: set default values in nested objects/schemas
douglasgabr
published 0.1.0 •

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