Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.4.10 / 2019-02-05
> ===================
> * docs: add search bar and /search page [#6706](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6706)
> * fix: support dotted aliases [#7478](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7478) [chrischen](https://github.com/chrischen)
> * fix(document): copy atomics when setting document array to an existing document array [#7472](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7472)
> * chore: upgrade to mongodb driver 3.1.13 [#7488](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7488)
> * docs: remove confusing references to executing a query "immediately" [#7461](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7461)
> * docs(guides+schematypes): link to custom schematypes docs [#7407](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7407)
>
> 5.4.9 / 2019-02-01
> ==================
> * fix(document): make `remove()`, `updateOne()`, and `update()` use the document's associated session [#7455](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7455)
> * fix(document): support passing args to hooked custom methods [#7456](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7456)
> * fix(document): avoid double calling single nested getters on `toObject()` [#7442](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7442)
> * fix(discriminator): handle global plugins modifying top-level discriminator options with applyPluginsToDiscriminators: true [#7458](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7458)
> * docs(documents): improve explanation of documents and use more modern syntax [#7463](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7463)
> * docs(middleware+api): fix a couple typos in examples [#7474](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7474) [arniu](https://github.com/arniu)
>
> 5.4.8 / 2019-01-30
> ==================
> * fix(query): fix unhandled error when casting object in array filters [#7431](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7431)
> * fix(query): cast query $elemMatch to discriminator schema if discriminator key set [#7449](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7449)
> * docs: add table of contents to all guides [#7430](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7430)
>
> 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)
> ... (truncated)
Commits
- [`87f691e`](https://github.com/Automattic/mongoose/commit/87f691e6916919531b8383c94900bd847d17975b) chore: release 5.4.10
- [`09dd3cf`](https://github.com/Automattic/mongoose/commit/09dd3cf4fb00cfac4fbbe92da0d64eeedde61de7) docs(jest): improve docs about fake timers
- [`e778e0b`](https://github.com/Automattic/mongoose/commit/e778e0bcf42acee5fac22d6eb7149bf8c83c876c) chore: upgrade to mongodb driver 3.1.13
- [`42aa401`](https://github.com/Automattic/mongoose/commit/42aa4014aa5a0147de6f6a44530dc5b2571a9e56) refactor: be slightly more defensive about setting document arrays
- [`e5948b8`](https://github.com/Automattic/mongoose/commit/e5948b8711201fd4db2a9e199c53a4fd06deb9d7) fix(document): copy atomics when setting document array to an existing docume...
- [`a4e33dd`](https://github.com/Automattic/mongoose/commit/a4e33dda84b0cba5c88ee9da1e3ee4d584dfe8e6) test(document): repro [#7472](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7472)
- [`704a5a4`](https://github.com/Automattic/mongoose/commit/704a5a4d4c395cda6081e7b37905f168ff665632) docs: remove confusing references to executing a query immediately
- [`bc95a22`](https://github.com/Automattic/mongoose/commit/bc95a222a568a8ac758cc960d1f1e978f4fa6dbd) docs(guides+schematypes): link to custom schematypes docs
- [`ad71535`](https://github.com/Automattic/mongoose/commit/ad71535b5b1b9a7d36a57772432d17a1729df628) style: fix lint
- [`bc5d96a`](https://github.com/Automattic/mongoose/commit/bc5d96a85f650d35650c14ec34712964e0ed04a9) Merge branch 'gh6706'
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.3...5.4.10)
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.10.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.4.10 / 2019-02-05 > =================== > * docs: add search bar and /search page [#6706](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6706) > * fix: support dotted aliases [#7478](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7478) [chrischen](https://github.com/chrischen) > * fix(document): copy atomics when setting document array to an existing document array [#7472](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7472) > * chore: upgrade to mongodb driver 3.1.13 [#7488](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7488) > * docs: remove confusing references to executing a query "immediately" [#7461](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7461) > * docs(guides+schematypes): link to custom schematypes docs [#7407](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7407) > > 5.4.9 / 2019-02-01 > ================== > * fix(document): make `remove()`, `updateOne()`, and `update()` use the document's associated session [#7455](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7455) > * fix(document): support passing args to hooked custom methods [#7456](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7456) > * fix(document): avoid double calling single nested getters on `toObject()` [#7442](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7442) > * fix(discriminator): handle global plugins modifying top-level discriminator options with applyPluginsToDiscriminators: true [#7458](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7458) > * docs(documents): improve explanation of documents and use more modern syntax [#7463](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7463) > * docs(middleware+api): fix a couple typos in examples [#7474](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7474) [arniu](https://github.com/arniu) > > 5.4.8 / 2019-01-30 > ================== > * fix(query): fix unhandled error when casting object in array filters [#7431](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7431) > * fix(query): cast query $elemMatch to discriminator schema if discriminator key set [#7449](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7449) > * docs: add table of contents to all guides [#7430](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7430) > > 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) > ... (truncated)Commits
- [`87f691e`](https://github.com/Automattic/mongoose/commit/87f691e6916919531b8383c94900bd847d17975b) chore: release 5.4.10 - [`09dd3cf`](https://github.com/Automattic/mongoose/commit/09dd3cf4fb00cfac4fbbe92da0d64eeedde61de7) docs(jest): improve docs about fake timers - [`e778e0b`](https://github.com/Automattic/mongoose/commit/e778e0bcf42acee5fac22d6eb7149bf8c83c876c) chore: upgrade to mongodb driver 3.1.13 - [`42aa401`](https://github.com/Automattic/mongoose/commit/42aa4014aa5a0147de6f6a44530dc5b2571a9e56) refactor: be slightly more defensive about setting document arrays - [`e5948b8`](https://github.com/Automattic/mongoose/commit/e5948b8711201fd4db2a9e199c53a4fd06deb9d7) fix(document): copy atomics when setting document array to an existing docume... - [`a4e33dd`](https://github.com/Automattic/mongoose/commit/a4e33dda84b0cba5c88ee9da1e3ee4d584dfe8e6) test(document): repro [#7472](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7472) - [`704a5a4`](https://github.com/Automattic/mongoose/commit/704a5a4d4c395cda6081e7b37905f168ff665632) docs: remove confusing references to executing a query immediately - [`bc95a22`](https://github.com/Automattic/mongoose/commit/bc95a222a568a8ac758cc960d1f1e978f4fa6dbd) docs(guides+schematypes): link to custom schematypes docs - [`ad71535`](https://github.com/Automattic/mongoose/commit/ad71535b5b1b9a7d36a57772432d17a1729df628) style: fix lint - [`bc5d96a`](https://github.com/Automattic/mongoose/commit/bc5d96a85f650d35650c14ec34712964e0ed04a9) Merge branch 'gh6706' - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.3...5.4.10)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.