From f63c20b487b3e612e63dfbfa7b32b7f26856dae7 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sun, 15 Dec 2024 02:34:13 +0000
Subject: [PATCH] Update dependency prettier to v3.4.2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
| datasource | package | from | to |
| ---------- | -------- | ----- | ----- |
| npm | prettier | 3.4.1 | 3.4.2 |
## [v3.4.2](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#342)
[diff](https://github.com/prettier/prettier/compare/3.4.1...3.4.2)
##### Treat U+30A0 & U+30FB in Katakana Block as CJK ([#16796](https://github.com/prettier/prettier/pull/16796) by [@tats-u](https://github.com/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.
```md
C言
語
・
C++
・
Go
・
Rust
C言語・ C++ ・ Go ・ Rust
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](https://github.com/prettier/prettier/pull/16891) by [@fisker](https://github.com/fisker))
```jsx
// Input
class A {
@decorator
/**
* The method description
*
*/
async method(foo: Foo, bar: Bar) {
console.log(foo);
}
}
// Prettier 3.4.1
class A {
@decorator
async /**
* The method description
*
*/
method(foo: Foo, bar: Bar) {
console.log(foo);
}
}
// Prettier 3.4.2
class A {
@decorator
/**
* The method description
*
*/
async method(foo: Foo, bar: Bar) {
console.log(foo);
}
}
```
##### Fix non-idempotent formatting ([#16899](https://github.com/prettier/prettier/pull/16899) by [@seiyab](https://github.com/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.
```jsx
// Input
foo
longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo
, abc
;
// Prettier 3.4.1 (first)
foo
longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo
, abc
;
// Prettier 3.4.1 (second)
foo
longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo
, abc
;
// Prettier 3.4.2
foo
longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo
, abc
;
```
---
package.json | 2 +-
pnpm-lock.yaml | 16 ++++++++--------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/package.json b/package.json
index 375869c..dc12917 100644
--- a/package.json
+++ b/package.json
@@ -47,7 +47,7 @@
"jest": "29.7.0",
"license-checker": "25.0.1",
"octokit": "4.0.2",
- "prettier": "3.4.1",
+ "prettier": "3.4.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"strong-mock": "~8.0.1",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 10b2d9f..3fbbe13 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -83,7 +83,7 @@ importers:
version: 3.0.2
eslint-plugin-prettier:
specifier: 5.2.1
- version: 5.2.1(eslint-config-prettier@9.1.0(eslint@8.23.1))(eslint@8.23.1)(prettier@3.4.1)
+ version: 5.2.1(eslint-config-prettier@9.1.0(eslint@8.23.1))(eslint@8.23.1)(prettier@3.4.2)
eslint-plugin-react:
specifier: 7.31.10
version: 7.31.10(eslint@8.23.1)
@@ -112,8 +112,8 @@ importers:
specifier: 4.0.2
version: 4.0.2
prettier:
- specifier: 3.4.1
- version: 3.4.1
+ specifier: 3.4.2
+ version: 3.4.2
strong-mock:
specifier: ~8.0.1
version: 8.0.1
@@ -3121,8 +3121,8 @@ packages:
resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==}
engines: {node: '>=6.0.0'}
- prettier@3.4.1:
- resolution: {integrity: sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==}
+ prettier@3.4.2:
+ resolution: {integrity: sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==}
engines: {node: '>=14'}
hasBin: true
@@ -6058,10 +6058,10 @@ snapshots:
eslint-plugin-local-rules@3.0.2: {}
- eslint-plugin-prettier@5.2.1(eslint-config-prettier@9.1.0(eslint@8.23.1))(eslint@8.23.1)(prettier@3.4.1):
+ eslint-plugin-prettier@5.2.1(eslint-config-prettier@9.1.0(eslint@8.23.1))(eslint@8.23.1)(prettier@3.4.2):
dependencies:
eslint: 8.23.1
- prettier: 3.4.1
+ prettier: 3.4.2
prettier-linter-helpers: 1.0.0
synckit: 0.9.1
optionalDependencies:
@@ -7558,7 +7558,7 @@ snapshots:
dependencies:
fast-diff: 1.3.0
- prettier@3.4.1: {}
+ prettier@3.4.2: {}
pretty-format@29.7.0:
dependencies: