chore(deps): update dependency prettier to v2.7.1 #55

Merged
renovate[bot] merged 1 commit from renovate/prettier-2.x into main 2022-08-01 19:47:56 +00:00
renovate[bot] commented 2022-08-01 19:42:30 +00:00 (Migrated from github.com)

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prettier (source) ^2.3.2 -> 2.7.1 age adoption passing confidence

Release Notes

prettier/prettier

v2.7.1

Compare Source

diff

Keep useful empty lines in description (#​13013 by @​chimurai)

v2.7.0

Compare Source

"""
First line
Second Line
"""
type Person {
name: String
}

v2.6.2

Compare Source

diff

Fix LESS/SCSS format error (#​12536 by @​fisker)
// Input
.background-gradient(@​cut) {
    background: linear-gradient(
        to right,
        @​white 0%,
        @​white (@​cut - 0.01%),
        @​portal-background @​cut,
        @​portal-background 100%
    );
}

// Prettier 2.6.1
TypeError: Cannot read properties of undefined (reading 'endOffset')

// Prettier 2.6.2
.background-gradient(@​cut) {
  background: linear-gradient(
    to right,
    @​white 0%,
    @​white (@​cut - 0.01%),
    @​portal-background @​cut,
    @​portal-background 100%
  );
}
Update meriyah to fix several bugs (#​12567 by @​fisker, fixes in meriyah by @​3cp)

Fixes bugs when parsing following valid code:

foo(await bar());
const regex = /.*/ms;
const element = <p>{/w/.test(s)}</p>;
class A extends B {
  #privateMethod() {
    super.method();
  }
}

v2.6.1

Compare Source

diff

Ignore loglevel when printing information (#​12477 by @​fisker)

v2.6.0

Compare Source

prettier --loglevel silent --find-config-path index.js

v2.5.1

Compare Source

diff

Improve formatting for empty tuple types (#​11884 by @​sosukesuzuki)
// Input
type Foo =
  Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends []
    ? Foo3
    : Foo4;

// Prettier 2.5.0
type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [

]
  ? Foo3
  : Foo4;

// Prettier 2.5.0 (tailingCommma = all)
// Invalid TypeScript code
type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [
  ,
]
  ? Foo3
  : Foo4;

// Prettier 2.5.1
type Foo =
  Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends []
    ? Foo3
    : Foo4;

Fix compatibility with Jest inline snapshot test (#​11892 by @​fisker)

A internal change in Prettier@v2.5.0 accidentally breaks the Jest inline snapshot test.

Support Glimmer's named blocks (#​11899 by @​duailibe)

Prettier already supported this feature, but it converted empty named blocks to self-closing, which is not supported by the Glimmer compiler.

See: Glimmer's named blocks.

// Input
<Component>
  <:named></:named>
</Component>

// Prettier 2.5.0
<Component>
  <:named />
</Component>

// Prettier 2.5.1
<Component>
  <:named></:named>
</Component>

v2.5.0

Compare Source

diff

🔗 Release Notes

v2.4.1

Compare Source

diff

Fix wildcard syntax in @forward (#​11482) (#​11487 by @​niksy)
// Input
@&#8203;forward "library" as btn-*;

// Prettier 2.4.0
@&#8203;forward "library" as btn- *;

// Prettier 2.4.1
@&#8203;forward "library" as btn-*;
Add new CLI option debug-print-ast (#​11514 by @​sosukesuzuki)

A new --debug-print-ast CLI flag for debugging.

v2.4.0

Compare Source

diff

🔗 Release Notes


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [prettier](https://prettier.io) ([source](https://togithub.com/prettier/prettier)) | [`^2.3.2` -> `2.7.1`](https://renovatebot.com/diffs/npm/prettier/2.3.2/2.7.1) | [![age](https://badges.renovateapi.com/packages/npm/prettier/2.7.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/prettier/2.7.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/prettier/2.7.1/compatibility-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/prettier/2.7.1/confidence-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>prettier/prettier</summary> ### [`v2.7.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#&#8203;271) [Compare Source](https://togithub.com/prettier/prettier/compare/2.7.0...2.7.1) [diff](https://togithub.com/prettier/prettier/compare/2.7.0...2.7.1) ##### Keep useful empty lines in description ([#&#8203;13013](https://togithub.com/prettier/prettier/pull/13013) by [@&#8203;chimurai](https://togithub.com/chimurai)) <!-- prettier-ignore --> ```graphql ``` ### [`v2.7.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#Prettier-270) [Compare Source](https://togithub.com/prettier/prettier/compare/2.6.2...2.7.0) """ First line Second Line """ type Person { name: String } ### [`v2.6.2`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#&#8203;262) [Compare Source](https://togithub.com/prettier/prettier/compare/2.6.1...2.6.2) [diff](https://togithub.com/prettier/prettier/compare/2.6.1...2.6.2) ##### Fix LESS/SCSS format error ([#&#8203;12536](https://togithub.com/prettier/prettier/pull/12536) by [@&#8203;fisker](https://togithub.com/fisker)) <!-- prettier-ignore --> ```less // Input .background-gradient(@&#8203;cut) { background: linear-gradient( to right, @&#8203;white 0%, @&#8203;white (@&#8203;cut - 0.01%), @&#8203;portal-background @&#8203;cut, @&#8203;portal-background 100% ); } // Prettier 2.6.1 TypeError: Cannot read properties of undefined (reading 'endOffset') // Prettier 2.6.2 .background-gradient(@&#8203;cut) { background: linear-gradient( to right, @&#8203;white 0%, @&#8203;white (@&#8203;cut - 0.01%), @&#8203;portal-background @&#8203;cut, @&#8203;portal-background 100% ); } ``` ##### Update `meriyah` to fix several bugs ([#&#8203;12567](https://togithub.com/prettier/prettier/pull/12567) by [@&#8203;fisker](https://togithub.com/fisker), fixes in [`meriyah`](https://togithub.com/meriyah/meriyah/) by [@&#8203;3cp](https://togithub.com/3cp)) Fixes bugs when parsing following valid code: ```js foo(await bar()); ``` ```js const regex = /.*/ms; ``` ```js const element = <p>{/w/.test(s)}</p>; ``` ```js class A extends B { #privateMethod() { super.method(); } } ``` ### [`v2.6.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#&#8203;261) [Compare Source](https://togithub.com/prettier/prettier/compare/2.6.0...2.6.1) [diff](https://togithub.com/prettier/prettier/compare/2.6.0...2.6.1) ##### Ignore `loglevel` when printing information ([#&#8203;12477](https://togithub.com/prettier/prettier/pull/12477) by [@&#8203;fisker](https://togithub.com/fisker)) <!-- prettier-ignore --> ```bash ``` ### [`v2.6.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#Prettier-260) [Compare Source](https://togithub.com/prettier/prettier/compare/2.5.1...2.6.0) prettier --loglevel silent --find-config-path index.js ### [`v2.5.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#&#8203;251) [Compare Source](https://togithub.com/prettier/prettier/compare/2.5.0...2.5.1) [diff](https://togithub.com/prettier/prettier/compare/2.5.0...2.5.1) ##### Improve formatting for empty tuple types ([#&#8203;11884](https://togithub.com/prettier/prettier/pull/11884) by [@&#8203;sosukesuzuki](https://togithub.com/sosukesuzuki)) <!-- prettier-ignore --> ```tsx // Input type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [] ? Foo3 : Foo4; // Prettier 2.5.0 type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [ ] ? Foo3 : Foo4; // Prettier 2.5.0 (tailingCommma = all) // Invalid TypeScript code type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [ , ] ? Foo3 : Foo4; // Prettier 2.5.1 type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [] ? Foo3 : Foo4; ``` ##### Fix compatibility with Jest inline snapshot test ([#&#8203;11892](https://togithub.com/prettier/prettier/pull/11892) by [@&#8203;fisker](https://togithub.com/fisker)) A internal change in Prettier@v2.5.0 accidentally breaks the Jest inline snapshot test. ##### Support Glimmer's named blocks ([#&#8203;11899](https://togithub.com/prettier/prettier/pull/11899) by [@&#8203;duailibe](https://togithub.com/duailibe)) Prettier already supported this feature, but it converted empty named blocks to self-closing, which is not supported by the Glimmer compiler. See: [Glimmer's named blocks](https://emberjs.github.io/rfcs/0460-yieldable-named-blocks.html). <!-- prettier-ignore --> ```hbs // Input <Component> <:named></:named> </Component> // Prettier 2.5.0 <Component> <:named /> </Component> // Prettier 2.5.1 <Component> <:named></:named> </Component> ``` ### [`v2.5.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#&#8203;250) [Compare Source](https://togithub.com/prettier/prettier/compare/2.4.1...2.5.0) [diff](https://togithub.com/prettier/prettier/compare/2.4.1...2.5.0) 🔗 [Release Notes](https://prettier.io/blog/2021/11/25/2.5.0.html) ### [`v2.4.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#&#8203;241) [Compare Source](https://togithub.com/prettier/prettier/compare/2.4.0...2.4.1) [diff](https://togithub.com/prettier/prettier/compare/2.4.0...2.4.1) ##### Fix wildcard syntax in `@forward` ([#&#8203;11482](https://togithub.com/prettier/prettier/pull/11482)) ([#&#8203;11487](https://togithub.com/prettier/prettier/pull/11487) by [@&#8203;niksy](https://togithub.com/niksy)) <!-- prettier-ignore --> ```scss // Input @&#8203;forward "library" as btn-*; // Prettier 2.4.0 @&#8203;forward "library" as btn- *; // Prettier 2.4.1 @&#8203;forward "library" as btn-*; ``` ##### Add new CLI option `debug-print-ast` ([#&#8203;11514](https://togithub.com/prettier/prettier/pull/11514) by [@&#8203;sosukesuzuki](https://togithub.com/sosukesuzuki)) A new `--debug-print-ast` CLI flag for debugging. ### [`v2.4.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#&#8203;240) [Compare Source](https://togithub.com/prettier/prettier/compare/2.3.2...2.4.0) [diff](https://togithub.com/prettier/prettier/compare/2.3.2...2.4.0) 🔗 [Release Notes](https://prettier.io/blog/2021/09/09/2.4.0.html) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/mcataford/rss-reader). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMzUuMSIsInVwZGF0ZWRJblZlciI6IjMyLjEzNS4xIn0=-->
github-actions[bot] commented 2022-08-01 19:47:27 +00:00 (Migrated from github.com)

👀 Branch deployed at Website Draft URL: https://62e82dca9428a61c71f905fd--sleepy-shaw-d8efec.netlify.app

:eyes: Branch deployed at Website Draft URL: https://62e82dca9428a61c71f905fd--sleepy-shaw-d8efec.netlify.app
mcataford (Migrated from github.com) approved these changes 2022-08-01 19:47:45 +00:00
Sign in to join this conversation.
No description provided.