Skip to content

Releases: leepowelldev/mongoose-validator

v2.0.0

04 Feb 10:01
Compare
Choose a tag to compare

Major release as validator dependency has been updated from 7.0.0 to 9.4.0 and may have breaking changes

v1.2.0

15 Jun 06:40
Compare
Choose a tag to compare
Updates

v1.1.1

09 Jun 14:03
Compare
Choose a tag to compare
Updates
  • Better documentation around the options.type property
  • Updated test and regex to use {ARGS[0]} rather than {args.0}, as I think this keeps it more consistent with Mongooses built-in message template variables

v1.1.0

09 Jun 13:39
Compare
Choose a tag to compare

New

  • Now supports the type property being passed into the validator
  • Custom error messages are now interpolated with validator arguments

Updates

  • Default errors list has been updated to reflect additional methods added to validator.js
  • Additional test for testing message interpolation

Other

  • Small bit of refactoring