Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.7.6 / 2019-10-21
> ==================
> * fix: upgrade mongodb driver -> 3.3.3 to fix issue with failing to connect to a replica set if one member is down [#8209](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8209)
> * fix(document): fix TypeError when setting a single nested subdoc with timestamps [#8251](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8251)
> * fix(cursor): fix issue with long-running `eachAsync()` cursor [#8249](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8249) [#8235](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8235)
> * fix(connection): ensure repeated `close` events from useUnifiedTopology don't disconnect Mongoose from replica set [#8224](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8224)
> * fix(document): support calling `Document` constructor directly in Node.js [#8237](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8237)
> * fix(populate): add document array subpaths to parent doc `populated()` when calling `DocumentArray#push()` [#8247](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8247)
> * fix(options): add missing minlength and maxlength to SchemaStringOptions [#8256](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8256)
> * docs: add documentarraypath to API docs, including DocumentArrayPath#discriminator() [#8164](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8164)
> * docs(schematypes): add a section about the `type` property [#8227](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8227)
> * docs(api): fix Connection.close return param [#8258](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8258) [gosuhiman](https://github.com/gosuhiman)
> * docs: update link to broken image on home page [#8253](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8253) [krosenk729](https://github.com/krosenk729)
>
> 5.7.5 / 2019-10-14
> ==================
> * fix(query): delete top-level `_bsontype` property in queries to prevent silent empty queries [#8222](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8222)
> * fix(update): handle subdocument pre('validate') errors in update validation [#7187](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7187)
> * fix(subdocument): make subdocument#isModified use parent document's isModified [#8223](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8223)
> * docs(index): add favicon to home page [#8226](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8226)
> * docs: add schema options to API docs [#8012](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8012)
> * docs(middleware): add note about accessing the document being updated in pre('findOneAndUpdate') [#8218](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8218)
> * refactor: remove redundant code in ValidationError [#8244](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8244) [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
>
> 5.7.4 / 2019-10-09
> ==================
> * fix(schema): handle `required: null` and `required: undefined` as `required: false` [#8219](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8219)
> * fix(update): support updating array embedded discriminator props if discriminator key in $elemMatch [#8063](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8063)
> * fix(populate): allow accessing populate virtual prop underneath array when virtual defined on top level [#8198](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8198)
> * fix(model): support passing `options` to `Model.remove()` [#8211](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8211)
> * fix(document): handle `Document#set()` merge option when setting underneath single nested schema [#8201](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8201)
> * fix: use options constructor class for all schematypes [#8012](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8012)
>
> 5.7.3 / 2019-09-30
> ==================
> * fix: make CoreMongooseArray#includes() handle `fromIndex` parameter [#8203](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8203)
> * fix(update): cast right hand side of `$pull` as a query instead of an update for document arrays [#8166](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8166)
> * fix(populate): handle virtual populate of an embedded discriminator nested path [#8173](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8173)
> * docs(validation): remove deprecated `isAsync` from validation docs in favor of emphasizing promises [#8184](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8184)
> * docs(documents): add overwriting section [#8178](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8178)
> * docs(promises): add note about queries being thenable [#8110](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8110)
> * perf: avoid update validators going into Mixed types [#8192](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8192) [birdofpreyru](https://github.com/birdofpreyru)
> * refactor: remove async as a prod dependency [#8073](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8073)
>
> 5.7.2 / 2019-09-23
> ==================
> * fix(mongoose): support `mongoose.set('autoIndex', false)` [#8158](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8158)
> * fix(discriminator): support `tiedValue` parameter for embedded discriminators analagous to top-level discriminators [#8164](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8164)
> * fix(query): handle `toConstructor()` with entries-style sort syntax [#8159](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8159)
> * fix(populate): avoid converting mixed paths into arrays if populating an object path under `Mixed` [#8157](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8157)
> ... (truncated)
Commits
- [`5656b4e`](https://github.com/Automattic/mongoose/commit/5656b4e224d3834e5c6447026972948575f86411) chore: release 5.7.6
- [`fab4f5d`](https://github.com/Automattic/mongoose/commit/fab4f5d80e8b701b6a4f3a86e7976a9588c897cd) test(schema): fix tests on node v4 and v5
- [`29c5f1a`](https://github.com/Automattic/mongoose/commit/29c5f1a5be732dacee506c85d2e0cb3804eb432b) fix(options): add missing minlength and maxlength to SchemaStringOptions
- [`a81211d`](https://github.com/Automattic/mongoose/commit/a81211de24c045a29b1df9ffba288608ee57f32b) fix(populate): add document array subpaths to parent doc `populated()` when c...
- [`4e900eb`](https://github.com/Automattic/mongoose/commit/4e900eb32ec43a333e1e819dd70c8bc4647603fd) test(populate): repro [#8247](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8247)
- [`d69ab22`](https://github.com/Automattic/mongoose/commit/d69ab22c140e0e32efceee5b4a8d6efbe12c9d77) fix(document): support calling `Document` constructor directly in Node.js
- [`9b986f5`](https://github.com/Automattic/mongoose/commit/9b986f5cf1aeac6b371200e23bc2172cefcd9e65) test(document): repro [#8237](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8237)
- [`e5f8875`](https://github.com/Automattic/mongoose/commit/e5f88752b7609a494d2c9b7f3e620317634c20d2) chore: add bonus.ca to opencollective sponsors
- [`25b6798`](https://github.com/Automattic/mongoose/commit/25b679851663af7bd70a5a3b4cd4f08f7085380f) fix(populate): make `ArraySubdocument#populated()` return a value when the pa...
- [`8ddfc0a`](https://github.com/Automattic/mongoose/commit/8ddfc0a563049370ee8e3adb5a8ea3841037da28) test(populate): repro [#8247](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8247)
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/4.13.19...5.7.6)
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/victordibia/cardsorter/network/alerts).
Bumps mongoose from 4.13.19 to 5.7.6.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.7.6 / 2019-10-21 > ================== > * fix: upgrade mongodb driver -> 3.3.3 to fix issue with failing to connect to a replica set if one member is down [#8209](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8209) > * fix(document): fix TypeError when setting a single nested subdoc with timestamps [#8251](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8251) > * fix(cursor): fix issue with long-running `eachAsync()` cursor [#8249](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8249) [#8235](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8235) > * fix(connection): ensure repeated `close` events from useUnifiedTopology don't disconnect Mongoose from replica set [#8224](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8224) > * fix(document): support calling `Document` constructor directly in Node.js [#8237](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8237) > * fix(populate): add document array subpaths to parent doc `populated()` when calling `DocumentArray#push()` [#8247](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8247) > * fix(options): add missing minlength and maxlength to SchemaStringOptions [#8256](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8256) > * docs: add documentarraypath to API docs, including DocumentArrayPath#discriminator() [#8164](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8164) > * docs(schematypes): add a section about the `type` property [#8227](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8227) > * docs(api): fix Connection.close return param [#8258](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8258) [gosuhiman](https://github.com/gosuhiman) > * docs: update link to broken image on home page [#8253](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8253) [krosenk729](https://github.com/krosenk729) > > 5.7.5 / 2019-10-14 > ================== > * fix(query): delete top-level `_bsontype` property in queries to prevent silent empty queries [#8222](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8222) > * fix(update): handle subdocument pre('validate') errors in update validation [#7187](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7187) > * fix(subdocument): make subdocument#isModified use parent document's isModified [#8223](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8223) > * docs(index): add favicon to home page [#8226](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8226) > * docs: add schema options to API docs [#8012](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8012) > * docs(middleware): add note about accessing the document being updated in pre('findOneAndUpdate') [#8218](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8218) > * refactor: remove redundant code in ValidationError [#8244](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8244) [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez) > > 5.7.4 / 2019-10-09 > ================== > * fix(schema): handle `required: null` and `required: undefined` as `required: false` [#8219](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8219) > * fix(update): support updating array embedded discriminator props if discriminator key in $elemMatch [#8063](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8063) > * fix(populate): allow accessing populate virtual prop underneath array when virtual defined on top level [#8198](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8198) > * fix(model): support passing `options` to `Model.remove()` [#8211](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8211) > * fix(document): handle `Document#set()` merge option when setting underneath single nested schema [#8201](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8201) > * fix: use options constructor class for all schematypes [#8012](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8012) > > 5.7.3 / 2019-09-30 > ================== > * fix: make CoreMongooseArray#includes() handle `fromIndex` parameter [#8203](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8203) > * fix(update): cast right hand side of `$pull` as a query instead of an update for document arrays [#8166](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8166) > * fix(populate): handle virtual populate of an embedded discriminator nested path [#8173](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8173) > * docs(validation): remove deprecated `isAsync` from validation docs in favor of emphasizing promises [#8184](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8184) > * docs(documents): add overwriting section [#8178](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8178) > * docs(promises): add note about queries being thenable [#8110](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8110) > * perf: avoid update validators going into Mixed types [#8192](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8192) [birdofpreyru](https://github.com/birdofpreyru) > * refactor: remove async as a prod dependency [#8073](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8073) > > 5.7.2 / 2019-09-23 > ================== > * fix(mongoose): support `mongoose.set('autoIndex', false)` [#8158](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8158) > * fix(discriminator): support `tiedValue` parameter for embedded discriminators analagous to top-level discriminators [#8164](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8164) > * fix(query): handle `toConstructor()` with entries-style sort syntax [#8159](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8159) > * fix(populate): avoid converting mixed paths into arrays if populating an object path under `Mixed` [#8157](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8157) > ... (truncated)Commits
- [`5656b4e`](https://github.com/Automattic/mongoose/commit/5656b4e224d3834e5c6447026972948575f86411) chore: release 5.7.6 - [`fab4f5d`](https://github.com/Automattic/mongoose/commit/fab4f5d80e8b701b6a4f3a86e7976a9588c897cd) test(schema): fix tests on node v4 and v5 - [`29c5f1a`](https://github.com/Automattic/mongoose/commit/29c5f1a5be732dacee506c85d2e0cb3804eb432b) fix(options): add missing minlength and maxlength to SchemaStringOptions - [`a81211d`](https://github.com/Automattic/mongoose/commit/a81211de24c045a29b1df9ffba288608ee57f32b) fix(populate): add document array subpaths to parent doc `populated()` when c... - [`4e900eb`](https://github.com/Automattic/mongoose/commit/4e900eb32ec43a333e1e819dd70c8bc4647603fd) test(populate): repro [#8247](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8247) - [`d69ab22`](https://github.com/Automattic/mongoose/commit/d69ab22c140e0e32efceee5b4a8d6efbe12c9d77) fix(document): support calling `Document` constructor directly in Node.js - [`9b986f5`](https://github.com/Automattic/mongoose/commit/9b986f5cf1aeac6b371200e23bc2172cefcd9e65) test(document): repro [#8237](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8237) - [`e5f8875`](https://github.com/Automattic/mongoose/commit/e5f88752b7609a494d2c9b7f3e620317634c20d2) chore: add bonus.ca to opencollective sponsors - [`25b6798`](https://github.com/Automattic/mongoose/commit/25b679851663af7bd70a5a3b4cd4f08f7085380f) fix(populate): make `ArraySubdocument#populated()` return a value when the pa... - [`8ddfc0a`](https://github.com/Automattic/mongoose/commit/8ddfc0a563049370ee8e3adb5a8ea3841037da28) test(populate): repro [#8247](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8247) - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/4.13.19...5.7.6)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/victordibia/cardsorter/network/alerts).