Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.7.11 / 2019-11-14
> ===================
> * fix: update mongodb driver -> 3.3.4 [#8276](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8276)
> * fix(model): throw readable error when casting bulkWrite update without a 'filter' or 'update' [#8332](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8332) [#8331](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8331) [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
> * fix(connection): bubble up connected/disconnected events with unified topology [#8338](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8338) [#8337](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8337)
> * fix(model): delete $versionError after saving [#8326](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8326) [#8048](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8048) [Fonger](https://github.com/Fonger)
> * test(model): add test for issue [#8040](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8040) [#8341](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8341) [Fonger](https://github.com/Fonger)
>
> 5.7.10 / 2019-11-11
> ===================
> * perf(cursor): remove unnecessary `setTimeout()` in `eachAsync()`, 4x speedup in basic benchmarks [#8310](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8310)
> * docs(README): re-order sections for better readability [#8321](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8321) [dandv](https://github.com/dandv)
> * chore: make npm test not hard-code file paths [#8322](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8322) [stieg](https://github.com/stieg)
>
> 5.7.9 / 2019-11-08
> ==================
> * fix(schema): support setting schema path to an instance of SchemaTypeOptions to fix integration with mongoose-i18n-localize [#8297](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8297) [#8292](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8292)
> * fix(populate): make `retainNullValues` set array element to `null` if foreign doc with that id was not found [#8293](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8293)
> * fix(document): support getter setting virtual on manually populated doc when calling toJSON() [#8295](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8295)
> * fix(model): allow objects with `toBSON()` to make it to `save()` [#8299](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8299)
>
> 5.7.8 / 2019-11-04
> ==================
> * fix(document): allow manually populating path within document array [#8273](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8273)
> * fix(populate): update top-level `populated()` when updating document array with populated subpaths [#8265](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8265)
> * fix(cursor): throw error when using aggregation cursor as async iterator [#8280](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8280)
> * fix(schema): retain `_id: false` in schema after nesting in another schema [#8274](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8274)
> * fix(document): make Document class an event emitter to support defining documents without models in node [#8272](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8272)
> * docs: document return types for `.discriminator()` [#8287](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8287)
> * docs(connection): add note about exporting schemas, not models, in multi connection paradigm [#8275](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8275)
> * docs: clarify that transforms defined in `toObject()` options are applied to subdocs [#8260](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8260)
>
> 5.7.7 / 2019-10-24
> ==================
> * fix(populate): make populate virtual consistently an empty array if local field is only empty arrays [#8230](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8230)
> * fix(query): allow findOne(objectid) and find(objectid) [#8268](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8268)
>
> 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)
> ... (truncated)
Commits
- [`9970a6f`](https://github.com/Automattic/mongoose/commit/9970a6f21693a90c8c7c2d2c4adc58ff735de677) chore: release 5.7.11
- [`e268572`](https://github.com/Automattic/mongoose/commit/e268572478ffebd430ee4354f1c76bd39bfd4b9c) Merge pull request [#8341](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8341) from Fonger/fix/memory-leak
- [`e5c6ded`](https://github.com/Automattic/mongoose/commit/e5c6ded7996953b4fe146e6ce9a75041a7849509) test(connection): fix tests re: [#8337](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8337)
- [`0c0833a`](https://github.com/Automattic/mongoose/commit/0c0833a33de28c40eb56387b87b71d6437d8e413) test(model): add test for issue [#8040](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8040) re: [#8048](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8048) [#8326](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8326)
- [`4ec852d`](https://github.com/Automattic/mongoose/commit/4ec852d28817e01f3119b2eb04618adc6d79e90e) fix(connection): bubble up connected/disconnected events with unified topology
- [`98facde`](https://github.com/Automattic/mongoose/commit/98facdeba87bf2580657df1600d27537e2816705) Merge pull request [#8332](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8332) from AbdelrahmanHafez/master
- [`c900645`](https://github.com/Automattic/mongoose/commit/c900645c3669b10cd6dc40bb53d8f205c176b437) Merge pull request [#8326](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8326) from Fonger/patch-5
- [`91ea10e`](https://github.com/Automattic/mongoose/commit/91ea10e0a509a8732723e3806db87d860e707b99) fix: upgrade to mongodb driver 3.3.4
- [`a91dc93`](https://github.com/Automattic/mongoose/commit/a91dc93a3750d024899ac8b3a56a9d2b8f682759) Add test for [#8331](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8331)
- [`6c1dcb2`](https://github.com/Automattic/mongoose/commit/6c1dcb28cc6eb528a3710f64fe3cc95ea7e628ff) Fixes [#8331](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8331)
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.7.5...5.7.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.
If all status checks pass Dependabot will automatically merge this pull request.
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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
⚠️ Dependabot won't automerge this PR as it didn't detect CI on it ⚠️
You have automerging enabled for this repo but Dependabot didn't detect any CI statuses or checks. You can disable automerging on this repo from here.
Bumps mongoose from 5.7.5 to 5.7.11.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.7.11 / 2019-11-14 > =================== > * fix: update mongodb driver -> 3.3.4 [#8276](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8276) > * fix(model): throw readable error when casting bulkWrite update without a 'filter' or 'update' [#8332](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8332) [#8331](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8331) [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez) > * fix(connection): bubble up connected/disconnected events with unified topology [#8338](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8338) [#8337](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8337) > * fix(model): delete $versionError after saving [#8326](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8326) [#8048](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8048) [Fonger](https://github.com/Fonger) > * test(model): add test for issue [#8040](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8040) [#8341](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8341) [Fonger](https://github.com/Fonger) > > 5.7.10 / 2019-11-11 > =================== > * perf(cursor): remove unnecessary `setTimeout()` in `eachAsync()`, 4x speedup in basic benchmarks [#8310](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8310) > * docs(README): re-order sections for better readability [#8321](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8321) [dandv](https://github.com/dandv) > * chore: make npm test not hard-code file paths [#8322](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8322) [stieg](https://github.com/stieg) > > 5.7.9 / 2019-11-08 > ================== > * fix(schema): support setting schema path to an instance of SchemaTypeOptions to fix integration with mongoose-i18n-localize [#8297](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8297) [#8292](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8292) > * fix(populate): make `retainNullValues` set array element to `null` if foreign doc with that id was not found [#8293](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8293) > * fix(document): support getter setting virtual on manually populated doc when calling toJSON() [#8295](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8295) > * fix(model): allow objects with `toBSON()` to make it to `save()` [#8299](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8299) > > 5.7.8 / 2019-11-04 > ================== > * fix(document): allow manually populating path within document array [#8273](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8273) > * fix(populate): update top-level `populated()` when updating document array with populated subpaths [#8265](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8265) > * fix(cursor): throw error when using aggregation cursor as async iterator [#8280](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8280) > * fix(schema): retain `_id: false` in schema after nesting in another schema [#8274](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8274) > * fix(document): make Document class an event emitter to support defining documents without models in node [#8272](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8272) > * docs: document return types for `.discriminator()` [#8287](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8287) > * docs(connection): add note about exporting schemas, not models, in multi connection paradigm [#8275](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8275) > * docs: clarify that transforms defined in `toObject()` options are applied to subdocs [#8260](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8260) > > 5.7.7 / 2019-10-24 > ================== > * fix(populate): make populate virtual consistently an empty array if local field is only empty arrays [#8230](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8230) > * fix(query): allow findOne(objectid) and find(objectid) [#8268](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8268) > > 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) > ... (truncated)Commits
- [`9970a6f`](https://github.com/Automattic/mongoose/commit/9970a6f21693a90c8c7c2d2c4adc58ff735de677) chore: release 5.7.11 - [`e268572`](https://github.com/Automattic/mongoose/commit/e268572478ffebd430ee4354f1c76bd39bfd4b9c) Merge pull request [#8341](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8341) from Fonger/fix/memory-leak - [`e5c6ded`](https://github.com/Automattic/mongoose/commit/e5c6ded7996953b4fe146e6ce9a75041a7849509) test(connection): fix tests re: [#8337](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8337) - [`0c0833a`](https://github.com/Automattic/mongoose/commit/0c0833a33de28c40eb56387b87b71d6437d8e413) test(model): add test for issue [#8040](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8040) re: [#8048](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8048) [#8326](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8326) - [`4ec852d`](https://github.com/Automattic/mongoose/commit/4ec852d28817e01f3119b2eb04618adc6d79e90e) fix(connection): bubble up connected/disconnected events with unified topology - [`98facde`](https://github.com/Automattic/mongoose/commit/98facdeba87bf2580657df1600d27537e2816705) Merge pull request [#8332](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8332) from AbdelrahmanHafez/master - [`c900645`](https://github.com/Automattic/mongoose/commit/c900645c3669b10cd6dc40bb53d8f205c176b437) Merge pull request [#8326](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8326) from Fonger/patch-5 - [`91ea10e`](https://github.com/Automattic/mongoose/commit/91ea10e0a509a8732723e3806db87d860e707b99) fix: upgrade to mongodb driver 3.3.4 - [`a91dc93`](https://github.com/Automattic/mongoose/commit/a91dc93a3750d024899ac8b3a56a9d2b8f682759) Add test for [#8331](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8331) - [`6c1dcb2`](https://github.com/Automattic/mongoose/commit/6c1dcb28cc6eb528a3710f64fe3cc95ea7e628ff) Fixes [#8331](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8331) - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.7.5...5.7.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
.If all status checks pass Dependabot will automatically merge this pull request.
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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
⚠️ Dependabot won't automerge this PR as it didn't detect CI on it ⚠️
You have automerging enabled for this repo but Dependabot didn't detect any CI statuses or checks. You can disable automerging on this repo from here.