Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.5.14 / 2019-06-08
> ===================
> * fix(query): correct this scope of setters in update query [#7876](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7876) [Fonger](https://github.com/Fonger)
> * fix(model): reset modifiedPaths after successful insertMany [#7852](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7852) [#7873](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7873) [Fonger](https://github.com/Fonger)
> * fix(populate): allow using `refPath` with virtual populate [#7848](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7848)
> * fix(document): prepend private methods getValue and setValue with $ [#7870](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7870) [Fonger](https://github.com/Fonger)
> * fix: update mongodb driver -> 3.2.7 [#7871](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7871) [Fonger](https://github.com/Fonger)
> * docs(tutorials): add tutorial about custom casting functions [#7045](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7045)
> * docs(connection): fix outdated events document [#7874](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7874) [Fonger](https://github.com/Fonger)
> * docs: fix typo in lean docs [#7875](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7875) [tannakartikey](https://github.com/tannakartikey)
> * docs: move off of KeenIO for tracking and use self-hosted analytics instead
>
> 5.5.13 / 2019-06-05
> ===================
> * fix(model): support passing deleteOne options [#7860](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7860) [#7857](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7857) [Fonger](https://github.com/Fonger)
> * fix(update): run setters on array elements when doing $addToSet, $push, etc [#4185](https://github-redirect.dependabot.com/Automattic/mongoose/issues/4185)
> * fix(model): support getting discriminator by value when creating a new model [#7851](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7851)
> * docs(transactions): add section about the `withTransaction()` helper [#7598](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7598)
> * docs(schema): clarify relationship between Schema#static() and Schema#statics [#7827](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7827)
> * docs(model): fix typo `projetion` to `projection` [#7868](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7868) [dfdeagle47](https://github.com/dfdeagle47)
> * docs(schema): correct schema options lists [#7828](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7828)
>
> 5.5.12 / 2019-05-31
> ===================
> * fix(document): fix unexpected error when loading a document with a nested property named `schema` [#7831](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7831)
> * fix(model): skip applying static hooks by default if static name conflicts with query middleware (re: mongoose-delete plugin) [#7790](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7790)
> * fix(query): apply schema-level projections to the result of `findOneAndReplace()` [#7654](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7654)
> * fix: upgrade mongodb driver -> 3.2.6
> * docs(tutorials): add findOneAndUpdate() tutorial [#7847](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7847)
> * docs(validation): add `updateOne()` and `updateMany()` to list of update validator operations [#7845](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7845)
> * docs(model): make sure options lists in `update()` API line up [#7842](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7842)
>
> 5.5.11 / 2019-05-23
> ===================
> * fix(discriminator): allow numeric discriminator keys for embedded discriminators [#7808](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7808)
> * chore: add Node.js 12 to travis build matrix [#7784](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7784)
>
> 5.5.10 / 2019-05-20
> ===================
> * fix(discriminator): allow user-defined discriminator path in schema [#7807](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7807)
> * fix(query): ensure `findOneAndReplace()` sends `replacement` to server [#7654](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7654)
> * fix(cast): allow `[]` as a value when casting `$nin` [#7806](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7806)
> * docs(model): clarify that setters do run on `update()` by default [#7801](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7801)
> * docs: fix typo in FAQ [#7821](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7821) [jaona](https://github.com/jaona)
>
> 5.5.9 / 2019-05-16
> ==================
> * fix(query): skip schema setters when casting $regexp $options [#7802](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7802) [Fonger](https://github.com/Fonger)
> * fix(populate): don't skip populating doc array properties whose name conflicts with an array method [#7782](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7782)
> * fix(populate): make populated virtual return undefined if not populated [#7795](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7795)
> ... (truncated)
Commits
- [`1be7ecd`](https://github.com/Automattic/mongoose/commit/1be7ecd658bfb70b8334932998fc89cec0d0c6ee) chore: release 5.5.14
- [`080fce7`](https://github.com/Automattic/mongoose/commit/080fce7c1dea9980f373973e59e73e5ccbdd3129) test: fix tests
- [`26161b2`](https://github.com/Automattic/mongoose/commit/26161b2b716e6e3cdc0be8906855863d5c3ad7ed) test: fix tests
- [`1e3647f`](https://github.com/Automattic/mongoose/commit/1e3647f1724c3834314c54967fa4f8f4a98ee55f) docs(tutorials): add tutorial about custom casting functions
- [`94292e6`](https://github.com/Automattic/mongoose/commit/94292e6c107cbe7f99c48133d529c55a20a04c51) fix(populate): allow using `refPath` with virtual populate
- [`75150ca`](https://github.com/Automattic/mongoose/commit/75150ca4b76b4448da077cc97917d25cca16fa59) test(populate): repro [#7848](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7848)
- [`6133770`](https://github.com/Automattic/mongoose/commit/613377023c0a23450fa4747235a302f80e07cbde) Merge pull request [#7877](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7877) from Fonger/patch-3
- [`9f542d1`](https://github.com/Automattic/mongoose/commit/9f542d1dc73103308938094f44f8055c89e7cb0f) fix(query): correct this scope of setters in update query
- [`853d705`](https://github.com/Automattic/mongoose/commit/853d7055e4ba236de501a6a8a317651b74252e17) chore(deps): bump dependencies
- [`808f127`](https://github.com/Automattic/mongoose/commit/808f12782b880694cc083d1c6ffa9478e88f4c44) Merge pull request [#7875](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7875) from tannakartikey/lean_docs_typo_fix
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.5.7...5.5.14)
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 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.5.7 to 5.5.14.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.5.14 / 2019-06-08 > =================== > * fix(query): correct this scope of setters in update query [#7876](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7876) [Fonger](https://github.com/Fonger) > * fix(model): reset modifiedPaths after successful insertMany [#7852](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7852) [#7873](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7873) [Fonger](https://github.com/Fonger) > * fix(populate): allow using `refPath` with virtual populate [#7848](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7848) > * fix(document): prepend private methods getValue and setValue with $ [#7870](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7870) [Fonger](https://github.com/Fonger) > * fix: update mongodb driver -> 3.2.7 [#7871](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7871) [Fonger](https://github.com/Fonger) > * docs(tutorials): add tutorial about custom casting functions [#7045](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7045) > * docs(connection): fix outdated events document [#7874](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7874) [Fonger](https://github.com/Fonger) > * docs: fix typo in lean docs [#7875](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7875) [tannakartikey](https://github.com/tannakartikey) > * docs: move off of KeenIO for tracking and use self-hosted analytics instead > > 5.5.13 / 2019-06-05 > =================== > * fix(model): support passing deleteOne options [#7860](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7860) [#7857](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7857) [Fonger](https://github.com/Fonger) > * fix(update): run setters on array elements when doing $addToSet, $push, etc [#4185](https://github-redirect.dependabot.com/Automattic/mongoose/issues/4185) > * fix(model): support getting discriminator by value when creating a new model [#7851](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7851) > * docs(transactions): add section about the `withTransaction()` helper [#7598](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7598) > * docs(schema): clarify relationship between Schema#static() and Schema#statics [#7827](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7827) > * docs(model): fix typo `projetion` to `projection` [#7868](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7868) [dfdeagle47](https://github.com/dfdeagle47) > * docs(schema): correct schema options lists [#7828](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7828) > > 5.5.12 / 2019-05-31 > =================== > * fix(document): fix unexpected error when loading a document with a nested property named `schema` [#7831](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7831) > * fix(model): skip applying static hooks by default if static name conflicts with query middleware (re: mongoose-delete plugin) [#7790](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7790) > * fix(query): apply schema-level projections to the result of `findOneAndReplace()` [#7654](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7654) > * fix: upgrade mongodb driver -> 3.2.6 > * docs(tutorials): add findOneAndUpdate() tutorial [#7847](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7847) > * docs(validation): add `updateOne()` and `updateMany()` to list of update validator operations [#7845](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7845) > * docs(model): make sure options lists in `update()` API line up [#7842](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7842) > > 5.5.11 / 2019-05-23 > =================== > * fix(discriminator): allow numeric discriminator keys for embedded discriminators [#7808](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7808) > * chore: add Node.js 12 to travis build matrix [#7784](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7784) > > 5.5.10 / 2019-05-20 > =================== > * fix(discriminator): allow user-defined discriminator path in schema [#7807](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7807) > * fix(query): ensure `findOneAndReplace()` sends `replacement` to server [#7654](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7654) > * fix(cast): allow `[]` as a value when casting `$nin` [#7806](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7806) > * docs(model): clarify that setters do run on `update()` by default [#7801](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7801) > * docs: fix typo in FAQ [#7821](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7821) [jaona](https://github.com/jaona) > > 5.5.9 / 2019-05-16 > ================== > * fix(query): skip schema setters when casting $regexp $options [#7802](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7802) [Fonger](https://github.com/Fonger) > * fix(populate): don't skip populating doc array properties whose name conflicts with an array method [#7782](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7782) > * fix(populate): make populated virtual return undefined if not populated [#7795](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7795) > ... (truncated)Commits
- [`1be7ecd`](https://github.com/Automattic/mongoose/commit/1be7ecd658bfb70b8334932998fc89cec0d0c6ee) chore: release 5.5.14 - [`080fce7`](https://github.com/Automattic/mongoose/commit/080fce7c1dea9980f373973e59e73e5ccbdd3129) test: fix tests - [`26161b2`](https://github.com/Automattic/mongoose/commit/26161b2b716e6e3cdc0be8906855863d5c3ad7ed) test: fix tests - [`1e3647f`](https://github.com/Automattic/mongoose/commit/1e3647f1724c3834314c54967fa4f8f4a98ee55f) docs(tutorials): add tutorial about custom casting functions - [`94292e6`](https://github.com/Automattic/mongoose/commit/94292e6c107cbe7f99c48133d529c55a20a04c51) fix(populate): allow using `refPath` with virtual populate - [`75150ca`](https://github.com/Automattic/mongoose/commit/75150ca4b76b4448da077cc97917d25cca16fa59) test(populate): repro [#7848](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7848) - [`6133770`](https://github.com/Automattic/mongoose/commit/613377023c0a23450fa4747235a302f80e07cbde) Merge pull request [#7877](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7877) from Fonger/patch-3 - [`9f542d1`](https://github.com/Automattic/mongoose/commit/9f542d1dc73103308938094f44f8055c89e7cb0f) fix(query): correct this scope of setters in update query - [`853d705`](https://github.com/Automattic/mongoose/commit/853d7055e4ba236de501a6a8a317651b74252e17) chore(deps): bump dependencies - [`808f127`](https://github.com/Automattic/mongoose/commit/808f12782b880694cc083d1c6ffa9478e88f4c44) Merge pull request [#7875](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7875) from tannakartikey/lean_docs_typo_fix - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.5.7...5.5.14)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 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.