Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency prettier to v3.4.2 #94

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jul 13, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prettier (source) 3.3.2 -> 3.4.2 age adoption passing confidence

Release Notes

prettier/prettier (prettier)

v3.4.2

Compare Source

diff

Treat U+30A0 & U+30FB in Katakana Block as CJK (#​16796 by @​tats-u)

Prettier doesn't treat U+30A0 & U+30FB as Japanese. U+30FB is commonly used in Japanese to represent the delimitation of first and last names of non-Japanese people or “and”. The following “C言語・C++・Go・Rust” means “C language & C++ & Go & Rust” in Japanese.

<!-- Input (--prose-wrap=never) -->

C言
語
・
C++
・
Go
・
Rust

<!-- Prettier 3.4.1 -->
C言語・ C++ ・ Go ・ Rust

<!-- Prettier 3.4.2 -->
C言語・C++・Go・Rust

U+30A0 can be used as the replacement of the - in non-Japanese names (e.g. “Saint-Saëns” (Charles Camille Saint-Saëns) can be represented as “サン゠サーンス” in Japanese), but substituted by ASCII hyphen (U+002D) or U+FF1D (full width hyphen) in many cases (e.g. “サン=サーンス” or “サン=サーンス”).

Fix comments print on class methods with decorators (#​16891 by @​fisker)
// Input
class A {
  @&#8203;decorator
  /** 
   * The method description
   *
  */
  async method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}

// Prettier 3.4.1
class A {
  @&#8203;decorator
  async /**
   * The method description
   *
   */
  method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}

// Prettier 3.4.2
class A {
  @&#8203;decorator
  /**
   * The method description
   *
   */
  async method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}
Fix non-idempotent formatting (#​16899 by @​seiyab)

This bug fix is not language-specific. You may see similar change in any languages. This fixes regression in 3.4.0 so change caused by it should yield same formatting as 3.3.3.

// Input
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

// Prettier 3.4.1 (first)
<div>
  foo
  <span>
    longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo
  </span>, abc
</div>;

// Prettier 3.4.1 (second)
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

// Prettier 3.4.2
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

v3.4.1

Compare Source

diff

Remove unnecessary parentheses around assignment in v-on (#​16887 by @​fisker)
<!-- Input -->
<template>
  <button @&#8203;click="foo += 2">Click</button>
</template>

<!-- Prettier 3.4.0 -->
<template>
  <button @&#8203;click="(foo += 2)">Click</button>
</template>

<!-- Prettier 3.4.1 -->
<template>
  <button @&#8203;click="foo += 2">Click</button>
</template>

v3.4.0

Compare Source

diff

🔗 Release Notes

v3.3.3

Compare Source

diff

Add parentheses for nullish coalescing in ternary (#​16391 by @​cdignam-segment)

This change adds clarity to operator precedence.

// Input
foo ? bar ?? foo : baz;
foo ?? bar ? a : b;
a ? b : foo ?? bar;

// Prettier 3.3.2
foo ? bar ?? foo : baz;
foo ?? bar ? a : b;
a ? b : foo ?? bar;

// Prettier 3.3.3
foo ? (bar ?? foo) : baz;
(foo ?? bar) ? a : b;
a ? b : (foo ?? bar);
Add parentheses for decorator expressions (#​16458 by @​y-schneider)

Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.

// Input
@&#8203;(foo`tagged template`)
class X {}

// Prettier 3.3.2
@&#8203;foo`tagged template`
class X {}

// Prettier 3.3.3
@&#8203;(foo`tagged template`)
class X {}
Support @let declaration syntax (#​16474 by @​sosukesuzuki)

Adds support for Angular v18 @let declaration syntax.

Please see the following code example. The @let declaration allows you to define local variables within the template:

@&#8203;let name = 'Frodo';

<h1>Dashboard for {{name}}</h1>
Hello, {{name}}

For more details, please refer to the excellent blog post by the Angular Team: Introducing @​let in Angular.

We also appreciate the Angular Team for kindly answering our questions to implement this feature.


Configuration

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

🚦 Automerge: Enabled.

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, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Jul 13, 2024
Copy link
Author

renovate bot commented Jul 13, 2024

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.


  • Branch has one or more failed status checks

@coveralls
Copy link

coveralls commented Jul 13, 2024

Coverage Status

coverage: 57.758%. remained the same
when pulling 02d6eb4 on renovate/prettier-3.x
into ec2465c on devel.

@renovate renovate bot force-pushed the renovate/prettier-3.x branch 6 times, most recently from 930188e to ffb16dc Compare July 22, 2024 04:24
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from ffb16dc to b07671a Compare August 3, 2024 13:38
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from b07671a to 1fdf2b0 Compare August 13, 2024 13:46
@renovate renovate bot force-pushed the renovate/prettier-3.x branch 2 times, most recently from 36f6c7f to 30c47bd Compare August 25, 2024 12:23
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 30c47bd to b2b1e87 Compare September 2, 2024 01:22
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from b2b1e87 to bf7e14f Compare September 20, 2024 17:17
@renovate renovate bot force-pushed the renovate/prettier-3.x branch 2 times, most recently from f4e878f to e72500b Compare November 6, 2024 15:31
@renovate renovate bot force-pushed the renovate/prettier-3.x branch 2 times, most recently from 1132f26 to 9a77185 Compare November 26, 2024 06:20
@renovate renovate bot changed the title chore(deps): update dependency prettier to v3.3.3 chore(deps): update dependency prettier to v3.4.0 Nov 26, 2024
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 9a77185 to 184607b Compare November 27, 2024 20:34
@renovate renovate bot changed the title chore(deps): update dependency prettier to v3.4.0 chore(deps): update dependency prettier to v3.4.1 Nov 27, 2024
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 184607b to 28031d6 Compare December 4, 2024 10:59
@renovate renovate bot changed the title chore(deps): update dependency prettier to v3.4.1 chore(deps): update dependency prettier to v3.4.2 Dec 4, 2024
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 28031d6 to 3218f47 Compare December 10, 2024 18:30
@renovate renovate bot force-pushed the renovate/prettier-3.x branch 2 times, most recently from fb77db5 to b634fc7 Compare December 28, 2024 15:57
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from b634fc7 to 02d6eb4 Compare January 5, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant