diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b67ad2..0a9cfa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.3 + +- Escapes regular expression characters when used with case-insensitive option. + ## 2.0.2 - Updates collection.count to collection.countDocuments for mongoose deprecation. diff --git a/package.json b/package.json index 79c1d1b..27a35d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mongoose-unique-validator", - "version": "2.0.2", + "version": "2.0.3", "description": "mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.", "main": "index.js", "scripts": {