Skip to content

Update dependency prettier to v3.5.3 #143

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

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 20, 2024

This PR contains the following updates:

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

Release Notes

prettier/prettier (prettier)

v3.5.3

Compare Source

v3.5.2

Compare Source

diff

Remove module-sync condition (#​17156 by @​fisker)

In Prettier 3.5.0, we added module-sync condition to package.json, so that require("prettier") can use ESM version, but turns out it doesn't work if CommonJS and ESM plugins both imports builtin plugins. To solve this problem, we decide simply remove the module-sync condition, so require("prettier") will still use the CommonJS version, we'll revisit until require(ESM) feature is more stable.

v3.5.1

Compare Source

diff

Fix CLI crash when cache for old version exists (#​17100 by @​sosukesuzuki)

Prettier 3.5 uses a different cache format than previous versions, Prettier 3.5.0 crashes when reading existing cache file, Prettier 3.5.1 fixed the problem.

Support dockercompose and github-actions-workflow in VSCode (#​17101 by @​remcohaszing)

Prettier now supports the dockercompose and github-actions-workflow languages in Visual Studio Code.

v3.5.0

Compare Source

diff

🔗 Release Notes

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: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, 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.

@github-actions github-actions bot enabled auto-merge July 20, 2024 13:24
Copy link

socket-security bot commented Jul 20, 2024

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedprettier@​3.3.2 ⏵ 3.5.398 +110010092100

View full report

@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 678bad2 to c4c41e2 Compare July 22, 2024 19:08
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from c4c41e2 to 1bbbe6c Compare July 24, 2024 20:44
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 1bbbe6c to b0f5b9b Compare July 25, 2024 15:00
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from b0f5b9b to e13c2b6 Compare July 27, 2024 06:07
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from e13c2b6 to ef4c01b Compare July 29, 2024 19:19
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from ef4c01b to 1cf06c3 Compare July 30, 2024 01:13
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 1cf06c3 to eab93d2 Compare August 1, 2024 13:36
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from eab93d2 to c53f2a4 Compare August 2, 2024 19:57
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from c53f2a4 to b2fb22e Compare August 3, 2024 05:07
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from b2fb22e to 9f556ff Compare August 5, 2024 15:51
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 9f556ff to 3fefb38 Compare August 5, 2024 19:25
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 3fefb38 to eac1ceb Compare August 8, 2024 08:41
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 670d03f to 4e02a0d Compare March 7, 2025 19:33
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 4e02a0d to e97b193 Compare March 9, 2025 06:56
@renovate renovate bot changed the title Update dependency prettier to v3.5.2 Update dependency prettier to v3.5.3 Mar 10, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from e97b193 to e40fadd Compare March 10, 2025 02:25
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from e40fadd to 7dbb51b Compare March 15, 2025 06:31
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 7dbb51b to b3daaf1 Compare March 19, 2025 15:42
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from b3daaf1 to b42b685 Compare March 29, 2025 00:17
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from b42b685 to 08438dc Compare March 30, 2025 17:31
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 08438dc to 6a2417b Compare April 5, 2025 10:14
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 6a2417b to 6e42246 Compare April 12, 2025 11:51
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 6e42246 to f52527c Compare April 12, 2025 11:53
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from f52527c to 79b5ad3 Compare April 18, 2025 17:40
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 79b5ad3 to 3d0cbb2 Compare April 19, 2025 23:17
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 3d0cbb2 to 714c0ff Compare April 27, 2025 04:12
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 714c0ff to babd8dd Compare May 5, 2025 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants