- Fixes conflict when schemas define paths named
parent
.
- Updates to mongoose 8
- Updates to mongoose 7
- Fixes "expected _id to be unique" errors.
- Fixes error when
model
is the name of a field.
- Re-versions and deprecates v2.0.4 due to major mongoose version bump.
- Updates Mongoose dependency to 6.x.
- 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.