Skip to content

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

Open
danielhammerl wants to merge 1 commit into
masterfrom
renovate/prettier-3.x-lockfile
Open

chore(deps): update dependency prettier to v3.6.2#135
danielhammerl wants to merge 1 commit into
masterfrom
renovate/prettier-3.x-lockfile

Conversation

@danielhammerl

@danielhammerl danielhammerl commented Nov 26, 2024

Copy link
Copy Markdown
Member

This PR contains the following updates:

Package Type Update Change
prettier (source) devDependencies minor 3.3.3 -> 3.6.2

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

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


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 has been generated by Renovate Bot.

@danielhammerl danielhammerl changed the title chore(deps): update dependency prettier to v3.4.0 chore(deps): update dependency prettier to v3.4.1 Nov 27, 2024
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch 3 times, most recently from ff14aa0 to 54c390a Compare December 3, 2024 06:30
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch from 54c390a to 31071d0 Compare December 4, 2024 06:37
@danielhammerl danielhammerl changed the title chore(deps): update dependency prettier to v3.4.1 chore(deps): update dependency prettier to v3.4.2 Dec 5, 2024
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch 3 times, most recently from df8544b to b74f7b7 Compare December 7, 2024 06:39
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch from b74f7b7 to 1bafd66 Compare December 12, 2024 06:33
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch 2 times, most recently from c3bd768 to beb6a27 Compare January 7, 2025 06:33
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch 2 times, most recently from c4db250 to 70946da Compare January 17, 2025 06:36
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch 3 times, most recently from b88ca03 to e6a069e Compare January 28, 2025 06:41
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch from e6a069e to 347617e Compare February 4, 2025 06:34
@danielhammerl danielhammerl changed the title chore(deps): update dependency prettier to v3.4.2 chore(deps): update dependency prettier to v3.5.3 Mar 30, 2025
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch 3 times, most recently from 84cc489 to 2387577 Compare April 2, 2025 05:53
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch from 2387577 to eb9f970 Compare April 26, 2025 05:40
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch from eb9f970 to d78c003 Compare June 12, 2025 05:59
@danielhammerl danielhammerl force-pushed the renovate/prettier-3.x-lockfile branch from d78c003 to 86bbcce Compare August 14, 2025 05:50
@danielhammerl danielhammerl changed the title chore(deps): update dependency prettier to v3.5.3 chore(deps): update dependency prettier to v3.6.2 Aug 14, 2025
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.

1 participant