Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.7.13 / 2019-11-29
> ===================
> * fix: upgrade mongodb driver -> 3.3.5 [#8383](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8383)
> * fix(model): catch the error when insertMany fails to initialize the document [#8365](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8365) [#8363](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8363) [Fonger](https://github.com/Fonger)
> * fix(schema): add array.$, array.$.$ subpaths for nested arrays [#6405](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6405)
> * docs(error): add more detail about the ValidatorError class, including properties [#8346](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8346)
> * docs(connection): document `Connection#models` property [#8314](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8314)
>
> 5.7.12 / 2019-11-19
> ===================
> * fix: avoid throwing error if calling `push()` on a doc array with no parent [#8351](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8351) [#8317](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8317) [#8312](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8312) [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
> * fix(connection): only buffer for "open" events when calling connection helper while connecting [#8319](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8319)
> * fix(connection): pull default database from connection string if specified [#8355](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8355) [#8354](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8354) [zachazar](https://github.com/zachazar)
> * fix(populate+discriminator): handle populating document whose discriminator value is different from discriminator model name [#8324](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8324)
> * fix: add `mongoose.isValidObjectId()` function to test whether Mongoose can cast a value to an objectid [#3823](https://github-redirect.dependabot.com/Automattic/mongoose/issues/3823)
> * fix(model): support setting `excludeIndexes` as schema option for subdocs [#8343](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8343)
> * fix: add SchemaMapOptions class for options to map schematype [#8318](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8318)
> * docs(query): remove duplicate omitUndefined options [#8349](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8349) [mdumandag](https://github.com/mdumandag)
> * docs(schema): add Schema#paths docs to public API docs [#8340](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8340)
>
> 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)
> ... (truncated)
Commits
- [`44ad5d4`](https://github.com/Automattic/mongoose/commit/44ad5d432d51fc3047b349f783a6bf366efafea9) chore: release 5.7.13
- [`ca527f4`](https://github.com/Automattic/mongoose/commit/ca527f41783c016a5c992a7e4a0c751870dbdfe5) fix: use serverDescriptionChanged event to distinguish between timeout vs dis...
- [`9f0a9a9`](https://github.com/Automattic/mongoose/commit/9f0a9a985785fdf7826a7b20885b7e3f8b425719) chore: debug for [#8383](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8383)
- [`a792397`](https://github.com/Automattic/mongoose/commit/a7923971a81695012e5d9f27053dd4baabfeb9cb) style: fix lint
- [`02047ca`](https://github.com/Automattic/mongoose/commit/02047ca4ec569de0697666e0538b19c1019638ad) fix(connection): correctly bubble up timeout and disconnected events re: [#8383](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8383)
- [`e6616d7`](https://github.com/Automattic/mongoose/commit/e6616d7fc850beda97958eef8b3dd5ebc66379a6) test: fix one test re: [#8383](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8383)
- [`68cdc33`](https://github.com/Automattic/mongoose/commit/68cdc334b5aeda2c26f9333856ad5b445264586d) fix: upgrade mongodb driver -> 3.3.5
- [`51c6776`](https://github.com/Automattic/mongoose/commit/51c6776a9a67368cd2cb1cf170996912353ee204) refactor(schema): add array.$, array.$.$ subpaths for nested arrays
- [`cfbaf0f`](https://github.com/Automattic/mongoose/commit/cfbaf0f6d097916c99aa19caa68899f1edb31479) refactor: remove unnecessary code from fix for [#6398](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6398)
- [`a8bcc8e`](https://github.com/Automattic/mongoose/commit/a8bcc8e7cc3dce1c5d885009a73133bb70af2b8a) chore: add funding info
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.7.5...5.7.13)
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.13.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.7.13 / 2019-11-29 > =================== > * fix: upgrade mongodb driver -> 3.3.5 [#8383](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8383) > * fix(model): catch the error when insertMany fails to initialize the document [#8365](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8365) [#8363](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8363) [Fonger](https://github.com/Fonger) > * fix(schema): add array.$, array.$.$ subpaths for nested arrays [#6405](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6405) > * docs(error): add more detail about the ValidatorError class, including properties [#8346](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8346) > * docs(connection): document `Connection#models` property [#8314](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8314) > > 5.7.12 / 2019-11-19 > =================== > * fix: avoid throwing error if calling `push()` on a doc array with no parent [#8351](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8351) [#8317](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8317) [#8312](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8312) [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez) > * fix(connection): only buffer for "open" events when calling connection helper while connecting [#8319](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8319) > * fix(connection): pull default database from connection string if specified [#8355](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8355) [#8354](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8354) [zachazar](https://github.com/zachazar) > * fix(populate+discriminator): handle populating document whose discriminator value is different from discriminator model name [#8324](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8324) > * fix: add `mongoose.isValidObjectId()` function to test whether Mongoose can cast a value to an objectid [#3823](https://github-redirect.dependabot.com/Automattic/mongoose/issues/3823) > * fix(model): support setting `excludeIndexes` as schema option for subdocs [#8343](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8343) > * fix: add SchemaMapOptions class for options to map schematype [#8318](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8318) > * docs(query): remove duplicate omitUndefined options [#8349](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8349) [mdumandag](https://github.com/mdumandag) > * docs(schema): add Schema#paths docs to public API docs [#8340](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8340) > > 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) > ... (truncated)Commits
- [`44ad5d4`](https://github.com/Automattic/mongoose/commit/44ad5d432d51fc3047b349f783a6bf366efafea9) chore: release 5.7.13 - [`ca527f4`](https://github.com/Automattic/mongoose/commit/ca527f41783c016a5c992a7e4a0c751870dbdfe5) fix: use serverDescriptionChanged event to distinguish between timeout vs dis... - [`9f0a9a9`](https://github.com/Automattic/mongoose/commit/9f0a9a985785fdf7826a7b20885b7e3f8b425719) chore: debug for [#8383](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8383) - [`a792397`](https://github.com/Automattic/mongoose/commit/a7923971a81695012e5d9f27053dd4baabfeb9cb) style: fix lint - [`02047ca`](https://github.com/Automattic/mongoose/commit/02047ca4ec569de0697666e0538b19c1019638ad) fix(connection): correctly bubble up timeout and disconnected events re: [#8383](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8383) - [`e6616d7`](https://github.com/Automattic/mongoose/commit/e6616d7fc850beda97958eef8b3dd5ebc66379a6) test: fix one test re: [#8383](https://github-redirect.dependabot.com/Automattic/mongoose/issues/8383) - [`68cdc33`](https://github.com/Automattic/mongoose/commit/68cdc334b5aeda2c26f9333856ad5b445264586d) fix: upgrade mongodb driver -> 3.3.5 - [`51c6776`](https://github.com/Automattic/mongoose/commit/51c6776a9a67368cd2cb1cf170996912353ee204) refactor(schema): add array.$, array.$.$ subpaths for nested arrays - [`cfbaf0f`](https://github.com/Automattic/mongoose/commit/cfbaf0f6d097916c99aa19caa68899f1edb31479) refactor: remove unnecessary code from fix for [#6398](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6398) - [`a8bcc8e`](https://github.com/Automattic/mongoose/commit/a8bcc8e7cc3dce1c5d885009a73133bb70af2b8a) chore: add funding info - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.7.5...5.7.13)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.