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

mongoose-beautiful-unique-validation

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-beautiful-unique-validation - npm Package Versions

23

7.1.1

Diff

Changelog

Source

v7.1.1

Fixed bugs

  • Security fix: mitigate potential ReDoS attack due to non-linear regular expression.
  • Fix path value appearing as undefined in nested schema.
  • Fix custom messages not taken in account in nested schema.
matteodelabre
published 7.1.0 •

Changelog

Source

v7.1.0

New features

  • Add support for Mongoose 5 (#46, #47).
matteodelabre
published 7.0.0 •

Changelog

Source

v7.0.0

Breaking changes

  • Drop support for Mongoose ≤ 4.11.3 due to #38.
  • Change sub-errors’ kind from Duplicate value to unique to better fit Mongoose’s conventions.
  • Change the default validation message to better fit Mongoose’s conventions.

New features

  • Add a plugin option to override the global default unique validation message.
matteodelabre
published 6.0.0 •

Changelog

Source

v6.0.0

Breaking changes

  • Drop support for Node.js 0.10 and 0.12.

New features

  • #findOneAndUpdate now provides failing paths info.

Fixed bugs

  • Beautifies errors triggered upon a call to Model.update() as advertised.
matteodelabre
published 5.1.1 •

Changelog

Source

v5.1.1

Fixed bugs

  • Fixed a bug where all fields of a Schema are reported as duplicated even when only some of them are (bug #29).
matteodelabre
published 5.1.0 •

Changelog

Source

v5.1.0

New features

  • Also works with #findOneAndUpdate (but does not provide failing paths info).
matteodelabre
published 5.0.1 •

Changelog

Source

v5.0.1

Fixed bugs

  • Remove unwanted logging statement.
  • Throw an error if this module is used with an outdated Mongoose version.
matteodelabre
published 5.0.0 •

Changelog

Source

v5.0.0

Breaking changes

  • Beautifies the errors using an error middleware instead of overriding the #save() method. Only supports Mongoose 4.5.0 and onwards.

  • Because #save() is not overriden anymore, the beautifyUnique option is now ignored. To remove the beautifying behavior, remove the plugin.

New features

  • Also works on all other ways of saving models, not only #save() (including Model.create()).
matteodelabre
published 4.0.0 •

Changelog

Source

v4.0.0

Breaking changes

  • Beautifies any kind of Mongoose field instead of passing along the original error when working with ObjectIds, Buffers and Dates.

  • The trySave() method, deprecated in v3.0.0, is removed.

matteodelabre
published 3.0.2 •

Changelog

Source

v3.0.2

Fixed bugs

  • Abandon parsing duplicated values using regexes and use JSON.parse for a more robust result. This allows duplicated values that contain spaces.
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