Automattic/mongoose
### [`v5.10.2`](https://togithub.com/Automattic/mongoose/blob/master/History.md#5102--2020-08-28)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/5.10.1...5.10.2)
===================
- fix(model): avoid uncaught error if `insertMany()` fails due to server selection error [#9355](https://togithub.com/Automattic/mongoose/issues/9355)
- fix(aggregate): automatically convert accumulator function options to strings [#9364](https://togithub.com/Automattic/mongoose/issues/9364)
- fix(document): handle `pull()` on a document array when `_id` is an alias [#9319](https://togithub.com/Automattic/mongoose/issues/9319)
- fix(queryhelpers): avoid path collision error when projecting in discriminator key with `.$` [#9361](https://togithub.com/Automattic/mongoose/issues/9361)
- fix: fix typo in error message thrown by unimplemented createIndex [#9367](https://togithub.com/Automattic/mongoose/issues/9367) [timhaley94](https://togithub.com/timhaley94)
- docs(plugins): note that plugins should be applied before you call `mongoose.model()` [#7723](https://togithub.com/Automattic/mongoose/issues/7723)
### [`v5.10.1`](https://togithub.com/Automattic/mongoose/blob/master/History.md#5101--2020-08-26)
[Compare Source](https://togithub.com/Automattic/mongoose/compare/5.10.0...5.10.1)
===================
- fix(mongoose): fix `.then()` is not a function error when calling `mongoose.connect()` multiple times [#9358](https://togithub.com/Automattic/mongoose/issues/9358) [#9335](https://togithub.com/Automattic/mongoose/issues/9335) [#9331](https://togithub.com/Automattic/mongoose/issues/9331)
- fix: allow calling `create()` after `bulkWrite()` by clearing internal casting context [#9350](https://togithub.com/Automattic/mongoose/issues/9350)
- fix(model): dont wipe out changes made while `save()` is in-flight [#9327](https://togithub.com/Automattic/mongoose/issues/9327)
- fix(populate): skip checking `refPath` if the path to populate is undefined [#9340](https://togithub.com/Automattic/mongoose/issues/9340)
- fix(document): allow accessing document values from function `default` on array [#9351](https://togithub.com/Automattic/mongoose/issues/9351)
- fix(model): skip applying init hook if called with `schema.pre(..., { document: false })` [#9316](https://togithub.com/Automattic/mongoose/issues/9316)
- fix(populate): support `retainNullValues` when setting `_id` to `false` for subdocument [#9337](https://togithub.com/Automattic/mongoose/issues/9337) [#9336](https://togithub.com/Automattic/mongoose/issues/9336) [FelixRe0](https://togithub.com/FelixRe0)
- docs: update connect example to avoid deprecation warnings [#9332](https://togithub.com/Automattic/mongoose/issues/9332) [moander](https://togithub.com/moander)
prettier/prettier
### [`v2.1.1`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#211)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.1.0...2.1.1)
[diff](https://togithub.com/prettier/prettier/compare/2.1.0...2.1.1)
##### Fix format on html with frontMatter ([#9043](https://togithub.com/prettier/prettier/pull/9043) by [@fisker](https://togithub.com/fisker))
```html
---
layout: foo
---
Test abc.
TypeError: Cannot read property 'end' of undefined
...
---
layout: foo
---
Test abc.
```
##### Fix broken format for `...infer T` ([#9044](https://togithub.com/prettier/prettier/pull/9044) by [@fisker](https://togithub.com/fisker))
```typescript
// Input
type Tail = T extends [infer U, ...infer R] ? R : never;
// Prettier stable
type Tail = T extends [infer U, ...(infer R)] ? R : never;
// Prettier master
type Tail = T extends [infer U, ...infer R] ? R : never;
```
##### Fix format on `style[lang="sass"]` ([#9051](https://togithub.com/prettier/prettier/pull/9051) by [@fisker](https://togithub.com/fisker))
```jsx
```
##### Fix self-closing blocks and blocks with `src` attribute format ([#9052](https://togithub.com/prettier/prettier/pull/9052), [#9055](https://togithub.com/prettier/prettier/pull/9055) by [@fisker](https://togithub.com/fisker))
```vue
```
### [`v2.1.0`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#210)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.0.5...2.1.0)
[diff](https://togithub.com/prettier/prettier/compare/2.0.5...2.1.0)
🔗 [Release Notes](https://prettier.io/blog/2020/08/24/2.1.0.html)
Renovate configuration
:date: Schedule: "before 3am on Monday" in timezone Europe/Paris.
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:ghost: Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
5.10.0
->5.10.2
2.0.5
->2.1.1
Release Notes
Automattic/mongoose
### [`v5.10.2`](https://togithub.com/Automattic/mongoose/blob/master/History.md#5102--2020-08-28) [Compare Source](https://togithub.com/Automattic/mongoose/compare/5.10.1...5.10.2) =================== - fix(model): avoid uncaught error if `insertMany()` fails due to server selection error [#9355](https://togithub.com/Automattic/mongoose/issues/9355) - fix(aggregate): automatically convert accumulator function options to strings [#9364](https://togithub.com/Automattic/mongoose/issues/9364) - fix(document): handle `pull()` on a document array when `_id` is an alias [#9319](https://togithub.com/Automattic/mongoose/issues/9319) - fix(queryhelpers): avoid path collision error when projecting in discriminator key with `.$` [#9361](https://togithub.com/Automattic/mongoose/issues/9361) - fix: fix typo in error message thrown by unimplemented createIndex [#9367](https://togithub.com/Automattic/mongoose/issues/9367) [timhaley94](https://togithub.com/timhaley94) - docs(plugins): note that plugins should be applied before you call `mongoose.model()` [#7723](https://togithub.com/Automattic/mongoose/issues/7723) ### [`v5.10.1`](https://togithub.com/Automattic/mongoose/blob/master/History.md#5101--2020-08-26) [Compare Source](https://togithub.com/Automattic/mongoose/compare/5.10.0...5.10.1) =================== - fix(mongoose): fix `.then()` is not a function error when calling `mongoose.connect()` multiple times [#9358](https://togithub.com/Automattic/mongoose/issues/9358) [#9335](https://togithub.com/Automattic/mongoose/issues/9335) [#9331](https://togithub.com/Automattic/mongoose/issues/9331) - fix: allow calling `create()` after `bulkWrite()` by clearing internal casting context [#9350](https://togithub.com/Automattic/mongoose/issues/9350) - fix(model): dont wipe out changes made while `save()` is in-flight [#9327](https://togithub.com/Automattic/mongoose/issues/9327) - fix(populate): skip checking `refPath` if the path to populate is undefined [#9340](https://togithub.com/Automattic/mongoose/issues/9340) - fix(document): allow accessing document values from function `default` on array [#9351](https://togithub.com/Automattic/mongoose/issues/9351) - fix(model): skip applying init hook if called with `schema.pre(..., { document: false })` [#9316](https://togithub.com/Automattic/mongoose/issues/9316) - fix(populate): support `retainNullValues` when setting `_id` to `false` for subdocument [#9337](https://togithub.com/Automattic/mongoose/issues/9337) [#9336](https://togithub.com/Automattic/mongoose/issues/9336) [FelixRe0](https://togithub.com/FelixRe0) - docs: update connect example to avoid deprecation warnings [#9332](https://togithub.com/Automattic/mongoose/issues/9332) [moander](https://togithub.com/moander)prettier/prettier
### [`v2.1.1`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#211) [Compare Source](https://togithub.com/prettier/prettier/compare/2.1.0...2.1.1) [diff](https://togithub.com/prettier/prettier/compare/2.1.0...2.1.1) ##### Fix format on html with frontMatter ([#9043](https://togithub.com/prettier/prettier/pull/9043) by [@fisker](https://togithub.com/fisker)) ```html --- layout: foo --- Test abc. TypeError: Cannot read property 'end' of undefined ... --- layout: foo --- Test abc. ``` ##### Fix broken format for `...infer T` ([#9044](https://togithub.com/prettier/prettier/pull/9044) by [@fisker](https://togithub.com/fisker)) ```typescript // Input type TailRenovate configuration
:date: Schedule: "before 3am on Monday" in timezone Europe/Paris.
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:ghost: Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by WhiteSource Renovate. View repository job log here.