Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.8.6 / 2020-01-07
> ====================
> * chore: merge changes from 4.13.20 and override mistaken publish to latest tag
>
> 4.13.20 / 2020-01-07
> ====================
> * fix(schema): make aliases handle mongoose-lean-virtuals [#6069](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6069)
>
> 5.8.5 / 2020-01-06
> ==================
> * fix(document): throw error when running `validate()` multiple times on the same document [#8468](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8468)
> * fix(model): ensure deleteOne() and deleteMany() set discriminator filter even if no conditions passed [#8471](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8471)
> * fix(document): allow pre('validate') hooks to throw errors with `name = 'ValidationError'` [#8466](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8466)
> * fix(update): move top level $set of immutable properties to $setOnInsert so upserting with immutable properties actually sets the property [#8467](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8467)
> * fix(document): avoid double-running validators on single nested subdocs within single nested subdocs [#8468](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8468)
> * fix(populate): support top-level match option for virtual populate [#8475](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8475)
> * fix(model): avoid applying skip when populating virtual with count [#8476](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8476)
>
> 5.8.4 / 2020-01-02
> ==================
> * fix(populate): ensure populate virtual gets set to empty array if `localField` is undefined in the database [#8455](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8455)
> * fix(connection): wrap `mongoose.connect()` server selection timeouts in MongooseTimeoutError for more readable stack traces [#8451](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8451)
> * fix(populate): allow deselecting `foreignField` from projection by prefixing with `-` [#8460](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8460)
> * fix(populate): support embedded discriminators with `refPath` when not all discriminator schemas have `refPath` [#8452](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8452)
> * fix(array): allow defining `enum` on array if an array of numbers [#8449](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8449)
>
> 5.8.3 / 2019-12-23
> ==================
> * fix: upgrade mongodb -> 3.4.1 [#8430](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8430) [jaschaio](https://github.com/jaschaio)
> * fix(populate): don't add empty subdocument to array when populating path underneath a non-existent document array [#8432](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8432)
> * fix(schema): handle `_id` option for document array schematypes [#8450](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8450)
> * fix(update): call setters when updating mixed type [#8444](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8444)
> * docs(connections): add note about MongoTimeoutError.reason [#8402](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8402)
>
> 5.8.2 / 2019-12-20
> ==================
> * fix(schema): copy `.add()`-ed paths when calling `.add()` with schema argument [#8429](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8429)
> * fix(cursor): pull schema-level readPreference when using `Query#cursor()` [#8421](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8421)
> * fix(cursor): wait for all promises to resolve if `parallel` is greater than number of documents [#8422](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8422)
> * fix(document): depopulate entire array when setting array path to a partially populated array [#8443](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8443)
> * fix: handle setDefaultsOnInsert with deeply nested subdocs [#8392](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8392)
> * fix(document): report `DocumentNotFoundError` if underlying document deleted but no changes made [#8428](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8428) [#8371](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8371) [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
> * docs(populate): clarify limitations of `limit` option for populate and suggest workaround [#8409](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8409)
> * docs(deprecations): explain which connection options are no longer relevant with useUnifiedTopology [#8411](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8411)
> * chore: allow browser build to be published [#8435](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8435) [#8427](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8427) [captaincaius](https://github.com/captaincaius)
>
> 5.8.1 / 2019-12-12
> ==================
> * fix(documentarray): dont attempt to cast when modifying array returned from map() [#8399](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8399)
> * fix(document): update single nested subdoc parent when setting to existing single nested doc [#8400](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8400)
> ... (truncated)
Commits
- [`abb47f1`](https://github.com/Automattic/mongoose/commit/abb47f1beace122c3087a1535e91e63fdccda49a) chore: release 5.8.6
- [`713ec2d`](https://github.com/Automattic/mongoose/commit/713ec2d38257fabe5f64ec90718276b277719949) Merge branch '4.x'
- [`1db031c`](https://github.com/Automattic/mongoose/commit/1db031cfa0f64e2eda8f4e428c530ea6dc201cd1) test(schema): clean up messy tests re: [#8459](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8459)
- [`8fa8012`](https://github.com/Automattic/mongoose/commit/8fa801277bc5c8d627c4af0dd4301d43e911a7af) test: test cleanup re: [#8459](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8459)
- [`4a55040`](https://github.com/Automattic/mongoose/commit/4a55040465eeeecdc0e712a78cab975dba4f8c3f) chore: remove problematic mongoose-long dep and use mongodb 3.4 in tests
- [`91f95da`](https://github.com/Automattic/mongoose/commit/91f95dad75fc6d99630b9f492914e0399b85bf68) chore: run consistent mongod version in tests
- [`0e65e6e`](https://github.com/Automattic/mongoose/commit/0e65e6e8b472b927fa0fe16c142c735d65a4c05e) chore: release 4.13.20
- [`803090d`](https://github.com/Automattic/mongoose/commit/803090d3e31d780b7b9533dda85791143929e1ba) fix(schema): make aliases handle mongoose-lean-virtuals
- [`6a8b381`](https://github.com/Automattic/mongoose/commit/6a8b38144df41955b09a599635128f1c5a0cfdc2) chore: add .config.js to gitignore and npmignore
- [`a076c88`](https://github.com/Automattic/mongoose/commit/a076c889cddcacd3c592d9ee43509c4fbd7ad27a) chore: release 5.8.5
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/3.6.20...5.8.6)
Maintainer changes
This version was pushed to npm by [vkarpov15](https://www.npmjs.com/~vkarpov15), a new releaser for mongoose since your current version.
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
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/jimschubert/yfa-nodejs-code/network/alerts).
Bumps mongoose from 3.6.20 to 5.8.6.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.8.6 / 2020-01-07 > ==================== > * chore: merge changes from 4.13.20 and override mistaken publish to latest tag > > 4.13.20 / 2020-01-07 > ==================== > * fix(schema): make aliases handle mongoose-lean-virtuals [#6069](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6069) > > 5.8.5 / 2020-01-06 > ================== > * fix(document): throw error when running `validate()` multiple times on the same document [#8468](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8468) > * fix(model): ensure deleteOne() and deleteMany() set discriminator filter even if no conditions passed [#8471](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8471) > * fix(document): allow pre('validate') hooks to throw errors with `name = 'ValidationError'` [#8466](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8466) > * fix(update): move top level $set of immutable properties to $setOnInsert so upserting with immutable properties actually sets the property [#8467](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8467) > * fix(document): avoid double-running validators on single nested subdocs within single nested subdocs [#8468](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8468) > * fix(populate): support top-level match option for virtual populate [#8475](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8475) > * fix(model): avoid applying skip when populating virtual with count [#8476](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8476) > > 5.8.4 / 2020-01-02 > ================== > * fix(populate): ensure populate virtual gets set to empty array if `localField` is undefined in the database [#8455](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8455) > * fix(connection): wrap `mongoose.connect()` server selection timeouts in MongooseTimeoutError for more readable stack traces [#8451](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8451) > * fix(populate): allow deselecting `foreignField` from projection by prefixing with `-` [#8460](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8460) > * fix(populate): support embedded discriminators with `refPath` when not all discriminator schemas have `refPath` [#8452](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8452) > * fix(array): allow defining `enum` on array if an array of numbers [#8449](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8449) > > 5.8.3 / 2019-12-23 > ================== > * fix: upgrade mongodb -> 3.4.1 [#8430](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8430) [jaschaio](https://github.com/jaschaio) > * fix(populate): don't add empty subdocument to array when populating path underneath a non-existent document array [#8432](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8432) > * fix(schema): handle `_id` option for document array schematypes [#8450](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8450) > * fix(update): call setters when updating mixed type [#8444](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8444) > * docs(connections): add note about MongoTimeoutError.reason [#8402](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8402) > > 5.8.2 / 2019-12-20 > ================== > * fix(schema): copy `.add()`-ed paths when calling `.add()` with schema argument [#8429](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8429) > * fix(cursor): pull schema-level readPreference when using `Query#cursor()` [#8421](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8421) > * fix(cursor): wait for all promises to resolve if `parallel` is greater than number of documents [#8422](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8422) > * fix(document): depopulate entire array when setting array path to a partially populated array [#8443](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8443) > * fix: handle setDefaultsOnInsert with deeply nested subdocs [#8392](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8392) > * fix(document): report `DocumentNotFoundError` if underlying document deleted but no changes made [#8428](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8428) [#8371](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8371) [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez) > * docs(populate): clarify limitations of `limit` option for populate and suggest workaround [#8409](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8409) > * docs(deprecations): explain which connection options are no longer relevant with useUnifiedTopology [#8411](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8411) > * chore: allow browser build to be published [#8435](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8435) [#8427](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8427) [captaincaius](https://github.com/captaincaius) > > 5.8.1 / 2019-12-12 > ================== > * fix(documentarray): dont attempt to cast when modifying array returned from map() [#8399](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8399) > * fix(document): update single nested subdoc parent when setting to existing single nested doc [#8400](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8400) > ... (truncated)Commits
- [`abb47f1`](https://github.com/Automattic/mongoose/commit/abb47f1beace122c3087a1535e91e63fdccda49a) chore: release 5.8.6 - [`713ec2d`](https://github.com/Automattic/mongoose/commit/713ec2d38257fabe5f64ec90718276b277719949) Merge branch '4.x' - [`1db031c`](https://github.com/Automattic/mongoose/commit/1db031cfa0f64e2eda8f4e428c530ea6dc201cd1) test(schema): clean up messy tests re: [#8459](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8459) - [`8fa8012`](https://github.com/Automattic/mongoose/commit/8fa801277bc5c8d627c4af0dd4301d43e911a7af) test: test cleanup re: [#8459](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8459) - [`4a55040`](https://github.com/Automattic/mongoose/commit/4a55040465eeeecdc0e712a78cab975dba4f8c3f) chore: remove problematic mongoose-long dep and use mongodb 3.4 in tests - [`91f95da`](https://github.com/Automattic/mongoose/commit/91f95dad75fc6d99630b9f492914e0399b85bf68) chore: run consistent mongod version in tests - [`0e65e6e`](https://github.com/Automattic/mongoose/commit/0e65e6e8b472b927fa0fe16c142c735d65a4c05e) chore: release 4.13.20 - [`803090d`](https://github.com/Automattic/mongoose/commit/803090d3e31d780b7b9533dda85791143929e1ba) fix(schema): make aliases handle mongoose-lean-virtuals - [`6a8b381`](https://github.com/Automattic/mongoose/commit/6a8b38144df41955b09a599635128f1c5a0cfdc2) chore: add .config.js to gitignore and npmignore - [`a076c88`](https://github.com/Automattic/mongoose/commit/a076c889cddcacd3c592d9ee43509c4fbd7ad27a) chore: release 5.8.5 - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/3.6.20...5.8.6)Maintainer changes
This version was pushed to npm by [vkarpov15](https://www.npmjs.com/~vkarpov15), a new releaser for mongoose since your current version.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 You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/jimschubert/yfa-nodejs-code/network/alerts).