Update dependency prettier to ~2.6.0 #5

Merged
niggl merged 2 commits from renovate/prettier-2.x into main 2022-04-13 18:23:48 +00:00

This PR contains the following updates:

Package Type Update Change
prettier (source) devDependencies minor ~2.2.1 -> ~2.6.0

Release Notes

prettier/prettier

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

v2.3.2

Compare Source

diff

Fix failure on dir with trailing slash (#​11000 by @​fisker)
$ ls
1.js  1.unknown

v2.3.1

Compare Source

$ prettier . -l
1.js
$ prettier ./ -l

error] No supported files were found in the directory: "./".

### [`v2.3.0`](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;230)

[Compare Source](https://github.com/prettier/prettier/compare/2.2.1...2.3.0)

[diff](https://github.com/prettier/prettier/compare/2.2.1...2.3.0)

🔗 [Release Notes](https://prettier.io/blog/2021/05/09/2.3.0.html)

</details>

---

### Configuration

📅 **Schedule**: 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, check this box.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [prettier](https://prettier.io) ([source](https://github.com/prettier/prettier)) | devDependencies | minor | [`~2.2.1` -> `~2.6.0`](https://renovatebot.com/diffs/npm/prettier/2.2.1/2.6.2) | --- ### Release Notes <details> <summary>prettier/prettier</summary> ### [`v2.6.2`](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;262) [Compare Source](https://github.com/prettier/prettier/compare/2.6.1...2.6.2) [diff](https://github.com/prettier/prettier/compare/2.6.1...2.6.2) ##### Fix LESS/SCSS format error ([#&#8203;12536](https://github.com/prettier/prettier/pull/12536) by [@&#8203;fisker](https://github.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://github.com/prettier/prettier/pull/12567) by [@&#8203;fisker](https://github.com/fisker), fixes in [`meriyah`](https://github.com/meriyah/meriyah/) by [@&#8203;3cp](https://github.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://github.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;261) [Compare Source](https://github.com/prettier/prettier/compare/2.6.0...2.6.1) [diff](https://github.com/prettier/prettier/compare/2.6.0...2.6.1) ##### Ignore `loglevel` when printing information ([#&#8203;12477](https://github.com/prettier/prettier/pull/12477) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```bash ``` ### [`v2.6.0`](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#Prettier-260) [Compare Source](https://github.com/prettier/prettier/compare/2.5.1...2.6.0) prettier --loglevel silent --find-config-path index.js ### [`v2.5.1`](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;251) [Compare Source](https://github.com/prettier/prettier/compare/2.5.0...2.5.1) [diff](https://github.com/prettier/prettier/compare/2.5.0...2.5.1) ##### Improve formatting for empty tuple types ([#&#8203;11884](https://github.com/prettier/prettier/pull/11884) by [@&#8203;sosukesuzuki](https://github.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://github.com/prettier/prettier/pull/11892) by [@&#8203;fisker](https://github.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://github.com/prettier/prettier/pull/11899) by [@&#8203;duailibe](https://github.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://github.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;250) [Compare Source](https://github.com/prettier/prettier/compare/2.4.1...2.5.0) [diff](https://github.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://github.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;241) [Compare Source](https://github.com/prettier/prettier/compare/2.4.0...2.4.1) [diff](https://github.com/prettier/prettier/compare/2.4.0...2.4.1) ##### Fix wildcard syntax in `@forward` ([#&#8203;11482](https://github.com/prettier/prettier/pull/11482)) ([#&#8203;11487](https://github.com/prettier/prettier/pull/11487) by [@&#8203;niksy](https://github.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://github.com/prettier/prettier/pull/11514) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki)) A new `--debug-print-ast` CLI flag for debugging. ### [`v2.4.0`](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;240) [Compare Source](https://github.com/prettier/prettier/compare/2.3.2...2.4.0) [diff](https://github.com/prettier/prettier/compare/2.3.2...2.4.0) 🔗 [Release Notes](https://prettier.io/blog/2021/09/09/2.4.0.html) ### [`v2.3.2`](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;232) [Compare Source](https://github.com/prettier/prettier/compare/2.3.1...2.3.2) [diff](https://github.com/prettier/prettier/compare/2.3.1...2.3.2) ##### Fix failure on dir with trailing slash ([#&#8203;11000](https://github.com/prettier/prettier/pull/11000) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```console $ ls 1.js 1.unknown ``` ### [`v2.3.1`](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#Prettier-231) [Compare Source](https://github.com/prettier/prettier/compare/2.3.0...2.3.1) $ prettier . -l 1.js $ prettier ./ -l \[error] No supported files were found in the directory: "./". ### [`v2.3.0`](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;230) [Compare Source](https://github.com/prettier/prettier/compare/2.2.1...2.3.0) [diff](https://github.com/prettier/prettier/compare/2.2.1...2.3.0) 🔗 [Release Notes](https://prettier.io/blog/2021/05/09/2.3.0.html) </details> --- ### Configuration 📅 **Schedule**: 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, check this box. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
odit_renovate added the
enhancement
priority:medium
status:review_needed
labels 2022-04-13 18:21:36 +00:00
odit_renovate added 1 commit 2022-04-13 18:21:37 +00:00
continuous-integration/drone/push Build is passing Details
8abd89d0d1
Update dependency prettier to ~2.6.0
odit_renovate requested review from niggl 2022-04-13 18:21:38 +00:00
odit_renovate requested review from philipp 2022-04-13 18:21:38 +00:00
niggl added 1 commit 2022-04-13 18:23:40 +00:00
continuous-integration/drone/push Build is passing Details
4d287c3d1a
Merge branch 'main' into renovate/prettier-2.x
niggl merged commit 01a5031895 into main 2022-04-13 18:23:48 +00:00
niggl deleted branch renovate/prettier-2.x 2022-04-13 18:23:48 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kauft.es/linkylinky-dashboard#5
No description provided.