Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).*
> 5.3.0 / 2018-09-28
> ==================
> * feat(mongoose): support `mongoose.set('debug', WritableStream)` so you can pipe debug to stderr, file, or network [#7018](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7018)
> * feat(query): add useNestedStrict option [#6973](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6973) [#5144](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5144) [lineus](https://github.com/lineus)
> * feat(query): add getPopulatedPaths helper to Query.prototype [#6970](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6970) [#6677](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6677) [lineus](https://github.com/lineus)
> * feat(model): add `createCollection()` helper to make transactions easier [#6948](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6948) [#6711](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6711) [Fonger](https://github.com/Fonger)
> * feat(schema): add ability to do `schema.add(otherSchema)` to merge hooks, virtuals, etc. [#6897](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6897)
> * feat(query): add `orFail()` helper that throws an error if no documents match `filter` [#6841](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6841)
> * feat(mongoose): support global toObject and toJSON [#6815](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6815)
> * feat(connection): add deleteModel() to remove a model from a connection [#6813](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6813)
> * feat(mongoose): add top-level mongoose.ObjectId, mongoose.Decimal128 for easier schema declarations [#6760](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6760)
> * feat(aggregate+query): support for/await/of (async iterators) [#6737](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6737)
> * feat(mongoose): add global `now()` function that you can stub for testing timestamps [#6728](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6728)
> * feat(schema): support `schema.pre(RegExp, fn)` and `schema.post(RegExp, fn)` [#6680](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6680)
> * docs(query): add better docs for the `mongooseOptions()` function [#6677](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6677)
> * feat(mongoose): add support for global strict object [#6858](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6858)
> * feat(schema+mongoose): add autoCreate option to automatically create collections [#6489](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6489)
> * feat(update): update timestamps on nested subdocs when using `$set` [#4412](https://github-redirect.dependabot.com/Automattic/mongoose/issues/4412)
> * feat(query+schema): add query `remove` hook and ability to switch between query `remove` and document `remove` middleware [#3054](https://github-redirect.dependabot.com/Automattic/mongoose/issues/3054)
>
> 5.2.18 / 2018-09-27
> ===================
> * docs(migrating_to_5): add note about overwriting filter properties [#7030](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7030)
> * fix(query): correctly handle `select('+c')` if c is not in schema [#7017](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7017)
> * fix(document): check path exists before checking for required [#6974](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6974)
> * fix(document): retain user-defined key order on initial set with nested docs [#6944](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6944)
> * fix(populate): handle multiple localFields + foreignFields using `localField: function() {}` syntax [#5704](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5704)
>
> 5.2.17 / 2018-09-21
> ===================
> * docs(guide): clarify that Mongoose only increments versionKey on `save()` and add a workaround for `findOneAndUpdate()` [#7038](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7038)
> * fix(model): correctly handle `createIndex` option to `ensureIndexes()` [#7036](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7036) [#6922](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6922) [lineus](https://github.com/lineus)
> * docs(migrating_to_5): add a note about changing debug output from stderr to stdout [#7034](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7034) [#7018](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7018) [lineus](https://github.com/lineus)
> * fix(query): add `setUpdate()` to allow overwriting update without changing op [#7024](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7024) [#7012](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7012) [lineus](https://github.com/lineus)
> * fix(update): find top-level version key even if there are `$` operators in the update [#7003](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7003)
> * docs(model+query): explain which operators `count()` supports that `countDocuments()` doesn't [#6911](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6911)
Commits
- [`ab8a709`](https://github.com/Automattic/mongoose/commit/ab8a709ddef0c20062aabe9a968580b24d1e8596) chore: release 5.3.0
- [`d6de918`](https://github.com/Automattic/mongoose/commit/d6de91824a6201635b8e8e7dbac5362727985824) Merge pull request [#7065](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7065) from Automattic/5.3
- [`9b61bb0`](https://github.com/Automattic/mongoose/commit/9b61bb086e0e23599f49edf32ade4c26e03f6153) docs(query): add better docs for the `mongooseOptions()` function
- [`2ce5408`](https://github.com/Automattic/mongoose/commit/2ce540815c9e093f9fb11a9657aabea44b4b5566) feat(aggregate): support for/await/of for Model.aggregate()
- [`638047d`](https://github.com/Automattic/mongoose/commit/638047d294ff3bac278f90b888653eeaef94e00b) chore: ignore correct dir re: [#6737](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6737)
- [`57ecaf4`](https://github.com/Automattic/mongoose/commit/57ecaf481242fc4f2634ecab1857e0be2a646c53) feat(query): support stage 3 async iterators if Symbol.asyncIterator is set
- [`2350c3c`](https://github.com/Automattic/mongoose/commit/2350c3c23fe18fe08eec24950771680b84a0ea86) Merge branch 'master' into 5.3
- [`4f5ca54`](https://github.com/Automattic/mongoose/commit/4f5ca54ef363fd62254da31855afca6196aab08c) style: fix all lint warnings
- [`87d873f`](https://github.com/Automattic/mongoose/commit/87d873fb6e707bb63c2d9a531a04227a6a9d5d70) chore: now working on 5.2.19
- [`3084fcb`](https://github.com/Automattic/mongoose/commit/3084fcb5c8fe7a2f16b26d042318686808c3c9b5) chore: release 5.2.18
- Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.2.16...5.3.0)
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 cancel merge` will cancel a previously requested merge
- `@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
- `@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.
Bumps mongoose from 5.2.16 to 5.3.0.
Changelog
*Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.3.0 / 2018-09-28 > ================== > * feat(mongoose): support `mongoose.set('debug', WritableStream)` so you can pipe debug to stderr, file, or network [#7018](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7018) > * feat(query): add useNestedStrict option [#6973](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6973) [#5144](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5144) [lineus](https://github.com/lineus) > * feat(query): add getPopulatedPaths helper to Query.prototype [#6970](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6970) [#6677](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6677) [lineus](https://github.com/lineus) > * feat(model): add `createCollection()` helper to make transactions easier [#6948](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6948) [#6711](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6711) [Fonger](https://github.com/Fonger) > * feat(schema): add ability to do `schema.add(otherSchema)` to merge hooks, virtuals, etc. [#6897](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6897) > * feat(query): add `orFail()` helper that throws an error if no documents match `filter` [#6841](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6841) > * feat(mongoose): support global toObject and toJSON [#6815](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6815) > * feat(connection): add deleteModel() to remove a model from a connection [#6813](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6813) > * feat(mongoose): add top-level mongoose.ObjectId, mongoose.Decimal128 for easier schema declarations [#6760](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6760) > * feat(aggregate+query): support for/await/of (async iterators) [#6737](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6737) > * feat(mongoose): add global `now()` function that you can stub for testing timestamps [#6728](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6728) > * feat(schema): support `schema.pre(RegExp, fn)` and `schema.post(RegExp, fn)` [#6680](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6680) > * docs(query): add better docs for the `mongooseOptions()` function [#6677](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6677) > * feat(mongoose): add support for global strict object [#6858](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6858) > * feat(schema+mongoose): add autoCreate option to automatically create collections [#6489](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6489) > * feat(update): update timestamps on nested subdocs when using `$set` [#4412](https://github-redirect.dependabot.com/Automattic/mongoose/issues/4412) > * feat(query+schema): add query `remove` hook and ability to switch between query `remove` and document `remove` middleware [#3054](https://github-redirect.dependabot.com/Automattic/mongoose/issues/3054) > > 5.2.18 / 2018-09-27 > =================== > * docs(migrating_to_5): add note about overwriting filter properties [#7030](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7030) > * fix(query): correctly handle `select('+c')` if c is not in schema [#7017](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7017) > * fix(document): check path exists before checking for required [#6974](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6974) > * fix(document): retain user-defined key order on initial set with nested docs [#6944](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6944) > * fix(populate): handle multiple localFields + foreignFields using `localField: function() {}` syntax [#5704](https://github-redirect.dependabot.com/Automattic/mongoose/issues/5704) > > 5.2.17 / 2018-09-21 > =================== > * docs(guide): clarify that Mongoose only increments versionKey on `save()` and add a workaround for `findOneAndUpdate()` [#7038](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7038) > * fix(model): correctly handle `createIndex` option to `ensureIndexes()` [#7036](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7036) [#6922](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6922) [lineus](https://github.com/lineus) > * docs(migrating_to_5): add a note about changing debug output from stderr to stdout [#7034](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7034) [#7018](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7018) [lineus](https://github.com/lineus) > * fix(query): add `setUpdate()` to allow overwriting update without changing op [#7024](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7024) [#7012](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7012) [lineus](https://github.com/lineus) > * fix(update): find top-level version key even if there are `$` operators in the update [#7003](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7003) > * docs(model+query): explain which operators `count()` supports that `countDocuments()` doesn't [#6911](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6911)Commits
- [`ab8a709`](https://github.com/Automattic/mongoose/commit/ab8a709ddef0c20062aabe9a968580b24d1e8596) chore: release 5.3.0 - [`d6de918`](https://github.com/Automattic/mongoose/commit/d6de91824a6201635b8e8e7dbac5362727985824) Merge pull request [#7065](https://github-redirect.dependabot.com/Automattic/mongoose/issues/7065) from Automattic/5.3 - [`9b61bb0`](https://github.com/Automattic/mongoose/commit/9b61bb086e0e23599f49edf32ade4c26e03f6153) docs(query): add better docs for the `mongooseOptions()` function - [`2ce5408`](https://github.com/Automattic/mongoose/commit/2ce540815c9e093f9fb11a9657aabea44b4b5566) feat(aggregate): support for/await/of for Model.aggregate() - [`638047d`](https://github.com/Automattic/mongoose/commit/638047d294ff3bac278f90b888653eeaef94e00b) chore: ignore correct dir re: [#6737](https://github-redirect.dependabot.com/Automattic/mongoose/issues/6737) - [`57ecaf4`](https://github.com/Automattic/mongoose/commit/57ecaf481242fc4f2634ecab1857e0be2a646c53) feat(query): support stage 3 async iterators if Symbol.asyncIterator is set - [`2350c3c`](https://github.com/Automattic/mongoose/commit/2350c3c23fe18fe08eec24950771680b84a0ea86) Merge branch 'master' into 5.3 - [`4f5ca54`](https://github.com/Automattic/mongoose/commit/4f5ca54ef363fd62254da31855afca6196aab08c) style: fix all lint warnings - [`87d873f`](https://github.com/Automattic/mongoose/commit/87d873fb6e707bb63c2d9a531a04227a6a9d5d70) chore: now working on 5.2.19 - [`3084fcb`](https://github.com/Automattic/mongoose/commit/3084fcb5c8fe7a2f16b26d042318686808c3c9b5) chore: release 5.2.18 - Additional commits viewable in [compare view](https://github.com/Automattic/mongoose/compare/5.2.16...5.3.0)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 cancel merge` will cancel a previously requested merge - `@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 - `@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.