Skip to content

chore(deps): update dependency prettier to v3.8.1#269

Open
smartway-bot[bot] wants to merge 1 commit intomainfrom
renovate/prettier-3.x
Open

chore(deps): update dependency prettier to v3.8.1#269
smartway-bot[bot] wants to merge 1 commit intomainfrom
renovate/prettier-3.x

Conversation

@smartway-bot
Copy link

@smartway-bot smartway-bot bot commented Jul 30, 2024

This PR contains the following updates:

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

Release Notes

prettier/prettier (prettier)

v3.8.1

Compare Source

diff

Include available printers in plugin type declarations (#​18706 by @​porada)
// Input
import * as prettierPluginEstree from "prettier/plugins/estree";

// Prettier 3.8.0
// Property 'printers' does not exist on type 'typeof import("prettier/plugins/estree")'. ts(2339)
prettierPluginEstree.printers.estree; //=> any

// Prettier 3.8.1
prettierPluginEstree.printers.estree; //=> Printer
prettierPluginEstree.printers["estree-json"]; //=> Printer

v3.8.0

Compare Source

diff

🔗 Release Notes

v3.7.4

Compare Source

diff

LWC: Avoid quote around interpolations (#​18383 by @​kovsu)
<!-- Input -->
<div foo={bar}>   </div>

<!-- Prettier 3.7.3 (--embedded-language-formatting off) -->
<div foo="{bar}"></div>

<!-- Prettier 3.7.4 (--embedded-language-formatting off) -->
<div foo={bar}></div>
TypeScript: Fix comment inside union type gets duplicated (#​18393 by @​fisker)
// Input
type Foo = (/** comment */ a | b) | c;

// Prettier 3.7.3
type Foo = /** comment */ (/** comment */ a | b) | c;

// Prettier 3.7.4
type Foo = /** comment */ (a | b) | c;
TypeScript: Fix unstable comment print in union type comments (#​18395 by @​fisker)
// Input
type X = (A | B) & (
  // comment
  A | B
);

// Prettier 3.7.3 (first format)
type X = (A | B) &
  (// comment
  A | B);

// Prettier 3.7.3 (second format)
type X = (
  | A
  | B // comment
) &
  (A | B);

// Prettier 3.7.4
type X = (A | B) &
  // comment
  (A | B);

v3.7.3

Compare Source

diff

API: Fix prettier.getFileInfo() change that breaks VSCode extension (#​18375 by @​fisker)

An internal refactor accidentally broke the VSCode extension plugin loading.

v3.7.2

Compare Source

diff

JavaScript: Fix string print when switching quotes (#​18351 by @​fisker)
// Input
console.log("A descriptor\\'s .kind must be \"method\" or \"field\".")

// Prettier 3.7.1
console.log('A descriptor\\'s .kind must be "method" or "field".');

// Prettier 3.7.2
console.log('A descriptor\\\'s .kind must be "method" or "field".');
JavaScript: Preserve quote for embedded HTML attribute values (#​18352 by @​kovsu)
// Input
const html = /* HTML */ ` <div class="${styles.banner}"></div> `;

// Prettier 3.7.1
const html = /* HTML */ ` <div class=${styles.banner}></div> `;

// Prettier 3.7.2
const html = /* HTML */ ` <div class="${styles.banner}"></div> `;
TypeScript: Fix comment in empty type literal (#​18364 by @​fisker)
// Input
export type XXX = {
  // tbd
};

// Prettier 3.7.1
export type XXX = { // tbd };

// Prettier 3.7.2
export type XXX = {
  // tbd
};

v3.7.1

Compare Source

diff

API: Fix performance regression in doc printer (#​18342 by @​fisker)

Prettier 3.7.0 can be very slow when formatting big files, the regression has been fixed.

v3.7.0

Compare Source

diff

🔗 Release Notes

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

diff

Flow: Fix missing parentheses in ConditionalTypeAnnotation (#​17196 by @​fisker)
// Input
type T<U> = 'a' | ('b' extends U ? 'c' : empty);
type T<U> = 'a' & ('b' extends U ? 'c' : empty);

// Prettier 3.5.2
type T<U> = "a" | "b" extends U ? "c" : empty;
type T<U> = "a" & "b" extends U ? "c" : empty;

// Prettier 3.5.3
type T<U> = "a" | ("b" extends U ? "c" : empty);
type T<U> = "a" & ("b" extends U ? "c" : empty);

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 - Between 12:00 AM and 06:59 AM, only on Monday ( * 0-6 * * 1 ) (UTC), 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 has been generated by Renovate Bot.

@smartway-bot smartway-bot bot added the dependencies Pull requests that update a dependency file label Jul 30, 2024
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 2760d88 to 2cbf936 Compare December 3, 2024 05:01
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.3.3 chore(deps): update dependency prettier to v3.4.0 Dec 3, 2024
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 2cbf936 to ce6ca88 Compare December 3, 2024 14:03
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.4.0 chore(deps): update dependency prettier to v3.4.1 Dec 3, 2024
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from ce6ca88 to 21d2da6 Compare December 11, 2024 08:02
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.4.1 chore(deps): update dependency prettier to v3.4.2 Dec 11, 2024
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 21d2da6 to 608c5c4 Compare February 16, 2025 12:00
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.4.2 chore(deps): update dependency prettier to v3.5.0 Feb 16, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 608c5c4 to a78227c Compare February 20, 2025 14:00
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.5.0 chore(deps): update dependency prettier to v3.5.1 Feb 20, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from a78227c to b185d63 Compare March 1, 2025 05:00
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.5.1 chore(deps): update dependency prettier to v3.5.2 Mar 1, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from b185d63 to e28bb62 Compare March 10, 2025 01:58
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.5.2 chore(deps): update dependency prettier to v3.5.3 Mar 10, 2025
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.5.3 chore(deps): update dependency prettier to v3.5.3 - autoclosed Mar 17, 2025
@smartway-bot smartway-bot bot closed this Mar 17, 2025
@smartway-bot smartway-bot bot deleted the renovate/prettier-3.x branch March 17, 2025 08:53
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.5.3 - autoclosed chore(deps): update dependency prettier to v3.5.3 Mar 24, 2025
@smartway-bot smartway-bot bot reopened this Mar 24, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from e28bb62 to 6b144b3 Compare May 20, 2025 13:00
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 6b144b3 to a54b675 Compare June 30, 2025 02:58
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.5.3 chore(deps): update dependency prettier to v3.6.0 Jun 30, 2025
@github-actions
Copy link

🛡️ The security scan result : Repo and Config

@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from a54b675 to 68c49a6 Compare July 2, 2025 07:00
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.6.0 chore(deps): update dependency prettier to v3.6.1 Jul 2, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 68c49a6 to 3ecf528 Compare July 4, 2025 02:57
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.6.1 chore(deps): update dependency prettier to v3.6.2 Jul 4, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 3ecf528 to 717a6c2 Compare September 17, 2025 13:16
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 717a6c2 to 6df1d89 Compare December 4, 2025 09:09
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.6.2 chore(deps): update dependency prettier to v3.7.0 Dec 4, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 6df1d89 to 0cc345b Compare December 4, 2025 12:04
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.7.0 chore(deps): update dependency prettier to v3.7.1 Dec 4, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 0cc345b to a106f1f Compare December 5, 2025 21:07
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.7.1 chore(deps): update dependency prettier to v3.7.2 Dec 5, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from a106f1f to cffb5bb Compare December 6, 2025 18:06
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.7.2 chore(deps): update dependency prettier to v3.7.3 Dec 6, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from cffb5bb to 086f3da Compare December 10, 2025 05:00
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.7.3 chore(deps): update dependency prettier to v3.7.4 Dec 10, 2025
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from 086f3da to fe5c7f4 Compare January 21, 2026 23:59
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.7.4 chore(deps): update dependency prettier to v3.8.0 Jan 21, 2026
@smartway-bot smartway-bot bot force-pushed the renovate/prettier-3.x branch from fe5c7f4 to 562ab7f Compare January 28, 2026 18:04
@smartway-bot smartway-bot bot changed the title chore(deps): update dependency prettier to v3.8.0 chore(deps): update dependency prettier to v3.8.1 Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants