Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.4.11 / 2019-02-09
> ===================
> * fix(schema): handle `_id: false` in schema paths as a shortcut for setting the `_id` option to `false` [#7480](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7480)
> * fix(update): handle $addToSet and $push with ObjectIds and castNonArrays=false [#7479](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7479)
> * docs(model): document `session` option to `save()` [#7484](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7484)
> * chore: fix gitignore syntax [#7498](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7498) [JulioJu](https://github.com/JulioJu)
> * docs: document that Document#validateSync returns ValidationError [#7499](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7499)
> * refactor: use consolidated `isPOJO()` function instead of constructor checks [#7500](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7500)
>
> 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)
>
> ... (truncated)
Commits
- [`381a5f5`](https://github.com/Automattic/mongoose/commit/381a5f52cc4539b7db1faf830f18f1ad0ff61d1b) chore: release 5.4.11
- [`5303480`](https://github.com/Automattic/mongoose/commit/53034802b4d20c6a7209567f7bc39bdd34691253) docs: add views guru as sponsor
- [`36cc375`](https://github.com/Automattic/mongoose/commit/36cc375555c00cf23487b75be4c91a03f2fdd84a) Merge branch 'master' of github.com:Automattic/mongoose
- [`e5fe5d5`](https://github.com/Automattic/mongoose/commit/e5fe5d5c207e5c7d78f78714710087fbf3c9323c) refactor: use consolidated `isPOJO()` function instead of constructor checks
- [`c3502ce`](https://github.com/Automattic/mongoose/commit/c3502ce5f71bbf76def01dce97e9b5e7ea1fbfb2) Merge pull request [#7499](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7499) from JulioJu/doc-validateSync
- [`d4825f6`](https://github.com/Automattic/mongoose/commit/d4825f6c801cbf347827c9f4cc225dd59f0f04fe) Merge pull request [#7498](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7498) from JulioJu/correct-gitignore
- [`1b1acd5`](https://github.com/Automattic/mongoose/commit/1b1acd5e3d9c78a67ce0bd65f5af5ac7c814f2be) fix(schema): handle `_id: false` in schema paths as a shortcut for setting th...
- [`ebff7ba`](https://github.com/Automattic/mongoose/commit/ebff7baa2f51320894f0d0b2644b16d54a918c99) test(schema): repro [#7480](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7480)
- [`971e98b`](https://github.com/Automattic/mongoose/commit/971e98b60229675eb0fa1b2daaf6a62bf4da7c6b) Documentation: Document.prototype.validateSync returns ValidationError
- [`e615c97`](https://github.com/Automattic/mongoose/commit/e615c978739473909fe0791388df0362e18a4106) gitignore correct syntax
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.3...5.4.11)
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.11.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.4.11 / 2019-02-09 > =================== > * fix(schema): handle `_id: false` in schema paths as a shortcut for setting the `_id` option to `false` [#7480](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7480) > * fix(update): handle $addToSet and $push with ObjectIds and castNonArrays=false [#7479](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7479) > * docs(model): document `session` option to `save()` [#7484](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7484) > * chore: fix gitignore syntax [#7498](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7498) [JulioJu](https://github.com/JulioJu) > * docs: document that Document#validateSync returns ValidationError [#7499](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7499) > * refactor: use consolidated `isPOJO()` function instead of constructor checks [#7500](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7500) > > 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) > > ... (truncated)Commits
- [`381a5f5`](https://github.com/Automattic/mongoose/commit/381a5f52cc4539b7db1faf830f18f1ad0ff61d1b) chore: release 5.4.11 - [`5303480`](https://github.com/Automattic/mongoose/commit/53034802b4d20c6a7209567f7bc39bdd34691253) docs: add views guru as sponsor - [`36cc375`](https://github.com/Automattic/mongoose/commit/36cc375555c00cf23487b75be4c91a03f2fdd84a) Merge branch 'master' of github.com:Automattic/mongoose - [`e5fe5d5`](https://github.com/Automattic/mongoose/commit/e5fe5d5c207e5c7d78f78714710087fbf3c9323c) refactor: use consolidated `isPOJO()` function instead of constructor checks - [`c3502ce`](https://github.com/Automattic/mongoose/commit/c3502ce5f71bbf76def01dce97e9b5e7ea1fbfb2) Merge pull request [#7499](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7499) from JulioJu/doc-validateSync - [`d4825f6`](https://github.com/Automattic/mongoose/commit/d4825f6c801cbf347827c9f4cc225dd59f0f04fe) Merge pull request [#7498](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7498) from JulioJu/correct-gitignore - [`1b1acd5`](https://github.com/Automattic/mongoose/commit/1b1acd5e3d9c78a67ce0bd65f5af5ac7c814f2be) fix(schema): handle `_id: false` in schema paths as a shortcut for setting th... - [`ebff7ba`](https://github.com/Automattic/mongoose/commit/ebff7baa2f51320894f0d0b2644b16d54a918c99) test(schema): repro [#7480](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7480) - [`971e98b`](https://github.com/Automattic/mongoose/commit/971e98b60229675eb0fa1b2daaf6a62bf4da7c6b) Documentation: Document.prototype.validateSync returns ValidationError - [`e615c97`](https://github.com/Automattic/mongoose/commit/e615c978739473909fe0791388df0362e18a4106) gitignore correct syntax - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.4.3...5.4.11)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.