Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.8.7 / 2020-01-10
> ==================
> * fix(documentarray): modify ownerDocument when setting doc array to a doc array thats part of another document [#8479](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8479)
> * fix(document): ensure that you can call `splice()` after `slice()` on an array [#8482](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8482)
> * docs(populate): improve cross-db populate docs to include model refs [#8497](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8497)
>
> 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)
> ... (truncated)
Commits
- [`a4d623e`](https://github.com/Automattic/mongoose/commit/a4d623ede734befc84fcf1b21f82cf21af6022c9) chore: release 5.8.7
- [`c866866`](https://github.com/Automattic/mongoose/commit/c866866964a591fea3653d8c4241316448458253) chore: update opencollective sponsors
- [`2a18b0f`](https://github.com/Automattic/mongoose/commit/2a18b0f9f3f5d7c9e6a4ad16263110e50ad865f4) test: fix tests re: [#8481](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8481)
- [`b3d5faa`](https://github.com/Automattic/mongoose/commit/b3d5faa157c87469db59dc546d16c4d7633b888a) Actually fix [#8479](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8479)
- [`d938e9a`](https://github.com/Automattic/mongoose/commit/d938e9a610f82946ee8af5c4c6040e51e451e5c0) fix(documentarray): modify ownerDocument when setting doc array to a doc arra...
- [`b2f2bdf`](https://github.com/Automattic/mongoose/commit/b2f2bdf0f0b4d27e850ae2da2e0e909e22f34312) test(documentarray): repro [#8479](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8479)
- [`a041b44`](https://github.com/Automattic/mongoose/commit/a041b440861fb2c02e7f5fd94cd7ae31826fb18a) fix(document): ensure that you can call `splice()` after `slice()` on an array
- [`a3ab3a6`](https://github.com/Automattic/mongoose/commit/a3ab3a65d361eff6e39ef79dcdbd3ac7a11de5b1) test(document): repro [#8482](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8482)
- [`b4b6486`](https://github.com/Automattic/mongoose/commit/b4b64864b40fef1473b632c32583ce7157b3cdba) docs(populate): improve cross-db populate docs to include model refs
- [`56bbac4`](https://github.com/Automattic/mongoose/commit/56bbac4c6e93bb7bda0ddbf5a3351a9c48eb8db4) chore: now working on 5.8.7
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/3.6.20...5.8.7)
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/RobertCorey/five-oh-poker-bot/network/alerts).
Bumps mongoose from 3.6.20 to 5.8.7.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.8.7 / 2020-01-10 > ================== > * fix(documentarray): modify ownerDocument when setting doc array to a doc array thats part of another document [#8479](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8479) > * fix(document): ensure that you can call `splice()` after `slice()` on an array [#8482](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8482) > * docs(populate): improve cross-db populate docs to include model refs [#8497](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8497) > > 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) > ... (truncated)Commits
- [`a4d623e`](https://github.com/Automattic/mongoose/commit/a4d623ede734befc84fcf1b21f82cf21af6022c9) chore: release 5.8.7 - [`c866866`](https://github.com/Automattic/mongoose/commit/c866866964a591fea3653d8c4241316448458253) chore: update opencollective sponsors - [`2a18b0f`](https://github.com/Automattic/mongoose/commit/2a18b0f9f3f5d7c9e6a4ad16263110e50ad865f4) test: fix tests re: [#8481](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8481) - [`b3d5faa`](https://github.com/Automattic/mongoose/commit/b3d5faa157c87469db59dc546d16c4d7633b888a) Actually fix [#8479](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8479) - [`d938e9a`](https://github.com/Automattic/mongoose/commit/d938e9a610f82946ee8af5c4c6040e51e451e5c0) fix(documentarray): modify ownerDocument when setting doc array to a doc arra... - [`b2f2bdf`](https://github.com/Automattic/mongoose/commit/b2f2bdf0f0b4d27e850ae2da2e0e909e22f34312) test(documentarray): repro [#8479](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8479) - [`a041b44`](https://github.com/Automattic/mongoose/commit/a041b440861fb2c02e7f5fd94cd7ae31826fb18a) fix(document): ensure that you can call `splice()` after `slice()` on an array - [`a3ab3a6`](https://github.com/Automattic/mongoose/commit/a3ab3a65d361eff6e39ef79dcdbd3ac7a11de5b1) test(document): repro [#8482](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8482) - [`b4b6486`](https://github.com/Automattic/mongoose/commit/b4b64864b40fef1473b632c32583ce7157b3cdba) docs(populate): improve cross-db populate docs to include model refs - [`56bbac4`](https://github.com/Automattic/mongoose/commit/56bbac4c6e93bb7bda0ddbf5a3351a9c48eb8db4) chore: now working on 5.8.7 - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/3.6.20...5.8.7)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/RobertCorey/five-oh-poker-bot/network/alerts).