Automattic/mongoose
### [`v5.4.21`](https://togithub.com/Automattic/mongoose/blob/master/History.md#5421--2019-04-02)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/5.4.20...5.4.21)
===================
- fix(updateValidators): run update validators correctly on Decimal128 paths [#7561](https://togithub.com/Automattic/mongoose/issues/7561)
- fix(update): cast array filters in nested doc arrays correctly [#7603](https://togithub.com/Automattic/mongoose/issues/7603)
- fix(document): allow .get() + .set() with aliased paths [#7592](https://togithub.com/Automattic/mongoose/issues/7592)
- fix(document): ensure custom getters on single nested subdocs don't get persisted if toObject.getters = true [#7601](https://togithub.com/Automattic/mongoose/issues/7601)
- fix(document): support setting subdoc path to subdoc copied using object rest `{...doc}` [#7645](https://togithub.com/Automattic/mongoose/issues/7645)
- docs(schema): correct out-of-date list of reserved words [#7593](https://togithub.com/Automattic/mongoose/issues/7593)
- docs(model+query): add link to update results docs and examples of using results of updateOne(), etc. [#7582](https://togithub.com/Automattic/mongoose/issues/7582)
- docs: use atomic as opposed to $atomic consistently [#7649](https://togithub.com/Automattic/mongoose/issues/7649) [720degreeLotus](https://togithub.com/720degreeLotus)
### [`v5.4.20`](https://togithub.com/Automattic/mongoose/blob/master/History.md#5420--2019-03-25)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/5.4.19...5.4.20)
===================
- docs(tutorials): add tutorial about `lean()` [#7640](https://togithub.com/Automattic/mongoose/issues/7640)
- fix(discriminator): fix wrong modelName being used as value to partialFilterExpression index [#7635](https://togithub.com/Automattic/mongoose/issues/7635) [#7634](https://togithub.com/Automattic/mongoose/issues/7634) [egorovli](https://togithub.com/egorovli)
- fix(document): allow setters to modify `this` when overwriting single nested subdoc [#7585](https://togithub.com/Automattic/mongoose/issues/7585)
- fix(populate): handle count option correctly with multiple docs [#7573](https://togithub.com/Automattic/mongoose/issues/7573)
- fix(date): support declaring min/max validators as functions [#7600](https://togithub.com/Automattic/mongoose/issues/7600) [ChienDevIT](https://togithub.com/ChienDevIT)
- fix(discriminator): avoid projecting in embedded discriminator if only auto-selected path is discriminator key [#7574](https://togithub.com/Automattic/mongoose/issues/7574)
- fix(discriminator): use discriminator model when using `new BaseModel()` with discriminator key [#7586](https://togithub.com/Automattic/mongoose/issues/7586)
- fix(timestamps): avoid throwing if doc array has timestamps and array is undefined [#7625](https://togithub.com/Automattic/mongoose/issues/7625) [serg33v](https://togithub.com/serg33v)
- docs(document): explain DocumentNotFoundError in save() docs [#7580](https://togithub.com/Automattic/mongoose/issues/7580)
- docs(query): fix .all() param type and add example [#7612](https://togithub.com/Automattic/mongoose/issues/7612) [720degreeLotus](https://togithub.com/720degreeLotus)
- docs: add useNewUrlParser to mongoose.connect for some pages [#7615](https://togithub.com/Automattic/mongoose/issues/7615) [YC](https://togithub.com/YC)
### [`v5.4.19`](https://togithub.com/Automattic/mongoose/blob/master/History.md#5419--2019-03-11)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/5.4.18...5.4.19)
===================
- fix(mongoose): ensure virtuals set on subdocs in global plugins get applied [#7592](https://togithub.com/Automattic/mongoose/issues/7592)
- docs(tutorials): add "Working With Dates" tutorial [#7597](https://togithub.com/Automattic/mongoose/issues/7597)
- docs(guide): clarify that versioning only affects array fields [#7555](https://togithub.com/Automattic/mongoose/issues/7555)
- docs(model): list out all bulkWrite() options [#7550](https://togithub.com/Automattic/mongoose/issues/7550)
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot. View repository job log here.
This PR contains the following updates:
5.4.18
->5.4.21
Release Notes
Automattic/mongoose
### [`v5.4.21`](https://togithub.com/Automattic/mongoose/blob/master/History.md#5421--2019-04-02) [Compare Source](https://togithub.com/Automattic/mongoose/compare/5.4.20...5.4.21) =================== - fix(updateValidators): run update validators correctly on Decimal128 paths [#7561](https://togithub.com/Automattic/mongoose/issues/7561) - fix(update): cast array filters in nested doc arrays correctly [#7603](https://togithub.com/Automattic/mongoose/issues/7603) - fix(document): allow .get() + .set() with aliased paths [#7592](https://togithub.com/Automattic/mongoose/issues/7592) - fix(document): ensure custom getters on single nested subdocs don't get persisted if toObject.getters = true [#7601](https://togithub.com/Automattic/mongoose/issues/7601) - fix(document): support setting subdoc path to subdoc copied using object rest `{...doc}` [#7645](https://togithub.com/Automattic/mongoose/issues/7645) - docs(schema): correct out-of-date list of reserved words [#7593](https://togithub.com/Automattic/mongoose/issues/7593) - docs(model+query): add link to update results docs and examples of using results of updateOne(), etc. [#7582](https://togithub.com/Automattic/mongoose/issues/7582) - docs: use atomic as opposed to $atomic consistently [#7649](https://togithub.com/Automattic/mongoose/issues/7649) [720degreeLotus](https://togithub.com/720degreeLotus) ### [`v5.4.20`](https://togithub.com/Automattic/mongoose/blob/master/History.md#5420--2019-03-25) [Compare Source](https://togithub.com/Automattic/mongoose/compare/5.4.19...5.4.20) =================== - docs(tutorials): add tutorial about `lean()` [#7640](https://togithub.com/Automattic/mongoose/issues/7640) - fix(discriminator): fix wrong modelName being used as value to partialFilterExpression index [#7635](https://togithub.com/Automattic/mongoose/issues/7635) [#7634](https://togithub.com/Automattic/mongoose/issues/7634) [egorovli](https://togithub.com/egorovli) - fix(document): allow setters to modify `this` when overwriting single nested subdoc [#7585](https://togithub.com/Automattic/mongoose/issues/7585) - fix(populate): handle count option correctly with multiple docs [#7573](https://togithub.com/Automattic/mongoose/issues/7573) - fix(date): support declaring min/max validators as functions [#7600](https://togithub.com/Automattic/mongoose/issues/7600) [ChienDevIT](https://togithub.com/ChienDevIT) - fix(discriminator): avoid projecting in embedded discriminator if only auto-selected path is discriminator key [#7574](https://togithub.com/Automattic/mongoose/issues/7574) - fix(discriminator): use discriminator model when using `new BaseModel()` with discriminator key [#7586](https://togithub.com/Automattic/mongoose/issues/7586) - fix(timestamps): avoid throwing if doc array has timestamps and array is undefined [#7625](https://togithub.com/Automattic/mongoose/issues/7625) [serg33v](https://togithub.com/serg33v) - docs(document): explain DocumentNotFoundError in save() docs [#7580](https://togithub.com/Automattic/mongoose/issues/7580) - docs(query): fix .all() param type and add example [#7612](https://togithub.com/Automattic/mongoose/issues/7612) [720degreeLotus](https://togithub.com/720degreeLotus) - docs: add useNewUrlParser to mongoose.connect for some pages [#7615](https://togithub.com/Automattic/mongoose/issues/7615) [YC](https://togithub.com/YC) ### [`v5.4.19`](https://togithub.com/Automattic/mongoose/blob/master/History.md#5419--2019-03-11) [Compare Source](https://togithub.com/Automattic/mongoose/compare/5.4.18...5.4.19) =================== - fix(mongoose): ensure virtuals set on subdocs in global plugins get applied [#7592](https://togithub.com/Automattic/mongoose/issues/7592) - docs(tutorials): add "Working With Dates" tutorial [#7597](https://togithub.com/Automattic/mongoose/issues/7597) - docs(guide): clarify that versioning only affects array fields [#7555](https://togithub.com/Automattic/mongoose/issues/7555) - docs(model): list out all bulkWrite() options [#7550](https://togithub.com/Automattic/mongoose/issues/7550)Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.