Skip to content

chore(deps): update dependency prettier to v3.6.2 #492

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: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 8, 2025

This PR contains the following updates:

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

Release Notes

prettier/prettier (prettier)

v3.6.2

Compare Source

diff

Markdown: Add missing blank line around code block (#​17675 by @​fisker)
<!-- Input -->
1. Some text, and code block below, with newline after code block

   ```yaml
   ---
   foo: bar
   ```

   1. Another
   2. List

<!-- Prettier 3.6.1 -->
1. Some text, and code block below, with newline after code block

   ```yaml
   ---
   foo: bar
   ```
   1. Another
   2. List

<!-- Prettier 3.6.2 -->
1. Some text, and code block below, with newline after code block

   ```yaml
   ---
   foo: bar
   ```

   1. Another
   2. List

v3.6.1

Compare Source

diff

TypeScript: Allow const without initializer (#​17650, #​17654 by @​fisker)
// Input
export const version: string;

// Prettier 3.6.0 (--parser=babel-ts)
SyntaxError: Unexpected token (1:21)
> 1 | export const version: string;
    |                     ^

// Prettier 3.6.0 (--parser=oxc-ts)
SyntaxError: Missing initializer in const declaration (1:14)
> 1 | export const version: string;
    |              ^^^^^^^^^^^^^^^

// Prettier 3.6.1
export const version: string;
Miscellaneous: Avoid closing files multiple times (#​17665 by @​43081j)

When reading a file to infer the interpreter from a shebang, we use the
n-readlines library to read the first line in order to get the shebang.

This library closes files when it reaches EOF, and we later try close the same
files again. We now close files only if n-readlines did not already close
them.

v3.6.0

Compare Source

diff

🔗 Release Notes

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.

v3.3.2

Compare Source

diff

Fix handlebars path expressions starts with @ (#​16358 by @​Princeyadav05)
{{! Input }}
<div>{{@&#8203;x.y.z}}</div>

{{! Prettier 3.3.1 }}
<div>{{@&#8203;x}}</div>

{{! Prettier 3.3.2 }}
<div>{{@&#8203;x.y.z}}</div>

v3.3.1

Compare Source

diff

Preserve empty lines in front matter (#​16347 by @​fisker)
<!-- Input -->
---
foo:
  - bar1

  - bar2

  - bar3
---
Markdown

<!-- Prettier 3.3.0 -->

---
foo:
  - bar1
  - bar2
  - bar3
---

Markdown

<!-- Prettier 3.3.1 -->
---
foo:
  - bar1

  - bar2

  - bar3
---

Markdown
Preserve explicit language in front matter (#​16348 by @​fisker)
<!-- Input -->
---yaml
title: Hello
slug: home
---

<!-- Prettier 3.3.0 -->
---
title: Hello
slug: home
---

<!-- Prettier 3.3.1 -->
---yaml
title: Hello
slug: home
---
Avoid line breaks in import attributes (#​16349 by @​fisker)
// Input
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };

// Prettier 3.3.0
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type:
  "json" };

// Prettier 3.3.1
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };

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

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

Copy link

cloudflare-workers-and-pages bot commented Feb 8, 2025

Deploying sos24-client with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9fa3884
Status: ✅  Deploy successful!
Preview URL: https://2eeec86b.sos24-client.pages.dev
Branch Preview URL: https://renovate-prettier-3-x-lockfi.sos24-client.pages.dev

View logs

Copy link

cloudflare-workers-and-pages bot commented Feb 8, 2025

Deploying sos24-client-storybook with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9fa3884
Status: ✅  Deploy successful!
Preview URL: https://9d571503.sos24-client-storybook.pages.dev
Branch Preview URL: https://renovate-prettier-3-x-lockfi.sos24-client-storybook.pages.dev

View logs

@renovate renovate bot changed the title Update dependency prettier to v3.4.2 Update dependency prettier to v3.5.0 Feb 9, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 909c2c9 to 314a62f Compare February 9, 2025 14:46
@renovate renovate bot changed the title Update dependency prettier to v3.5.0 Update dependency prettier to v3.5.1 Feb 13, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 314a62f to 5fe1c66 Compare February 13, 2025 16:23
@renovate renovate bot changed the title Update dependency prettier to v3.5.1 Update dependency prettier to v3.5.2 Feb 22, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 5fe1c66 to 1d7ebc9 Compare February 22, 2025 05:50
Copy link

github-actions bot commented Feb 22, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 3.59% 511 / 14224
🔵 Statements 3.59% 511 / 14224
🔵 Functions 38.87% 131 / 337
🔵 Branches 59.81% 189 / 316
File CoverageNo changed files found.
Generated in workflow #1391 for commit 98b33b1 by the Vitest Coverage Report Action

@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 1d7ebc9 to 36c3180 Compare March 3, 2025 02:17
@renovate renovate bot changed the title Update dependency prettier to v3.5.2 Update dependency prettier to v3.5.3 Mar 3, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 36c3180 to b371621 Compare March 11, 2025 13:52
@github-actions github-actions bot requested a deployment to sos24-client (Preview) March 11, 2025 13:55 Abandoned
@renovate renovate bot changed the title Update dependency prettier to v3.5.3 chore(deps): update dependency prettier to v3.5.3 Mar 14, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from b371621 to ed9efc4 Compare March 17, 2025 12:28
@renovate renovate bot changed the title chore(deps): update dependency prettier to v3.5.3 Update dependency prettier to v3.5.3 Mar 20, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from ed9efc4 to 6c1630b Compare April 1, 2025 14:30
@renovate renovate bot changed the title Update dependency prettier to v3.5.3 chore(deps): update dependency prettier to v3.5.3 Apr 11, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 6c1630b to d8af3ae Compare April 18, 2025 20:02
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from d8af3ae to 9fa3884 Compare April 19, 2025 16:10
Copy link

cloudflare-workers-and-pages bot commented Apr 23, 2025

Deploying sos25-client with  Cloudflare Pages  Cloudflare Pages

Latest commit: 98b33b1
Status: ✅  Deploy successful!
Preview URL: https://091b3a1a.sos25-client.pages.dev
Branch Preview URL: https://renovate-prettier-3-x-lockfi.sos25-client.pages.dev

View logs

@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from b5583dd to ecdd54a Compare May 19, 2025 18:15
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from ecdd54a to a8e116c Compare May 28, 2025 07:56
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from a8e116c to 491dbdd Compare June 4, 2025 12:15
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 491dbdd to 90f4778 Compare June 22, 2025 12:35
@renovate renovate bot changed the title chore(deps): update dependency prettier to v3.5.3 chore(deps): update dependency prettier to v3.6.0 Jun 23, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 90f4778 to 4fb5e3a Compare June 23, 2025 05:06
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 4fb5e3a to 3d39173 Compare June 25, 2025 07:06
@renovate renovate bot changed the title chore(deps): update dependency prettier to v3.6.0 chore(deps): update dependency prettier to v3.6.1 Jun 25, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 3d39173 to bc45d9a Compare June 27, 2025 05:24
@renovate renovate bot changed the title chore(deps): update dependency prettier to v3.6.1 chore(deps): update dependency prettier to v3.6.2 Jun 27, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from bc45d9a to 98b33b1 Compare July 2, 2025 17:30
@renovate renovate bot force-pushed the renovate/prettier-3.x-lockfile branch from 98b33b1 to 62acf7b Compare August 3, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants