Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.2.2 / 2018-07-08
> ==================
> * fix(model+query): add missing estimatedDocumentCount() function [#6697](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6697)
> * docs(faq): improve array-defaults section [#6695](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6695) [lineus](https://github.com/lineus)
> * docs(model): fix countDocuments() docs, bad copy/paste from count() docs [#6694](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6694) [#6643](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6643)
> * fix(connection): add `startSession()` helper to connection and mongoose global [#6689](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6689)
> * fix: upgrade mongodb driver -> 3.1.1 for countDocuments() fix [#6688](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6688) [#6666](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6666)
> * docs(compatibility): add MongoDB 4 range [#6685](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6685)
> * fix(populate): add ability to define refPath as a function [#6683](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6683) [lineus](https://github.com/lineus)
> * docs: add rudimentary transactions guide [#6672](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6672)
> * fix(update): make setDefaultsOnInsert handle nested subdoc updates with deeply nested defaults [#6665](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6665)
> * docs: use latest acquit-ignore to handle examples that start with acquit:ignore:start [#6657](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6657)
> * fix(validation): format `properties.message` as well as `message` [#6621](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6621)
>
> 5.2.1 / 2018-07-03
> ==================
> * fix(connection): allow setting the mongodb driver's useNewUrlParser option, default to false [#6656](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6656) [#6648](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6648) [#6647](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6647)
> * fix(model): only warn on custom _id index if index only has _id key [#6650](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6650)
>
> 5.2.0 / 2018-07-02
> ==================
> * feat(model): add `countDocuments()` [#6643](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6643)
> * feat(model): make ensureIndexes() fail if specifying an index on _id [#6605](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6605)
> * feat(mongoose): add `objectIdGetter` option to remove ObjectId.prototype._id [#6588](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6588)
> * feat: upgrade mongodb -> 3.1.0 for full MongoDB 4.0 support [#6579](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6579)
> * feat(query): support `runValidators` as a global option [#6578](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6578)
> * perf(schema): use WeakMap instead of array for schema stack [#6503](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6503)
> * feat(model): decorate unique discriminator indexes with partialFilterExpressions [#6347](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6347)
> * feat(model): add `syncIndexes()`, drops indexes that aren't in schema [#6281](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6281)
> * feat(document): add default getter/setter if virtual doesn't have one [#6262](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6262)
> * feat(discriminator): support discriminators on nested doc arrays [#6202](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6202)
> * feat(update): add `Query.prototype.set()` [#5770](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5770)
>
> 5.1.8 / 2018-07-02
> ==================
> * fix: don't throw TypeError if calling save() after original save() failed with push() [#6638](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6638) [evanhenke](https://github.com/evanhenke)
> * fix(query): add explain() helper and don't hydrate explain output [#6625](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6625)
> * docs(query): fix `setOptions()` lists [#6624](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6624)
> * docs: add geojson docs [#6607](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6607)
> * fix: bump mongodb -> 3.0.11 to avoid cyclic dependency error with retryWrites [#6109](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6109)
Commits
- [`a596859`](https://github.com/Automattic/mongoose/commit/a596859a7378df63b1ed3ce039b727e64ffbd52f) chore: release 5.2.2
- [`30e2e95`](https://github.com/Automattic/mongoose/commit/30e2e95981c605411d3d6bcd7f260d644b58f963) Merge pull request [#6695](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6695) from lineus/docs-6691
- [`672d459`](https://github.com/Automattic/mongoose/commit/672d45938af517316a1f6e8e8255103903787970) docs: add rudimentary transactions guide
- [`888d376`](https://github.com/Automattic/mongoose/commit/888d376acdc8e1f0e6239647874aa6ddf0ce35dc) fix(model+query): add missing estimatedDocumentCount() function
- [`516199b`](https://github.com/Automattic/mongoose/commit/516199bac72014902c623c5fb3e7f8b6ebfe49ea) add syntax highlighting on 2nd answer
- [`7ccee4d`](https://github.com/Automattic/mongoose/commit/7ccee4d43975a866c066c53bcd35d690ac4ff881) fix existing faq for array-defaults void 0 doesnt return null, add an example...
- [`8671d27`](https://github.com/Automattic/mongoose/commit/8671d2747037016bd9ccafcbd6ca894a28de17bb) docs(middleware): remove unnecessary version reference re: [#6679](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6679)
- [`bea998d`](https://github.com/Automattic/mongoose/commit/bea998d8b50801c5c34005c130035eb0189b6c33) Merge pull request [#6681](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6681) from AbdelrahmanHafez/master
- [`667143b`](https://github.com/Automattic/mongoose/commit/667143b45aadb65e055614d0ca472f38aabef37b) Merge branch 'master' of github.com:Automattic/mongoose
- [`edb91b2`](https://github.com/Automattic/mongoose/commit/edb91b2e922cff2bd919cb0a0698d0042f78f9d2) docs(model): fix countDocuments() docs, bad copy/paste from count() docs
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.1.7...5.2.2)
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 merge` will merge this PR after your CI passes on it
- `@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 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)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
⚠️ Dependabot is rebasing this PR ⚠️
Sit tight and this PR will be updated for you in a minute. If you make any changes yourself then they'll take precedence over the rebase (which will be abandoned).
Bumps mongoose from 5.1.7 to 5.2.2.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.2.2 / 2018-07-08 > ================== > * fix(model+query): add missing estimatedDocumentCount() function [#6697](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6697) > * docs(faq): improve array-defaults section [#6695](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6695) [lineus](https://github.com/lineus) > * docs(model): fix countDocuments() docs, bad copy/paste from count() docs [#6694](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6694) [#6643](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6643) > * fix(connection): add `startSession()` helper to connection and mongoose global [#6689](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6689) > * fix: upgrade mongodb driver -> 3.1.1 for countDocuments() fix [#6688](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6688) [#6666](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6666) > * docs(compatibility): add MongoDB 4 range [#6685](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6685) > * fix(populate): add ability to define refPath as a function [#6683](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6683) [lineus](https://github.com/lineus) > * docs: add rudimentary transactions guide [#6672](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6672) > * fix(update): make setDefaultsOnInsert handle nested subdoc updates with deeply nested defaults [#6665](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6665) > * docs: use latest acquit-ignore to handle examples that start with acquit:ignore:start [#6657](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6657) > * fix(validation): format `properties.message` as well as `message` [#6621](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6621) > > 5.2.1 / 2018-07-03 > ================== > * fix(connection): allow setting the mongodb driver's useNewUrlParser option, default to false [#6656](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6656) [#6648](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6648) [#6647](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6647) > * fix(model): only warn on custom _id index if index only has _id key [#6650](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6650) > > 5.2.0 / 2018-07-02 > ================== > * feat(model): add `countDocuments()` [#6643](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6643) > * feat(model): make ensureIndexes() fail if specifying an index on _id [#6605](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6605) > * feat(mongoose): add `objectIdGetter` option to remove ObjectId.prototype._id [#6588](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6588) > * feat: upgrade mongodb -> 3.1.0 for full MongoDB 4.0 support [#6579](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6579) > * feat(query): support `runValidators` as a global option [#6578](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6578) > * perf(schema): use WeakMap instead of array for schema stack [#6503](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6503) > * feat(model): decorate unique discriminator indexes with partialFilterExpressions [#6347](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6347) > * feat(model): add `syncIndexes()`, drops indexes that aren't in schema [#6281](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6281) > * feat(document): add default getter/setter if virtual doesn't have one [#6262](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6262) > * feat(discriminator): support discriminators on nested doc arrays [#6202](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6202) > * feat(update): add `Query.prototype.set()` [#5770](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5770) > > 5.1.8 / 2018-07-02 > ================== > * fix: don't throw TypeError if calling save() after original save() failed with push() [#6638](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6638) [evanhenke](https://github.com/evanhenke) > * fix(query): add explain() helper and don't hydrate explain output [#6625](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6625) > * docs(query): fix `setOptions()` lists [#6624](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6624) > * docs: add geojson docs [#6607](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6607) > * fix: bump mongodb -> 3.0.11 to avoid cyclic dependency error with retryWrites [#6109](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6109)Commits
- [`a596859`](https://github.com/Automattic/mongoose/commit/a596859a7378df63b1ed3ce039b727e64ffbd52f) chore: release 5.2.2 - [`30e2e95`](https://github.com/Automattic/mongoose/commit/30e2e95981c605411d3d6bcd7f260d644b58f963) Merge pull request [#6695](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6695) from lineus/docs-6691 - [`672d459`](https://github.com/Automattic/mongoose/commit/672d45938af517316a1f6e8e8255103903787970) docs: add rudimentary transactions guide - [`888d376`](https://github.com/Automattic/mongoose/commit/888d376acdc8e1f0e6239647874aa6ddf0ce35dc) fix(model+query): add missing estimatedDocumentCount() function - [`516199b`](https://github.com/Automattic/mongoose/commit/516199bac72014902c623c5fb3e7f8b6ebfe49ea) add syntax highlighting on 2nd answer - [`7ccee4d`](https://github.com/Automattic/mongoose/commit/7ccee4d43975a866c066c53bcd35d690ac4ff881) fix existing faq for array-defaults void 0 doesnt return null, add an example... - [`8671d27`](https://github.com/Automattic/mongoose/commit/8671d2747037016bd9ccafcbd6ca894a28de17bb) docs(middleware): remove unnecessary version reference re: [#6679](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6679) - [`bea998d`](https://github.com/Automattic/mongoose/commit/bea998d8b50801c5c34005c130035eb0189b6c33) Merge pull request [#6681](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6681) from AbdelrahmanHafez/master - [`667143b`](https://github.com/Automattic/mongoose/commit/667143b45aadb65e055614d0ca472f38aabef37b) Merge branch 'master' of github.com:Automattic/mongoose - [`edb91b2`](https://github.com/Automattic/mongoose/commit/edb91b2e922cff2bd919cb0a0698d0042f78f9d2) docs(model): fix countDocuments() docs, bad copy/paste from count() docs - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.1.7...5.2.2)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 merge` will merge this PR after your CI passes on it - `@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 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) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.
⚠️ Dependabot is rebasing this PR ⚠️
Sit tight and this PR will be updated for you in a minute. If you make any changes yourself then they'll take precedence over the rebase (which will be abandoned).