Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 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)
> * 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
- [`e117e59`](https://github.com/Automattic/mongoose/commit/e117e59d9b3833cd07d1d97d7dc5e8cfa6794643) chore: release 5.4.8
- [`a04dcfa`](https://github.com/Automattic/mongoose/commit/a04dcfa7003f405742080cf822e9364b23f797c5) docs: add ToC to all guides
- [`65fcf3d`](https://github.com/Automattic/mongoose/commit/65fcf3d37835077fb7043b09fbba435d83aa5b5b) chore(eslint): prevent eslint from thinking `context` is a global variable
- [`c466335`](https://github.com/Automattic/mongoose/commit/c4663355369fbf877f497fb9269726cbfa41a543) fix(query): fix unhandled error when casting object in array filters
- [`b8beb97`](https://github.com/Automattic/mongoose/commit/b8beb97e89474f35b241352f972bf26e961c93d7) test(query): repro [#7431](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7431)
- [`6e67c9a`](https://github.com/Automattic/mongoose/commit/6e67c9af36c8df27bdb9c62cfc411651133ae390) fix(query): cast query $elemMatch to discriminator schema if discriminator ke...
- [`9336233`](https://github.com/Automattic/mongoose/commit/9336233bf731bbe5871a05851dd73251b35a48d9) test(query): repro [#7449](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7449)
- [`6aeb10d`](https://github.com/Automattic/mongoose/commit/6aeb10dddac194adda8b1c2b64fea777b8eaf22c) chore: now working on 5.4.8
- [`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...
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.3...5.4.8)
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.8.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 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) > * 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
- [`e117e59`](https://github.com/Automattic/mongoose/commit/e117e59d9b3833cd07d1d97d7dc5e8cfa6794643) chore: release 5.4.8 - [`a04dcfa`](https://github.com/Automattic/mongoose/commit/a04dcfa7003f405742080cf822e9364b23f797c5) docs: add ToC to all guides - [`65fcf3d`](https://github.com/Automattic/mongoose/commit/65fcf3d37835077fb7043b09fbba435d83aa5b5b) chore(eslint): prevent eslint from thinking `context` is a global variable - [`c466335`](https://github.com/Automattic/mongoose/commit/c4663355369fbf877f497fb9269726cbfa41a543) fix(query): fix unhandled error when casting object in array filters - [`b8beb97`](https://github.com/Automattic/mongoose/commit/b8beb97e89474f35b241352f972bf26e961c93d7) test(query): repro [#7431](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7431) - [`6e67c9a`](https://github.com/Automattic/mongoose/commit/6e67c9af36c8df27bdb9c62cfc411651133ae390) fix(query): cast query $elemMatch to discriminator schema if discriminator ke... - [`9336233`](https://github.com/Automattic/mongoose/commit/9336233bf731bbe5871a05851dd73251b35a48d9) test(query): repro [#7449](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7449) - [`6aeb10d`](https://github.com/Automattic/mongoose/commit/6aeb10dddac194adda8b1c2b64fea777b8eaf22c) chore: now working on 5.4.8 - [`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... - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.3...5.4.8)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.