Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 20, 2024

This PR contains the following updates:

Package Change Age Confidence
prettier (source) 3.3.2 -> 3.6.2 age 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.


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
@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 eac1ceb to 6f16e6a Compare August 10, 2024 08:26
@renovate renovate bot changed the title Update dependency prettier to v3.5.3 Update dependency prettier to v3.6.0 Jun 30, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 023c1ea to 2c6d663 Compare June 30, 2025 06:05
@renovate renovate bot changed the title Update dependency prettier to v3.6.0 Update dependency prettier to v3.6.2 Jul 12, 2025
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 2c6d663 to 6b24f69 Compare July 12, 2025 16:06
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 6b24f69 to c4d8b93 Compare July 12, 2025 16:10
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from c4d8b93 to bc2dd99 Compare July 12, 2025 16:13
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from bc2dd99 to 5b113cb Compare July 14, 2025 12:47
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 5b113cb to d61e516 Compare July 27, 2025 15:58
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from d61e516 to 40f0434 Compare July 27, 2025 16:02
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 40f0434 to 1958671 Compare July 27, 2025 16:06
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 1958671 to df6124d Compare August 4, 2025 23:13
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from df6124d to feb3456 Compare August 6, 2025 07:54
Copy link

socket-security bot commented Aug 6, 2025

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.6.299 +110010089100

View full report

@renovate renovate bot force-pushed the renovate/prettier-3.x branch from feb3456 to 69a8d9c Compare August 25, 2025 10:05
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 69a8d9c to 3b9de7a Compare August 27, 2025 17:30
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 3b9de7a to 2d5cbc0 Compare August 31, 2025 09:06
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