Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.4.7 / 2019-01-26
> ==================
> * fix(populate): set `populated()` when using virtual populate [#7440](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7440)
> * fix(discriminator): defer applying plugins to embedded discriminators until model compilation so global plugins work [#7435](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7435)
> * fix(schema): report correct pathtype underneath map so setting dotted paths underneath maps works [#7448](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7448)
> * fix: get debug from options using the get helper [#7451](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7451) [#7446](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7446) [LucGranato](https://github.com/LucGranato)
> * fix: use correct variable name [#7443](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7443) [esben-semmle](https://github.com/esben-semmle)
> * docs: fix broken QueryCursor link [#7438](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7438) [shihabmridha](https://github.com/shihabmridha)
>
> 5.4.6 / 2019-01-22
> ==================
> * fix(utils): make minimize leave empty objects in arrays instead of setting the array element to undefined [#7322](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7322)
> * fix(document): support passing `{document, query}` options to Schema#pre(regex) and Schema#post(regex) [#7423](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7423)
> * docs: add migrating to 5 guide to docs [#7434](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7434)
> * docs(deprecations): add instructions for fixing `count()` deprecation [#7419](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7419)
> * docs(middleware): add description and example for aggregate hooks [#7402](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7402)
>
> 4.13.18 / 2019-01-21
> ====================
> * fix(model): handle setting populated path set via `Document#populate()` [#7302](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7302)
> * fix(cast): backport fix from [#7290](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7290) to 4.x
>
> 5.4.5 / 2019-01-18
> ==================
> * fix(populate): handle nested array `foreignField` with virtual populate [#7374](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7374)
> * fix(query): support not passing any arguments to `orFail()` [#7409](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7409)
> * docs(query): document what the resolved value for `deleteOne()`, `deleteMany()`, and `remove()` contains [#7324](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7324)
> * fix(array): allow opting out of converting non-arrays into arrays with `castNonArrays` option [#7371](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7371)
> * fix(query): ensure updateOne() doesnt unintentionally double call Schema#post(regexp) [#7418](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7418)
>
> 5.4.4 / 2019-01-14
> ==================
> * fix(query): run casting on arrayFilters option [#7079](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7079)
> * fix(document): support skipping timestamps on save() with `save({ timestamps: false })` [#7357](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7357)
> * fix(model): apply custom where on `Document#remove()` so we attach the shardKey [#7393](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7393)
> * docs(mongoose): document `mongoose.connections` [#7338](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7338)
Commits
- [`cc7dc31`](https://github.com/Automattic/mongoose/commit/cc7dc31794214a9da348b87dd2c85d3991d32488) chore: release 5.4.7
- [`1d87636`](https://github.com/Automattic/mongoose/commit/1d87636331e734f28a80d270455d216f7898d75c) fix(schema): report correct pathtype underneath map so setting dotted paths u...
- [`9bdbe28`](https://github.com/Automattic/mongoose/commit/9bdbe28875be493c1ba6f615d74ccde6eee9f3ba) test(schema): repro [#7448](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7448)
- [`4ab2120`](https://github.com/Automattic/mongoose/commit/4ab21206888a17763ec466a24ec88503ddac1e5b) fix(document): make `depopulate()` handle the fix for [#7440](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7440)
- [`3a248a7`](https://github.com/Automattic/mongoose/commit/3a248a7c6d2c159225641b56f271b38f6ce08011) chore: add dontpayfull.com as sponsor
- [`59227e8`](https://github.com/Automattic/mongoose/commit/59227e89089f4ef4b507126522af741eb6267318) chore: add topvet to sponsors list
- [`0b77ddd`](https://github.com/Automattic/mongoose/commit/0b77ddda8dcd7a97bd9849def93cee66f798afca) chore: add cpc to subdocs and migration
- [`5173a44`](https://github.com/Automattic/mongoose/commit/5173a4459834865b1830f1e8bb363126075e5751) style: fix lint
- [`fdfcaec`](https://github.com/Automattic/mongoose/commit/fdfcaec11f2c31988e41448fdc101fdc5e7da5b2) fix(populate): set `populated()` when using virtual populate
- [`bac12cb`](https://github.com/Automattic/mongoose/commit/bac12cb4f2ab500e3939887cf114ce03b8142636) test(populate): repro [#7440](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7440)
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.3...5.4.7)
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.
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 cancel merge` will cancel a previously requested merge
- `@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.3 to 5.4.7.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.4.7 / 2019-01-26 > ================== > * fix(populate): set `populated()` when using virtual populate [#7440](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7440) > * fix(discriminator): defer applying plugins to embedded discriminators until model compilation so global plugins work [#7435](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7435) > * fix(schema): report correct pathtype underneath map so setting dotted paths underneath maps works [#7448](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7448) > * fix: get debug from options using the get helper [#7451](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7451) [#7446](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7446) [LucGranato](https://github.com/LucGranato) > * fix: use correct variable name [#7443](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7443) [esben-semmle](https://github.com/esben-semmle) > * docs: fix broken QueryCursor link [#7438](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7438) [shihabmridha](https://github.com/shihabmridha) > > 5.4.6 / 2019-01-22 > ================== > * fix(utils): make minimize leave empty objects in arrays instead of setting the array element to undefined [#7322](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7322) > * fix(document): support passing `{document, query}` options to Schema#pre(regex) and Schema#post(regex) [#7423](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7423) > * docs: add migrating to 5 guide to docs [#7434](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7434) > * docs(deprecations): add instructions for fixing `count()` deprecation [#7419](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7419) > * docs(middleware): add description and example for aggregate hooks [#7402](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7402) > > 4.13.18 / 2019-01-21 > ==================== > * fix(model): handle setting populated path set via `Document#populate()` [#7302](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7302) > * fix(cast): backport fix from [#7290](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7290) to 4.x > > 5.4.5 / 2019-01-18 > ================== > * fix(populate): handle nested array `foreignField` with virtual populate [#7374](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7374) > * fix(query): support not passing any arguments to `orFail()` [#7409](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7409) > * docs(query): document what the resolved value for `deleteOne()`, `deleteMany()`, and `remove()` contains [#7324](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7324) > * fix(array): allow opting out of converting non-arrays into arrays with `castNonArrays` option [#7371](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7371) > * fix(query): ensure updateOne() doesnt unintentionally double call Schema#post(regexp) [#7418](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7418) > > 5.4.4 / 2019-01-14 > ================== > * fix(query): run casting on arrayFilters option [#7079](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7079) > * fix(document): support skipping timestamps on save() with `save({ timestamps: false })` [#7357](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7357) > * fix(model): apply custom where on `Document#remove()` so we attach the shardKey [#7393](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7393) > * docs(mongoose): document `mongoose.connections` [#7338](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7338)Commits
- [`cc7dc31`](https://github.com/Automattic/mongoose/commit/cc7dc31794214a9da348b87dd2c85d3991d32488) chore: release 5.4.7 - [`1d87636`](https://github.com/Automattic/mongoose/commit/1d87636331e734f28a80d270455d216f7898d75c) fix(schema): report correct pathtype underneath map so setting dotted paths u... - [`9bdbe28`](https://github.com/Automattic/mongoose/commit/9bdbe28875be493c1ba6f615d74ccde6eee9f3ba) test(schema): repro [#7448](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7448) - [`4ab2120`](https://github.com/Automattic/mongoose/commit/4ab21206888a17763ec466a24ec88503ddac1e5b) fix(document): make `depopulate()` handle the fix for [#7440](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7440) - [`3a248a7`](https://github.com/Automattic/mongoose/commit/3a248a7c6d2c159225641b56f271b38f6ce08011) chore: add dontpayfull.com as sponsor - [`59227e8`](https://github.com/Automattic/mongoose/commit/59227e89089f4ef4b507126522af741eb6267318) chore: add topvet to sponsors list - [`0b77ddd`](https://github.com/Automattic/mongoose/commit/0b77ddda8dcd7a97bd9849def93cee66f798afca) chore: add cpc to subdocs and migration - [`5173a44`](https://github.com/Automattic/mongoose/commit/5173a4459834865b1830f1e8bb363126075e5751) style: fix lint - [`fdfcaec`](https://github.com/Automattic/mongoose/commit/fdfcaec11f2c31988e41448fdc101fdc5e7da5b2) fix(populate): set `populated()` when using virtual populate - [`bac12cb`](https://github.com/Automattic/mongoose/commit/bac12cb4f2ab500e3939887cf114ce03b8142636) test(populate): repro [#7440](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7440) - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.3...5.4.7)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
.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 cancel merge` will cancel a previously requested merge - `@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.