Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.5.4 / 2019-04-25
> ==================
> * fix(document): avoid calling custom getters when saving [#7719](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7719)
> * fix(timestamps): handle child schema timestamps correctly when reusing child schemas [#7712](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7712)
> * fix(query): pass correct callback for _legacyFindAndModify [#7736](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7736) [Fonger](https://github.com/Fonger)
> * fix(model+query): allow setting `replacement` parameter for `findOneAndReplace()` [#7654](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7654)
> * fix(map): make `delete()` unset the key in the database [#7746](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7746) [Fonger](https://github.com/Fonger)
> * fix(array): use symbol for `_schema` property to avoid confusing deep equality checks [#7700](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7700)
> * fix(document): prevent `depopulate()` from removing fields with empty array [#7741](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7741) [#7740](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7740) [Fonger](https://github.com/Fonger)
> * fix: make `MongooseArray#includes` support ObjectIds [#7732](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7732) [#6354](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6354) [Fonger](https://github.com/Fonger)
> * fix(document): report correct validation error index when pushing onto doc array [#7744](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7744) [Fonger](https://github.com/Fonger)
>
> 5.5.3 / 2019-04-22
> ==================
> * fix: add findAndModify deprecation warning that references the useFindAndModify option [#7644](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7644)
> * fix(document): handle pushing a doc onto a discriminator that contains a doc array [#7704](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7704)
> * fix(update): run setters on array elements when doing $set [#7679](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7679)
> * fix: correct usage of arguments while buffering commands [#7718](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7718) [rzymek](https://github.com/rzymek)
> * fix(document): avoid error clearing modified subpaths if doc not defined [#7715](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7715) [bitflower](https://github.com/bitflower)
> * refactor(array): move `_parent` property behind a symbol [#7726](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7726) [#7700](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7700)
> * docs(model): list out all operations and options for `bulkWrite()` [#7055](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7055)
> * docs(aggregate): use `eachAsync()` instead of nonexistent `each()` [#7699](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7699)
> * docs(validation): add CastError validation example [#7514](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7514)
> * docs(query+model): list out all options and callback details for Model.updateX() and Query#updateX() [#7646](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7646)
>
> 5.5.2 / 2019-04-16
> ==================
> * fix(document): support setting nested path to non-POJO object [#7639](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7639)
> * perf(connection): remove leaked event handler in `Model.init()` so `deleteModel()` frees all memory [#7682](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7682)
> * fix(timestamps): handle custom statics that conflict with built-in functions (like mongoose-delete plugin) [#7698](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7698)
> * fix(populate): make `Document#populated()` work for populated subdocs [#7685](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7685)
> * fix(document): support `.set()` on document array underneath embedded discriminator path [#7656](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7656)
>
> 5.5.1 / 2019-04-11
> ==================
> * fix(document): correctly overwrite all properties when setting a single nested subdoc [#7660](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7660) [#7681](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7681)
> * fix(array): allow customization of array required validator [#7696](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7696) [freewil](https://github.com/freewil)
> * fix(discriminator): handle embedded discriminators when casting array defaults [#7687](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7687)
> * fix(collection): ensure collection functions return a promise even if disconnected [#7676](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7676)
> * fix(schematype): avoid indexing properties with `{ unique: false, index: false }` [#7620](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7620)
> * fix(aggregate): make `Aggregate#model()` with no arguments return the aggregation's model [#7608](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7608)
>
> 5.5.0 / 2019-04-08
> ==================
> * feat(model): support applying hooks to custom static functions [#5982](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5982)
> * feat(populate): support specifying a function as `match` [#7397](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7397)
> * perf(buffer): avoid calling `defineProperties()` in Buffer constructor [#7331](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7331)
> * feat(connection): add `plugin()` for connection-scoped plugins [#7378](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7378)
> * feat(model): add Model#deleteOne() and corresponding hooks [#7538](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7538)
> * feat(query): support hooks for `Query#distinct()` [#5938](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5938)
> ... (truncated)
Commits
- [`de66520`](https://github.com/Automattic/mongoose/commit/de6652086e41b729bcb3254edc758e397a0a8e65) chore: release 5.5.4
- [`67c3140`](https://github.com/Automattic/mongoose/commit/67c3140e7a12913407d8cbeee591c381a197a83b) Merge pull request [#7744](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7744) from Fonger/fix-7724
- [`476607d`](https://github.com/Automattic/mongoose/commit/476607dd3cf79b433f7b41ce4643eee520a7cb67) Merge pull request [#7746](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7746) from Fonger/fix-7743
- [`c377e65`](https://github.com/Automattic/mongoose/commit/c377e653dddbe0515596297216ca5ee01fa96fdf) fix(map): handle update for MongooseMap#delete
- [`b63128b`](https://github.com/Automattic/mongoose/commit/b63128b16b0b0c1bc151c72bf2b13de51bf19899) test(map): repro [#7743](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7743)
- [`6b4479c`](https://github.com/Automattic/mongoose/commit/6b4479cd58205c8f431335d5d4e78ca5e6a687a9) fix(documentarray): preserve the correct index for push()-ed subdoc
- [`679a8f6`](https://github.com/Automattic/mongoose/commit/679a8f692b866208c1ed9d737d34ce38f6330365) test(documentarray): repro [#7724](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7724)
- [`90703ba`](https://github.com/Automattic/mongoose/commit/90703ba9ba569e1f58060727f9aa6130c11ac30d) fix(array): use symbol for `_schema` property to avoid confusing deep equalit...
- [`df96b50`](https://github.com/Automattic/mongoose/commit/df96b50715402889d0dea55ca3ed533312464d0a) Merge branch 'master' of github.com:Automattic/mongoose
- [`d8c2618`](https://github.com/Automattic/mongoose/commit/d8c2618dc79e6f75b04fe3adde148e0ab77b9722) fix(document): avoid calling custom getters when saving
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.21...5.5.4)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.
You can always request more updates by clicking Bump now in your Dependabot dashboard.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps mongoose from 5.4.21 to 5.5.4.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.5.4 / 2019-04-25 > ================== > * fix(document): avoid calling custom getters when saving [#7719](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7719) > * fix(timestamps): handle child schema timestamps correctly when reusing child schemas [#7712](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7712) > * fix(query): pass correct callback for _legacyFindAndModify [#7736](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7736) [Fonger](https://github.com/Fonger) > * fix(model+query): allow setting `replacement` parameter for `findOneAndReplace()` [#7654](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7654) > * fix(map): make `delete()` unset the key in the database [#7746](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7746) [Fonger](https://github.com/Fonger) > * fix(array): use symbol for `_schema` property to avoid confusing deep equality checks [#7700](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7700) > * fix(document): prevent `depopulate()` from removing fields with empty array [#7741](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7741) [#7740](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7740) [Fonger](https://github.com/Fonger) > * fix: make `MongooseArray#includes` support ObjectIds [#7732](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7732) [#6354](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6354) [Fonger](https://github.com/Fonger) > * fix(document): report correct validation error index when pushing onto doc array [#7744](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7744) [Fonger](https://github.com/Fonger) > > 5.5.3 / 2019-04-22 > ================== > * fix: add findAndModify deprecation warning that references the useFindAndModify option [#7644](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7644) > * fix(document): handle pushing a doc onto a discriminator that contains a doc array [#7704](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7704) > * fix(update): run setters on array elements when doing $set [#7679](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7679) > * fix: correct usage of arguments while buffering commands [#7718](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7718) [rzymek](https://github.com/rzymek) > * fix(document): avoid error clearing modified subpaths if doc not defined [#7715](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7715) [bitflower](https://github.com/bitflower) > * refactor(array): move `_parent` property behind a symbol [#7726](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7726) [#7700](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7700) > * docs(model): list out all operations and options for `bulkWrite()` [#7055](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7055) > * docs(aggregate): use `eachAsync()` instead of nonexistent `each()` [#7699](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7699) > * docs(validation): add CastError validation example [#7514](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7514) > * docs(query+model): list out all options and callback details for Model.updateX() and Query#updateX() [#7646](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7646) > > 5.5.2 / 2019-04-16 > ================== > * fix(document): support setting nested path to non-POJO object [#7639](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7639) > * perf(connection): remove leaked event handler in `Model.init()` so `deleteModel()` frees all memory [#7682](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7682) > * fix(timestamps): handle custom statics that conflict with built-in functions (like mongoose-delete plugin) [#7698](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7698) > * fix(populate): make `Document#populated()` work for populated subdocs [#7685](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7685) > * fix(document): support `.set()` on document array underneath embedded discriminator path [#7656](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7656) > > 5.5.1 / 2019-04-11 > ================== > * fix(document): correctly overwrite all properties when setting a single nested subdoc [#7660](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7660) [#7681](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7681) > * fix(array): allow customization of array required validator [#7696](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7696) [freewil](https://github.com/freewil) > * fix(discriminator): handle embedded discriminators when casting array defaults [#7687](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7687) > * fix(collection): ensure collection functions return a promise even if disconnected [#7676](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7676) > * fix(schematype): avoid indexing properties with `{ unique: false, index: false }` [#7620](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7620) > * fix(aggregate): make `Aggregate#model()` with no arguments return the aggregation's model [#7608](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7608) > > 5.5.0 / 2019-04-08 > ================== > * feat(model): support applying hooks to custom static functions [#5982](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5982) > * feat(populate): support specifying a function as `match` [#7397](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7397) > * perf(buffer): avoid calling `defineProperties()` in Buffer constructor [#7331](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7331) > * feat(connection): add `plugin()` for connection-scoped plugins [#7378](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7378) > * feat(model): add Model#deleteOne() and corresponding hooks [#7538](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7538) > * feat(query): support hooks for `Query#distinct()` [#5938](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5938) > ... (truncated)Commits
- [`de66520`](https://github.com/Automattic/mongoose/commit/de6652086e41b729bcb3254edc758e397a0a8e65) chore: release 5.5.4 - [`67c3140`](https://github.com/Automattic/mongoose/commit/67c3140e7a12913407d8cbeee591c381a197a83b) Merge pull request [#7744](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7744) from Fonger/fix-7724 - [`476607d`](https://github.com/Automattic/mongoose/commit/476607dd3cf79b433f7b41ce4643eee520a7cb67) Merge pull request [#7746](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7746) from Fonger/fix-7743 - [`c377e65`](https://github.com/Automattic/mongoose/commit/c377e653dddbe0515596297216ca5ee01fa96fdf) fix(map): handle update for MongooseMap#delete - [`b63128b`](https://github.com/Automattic/mongoose/commit/b63128b16b0b0c1bc151c72bf2b13de51bf19899) test(map): repro [#7743](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7743) - [`6b4479c`](https://github.com/Automattic/mongoose/commit/6b4479cd58205c8f431335d5d4e78ca5e6a687a9) fix(documentarray): preserve the correct index for push()-ed subdoc - [`679a8f6`](https://github.com/Automattic/mongoose/commit/679a8f692b866208c1ed9d737d34ce38f6330365) test(documentarray): repro [#7724](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7724) - [`90703ba`](https://github.com/Automattic/mongoose/commit/90703ba9ba569e1f58060727f9aa6130c11ac30d) fix(array): use symbol for `_schema` property to avoid confusing deep equalit... - [`df96b50`](https://github.com/Automattic/mongoose/commit/df96b50715402889d0dea55ca3ed533312464d0a) Merge branch 'master' of github.com:Automattic/mongoose - [`d8c2618`](https://github.com/Automattic/mongoose/commit/d8c2618dc79e6f75b04fe3adde148e0ab77b9722) fix(document): avoid calling custom getters when saving - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.21...5.5.4)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.
You can always request more updates by clicking
Bump now
in your Dependabot dashboard.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.