- Escapes regular expression characters when used with case-insensitive option.
- Updates collection.count to collection.countDocuments for mongoose deprecation.
- Restores strict mode for backwards-compat with Node 4+.
- Corrects handling of
_id
column index when used with Mongoose v5. - Removes tests/support for custom
_id
column unique indexes.
- Adds support for
uniqueCaseInsensitive
on index options.
- Updated validator to use a promise, as async validators are deprecated as of Mongoose 4.9.
- Added support for
$set
usage infindOneAndUpdate
.
- Added extra option
type
, resolved #17.
- Fixed isNew type-check because "false" is acceptable.
- Added workaround for
isNew
and_id
missing fromfind*AndUpdate
queries.