Skip to content

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

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

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

Conversation

@smartway-bot
Copy link
Copy Markdown
Contributor

@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.3 age adoption passing confidence

Release Notes

prettier/prettier (prettier)

v3.8.3

Compare Source

diff

SCSS: Prevent trailing comma in if() function (#​18471 by @​kovsu)
// Input
$value: if(sass(false): 1; else: -1);

// Prettier 3.8.2
$value: if(
  sass(false): 1; else: -1,
);

// Prettier 3.8.3
$value: if(sass(false): 1; else: -1);

v3.8.2

Compare Source

diff

Angular: Support Angular v21.2 (#​18722, #​19034 by @​fisker)

Exhaustive typechecking with @default never;

<!-- Input -->
@&#8203;switch (foo) {
  @&#8203;case (1) {}
  @&#8203;default never;
}

<!-- Prettier 3.8.1 -->
SyntaxError: Incomplete block "default never". If you meant to write the @&#8203; character, you should use the "&#&#8203;64;" HTML entity instead. (3:3)

<!-- Prettier 3.8.2 -->
@&#8203;switch (foo) {
  @&#8203;case (1) {}
  @&#8203;default never;
}

arrow function and instanceof expressions.

<!-- Input -->
@&#8203;let fn = (a) =>        a?    1:2;

{{ fn ( a         instanceof b)}}

<!-- Prettier 3.8.1 -->
@&#8203;let fn = (a) =>        a?    1:2;

{{ fn ( a         instanceof b)}}

<!-- Prettier 3.8.2 -->
@&#8203;let fn = (a) => (a ? 1 : 2);

{{ fn(a instanceof b) }}

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
Copy Markdown

🛡️ 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
@smartway-bot smartway-bot Bot force-pushed the renovate/prettier-3.x branch from 562ab7f to f966848 Compare April 17, 2026 02:59
@smartway-bot smartway-bot Bot requested a review from a team as a code owner April 17, 2026 02:59
@smartway-bot smartway-bot Bot changed the title chore(deps): update dependency prettier to v3.8.1 chore(deps): update dependency prettier to v3.8.2 Apr 17, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 17, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1d5c9be9-0685-4e8d-af4e-798fade8a61d

📥 Commits

Reviewing files that changed from the base of the PR and between f966848 and dc87514.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json
✅ Files skipped from review due to trivial changes (1)
  • package.json

📝 Walkthrough

Walkthrough

The prettier devDependency version in package.json was updated from 3.2.5 to 3.8.3. No other dependencies, scripts, or exported entities were modified.

Changes

Cohort / File(s) Summary
Dependency Update
package.json
Updated prettier devDependency from version 3.2.5 to 3.8.3.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐇 A tiny bump, a tidy tweak,
Prettier hops from old to sleek,
3.2.5 to 3.8.3—hooray!
My code looks bright and neat today. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: updating the Prettier dependency version, matching the file-level change in package.json.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch renovate/prettier-3.x

Comment @coderabbitai help to get the list of available commands and usage tips.

@smartway-bot smartway-bot Bot force-pushed the renovate/prettier-3.x branch from f966848 to dc87514 Compare April 22, 2026 00:58
@smartway-bot smartway-bot Bot changed the title chore(deps): update dependency prettier to v3.8.2 chore(deps): update dependency prettier to v3.8.3 Apr 22, 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