chore: π€ update dependency prettier to v3.7.4 #711
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.2.5β3.7.4Release Notes
prettier/prettier (prettier)
v3.7.4Compare Source
diff
LWC: Avoid quote around interpolations (#β18383 by @βkovsu)
TypeScript: Fix comment inside union type gets duplicated (#β18393 by @βfisker)
TypeScript: Fix unstable comment print in union type comments (#β18395 by @βfisker)
v3.7.3Compare 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.2Compare Source
diff
JavaScript: Fix string print when switching quotes (#β18351 by @βfisker)
JavaScript: Preserve quote for embedded HTML attribute values (#β18352 by @βkovsu)
TypeScript: Fix comment in empty type literal (#β18364 by @βfisker)
v3.7.1Compare Source
diff
API: Fix performance regression in doc printer (#β18342 by @βfisker)
Prettier 3.7.1 can be very slow when formatting big files, the regression has been fixed.
v3.7.0Compare Source
diff
π Release Notes
v3.6.2Compare Source
diff
Markdown: Add missing blank line around code block (#β17675 by @βfisker)
v3.6.1Compare Source
diff
TypeScript: Allow const without initializer (#β17650, #β17654 by @βfisker)
Miscellaneous: Avoid closing files multiple times (#β17665 by @β43081j)
When reading a file to infer the interpreter from a shebang, we use the
n-readlineslibrary 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-readlinesdid not already closethem.
v3.6.0Compare Source
diff
π Release Notes
v3.5.3Compare Source
diff
Flow: Fix missing parentheses in
ConditionalTypeAnnotation(#β17196 by @βfisker)v3.5.2Compare Source
diff
Remove
module-synccondition (#β17156 by @βfisker)In Prettier 3.5.0, we added
module-synccondition topackage.json, so thatrequire("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 themodule-synccondition, sorequire("prettier")will still use the CommonJS version, we'll revisit untilrequire(ESM)feature is more stable.v3.5.1Compare 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
dockercomposeandgithub-actions-workflowlanguages in Visual Studio Code.v3.5.0Compare Source
diff
π Release Notes
v3.4.2Compare 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.
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)
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.
v3.4.1Compare Source
diff
Remove unnecessary parentheses around assignment in
v-on(#β16887 by @βfisker)v3.4.0Compare Source
diff
π Release Notes
v3.3.3Compare Source
diff
Add parentheses for nullish coalescing in ternary (#β16391 by @βcdignam-segment)
This change adds clarity to operator precedence.
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.
Support
@letdeclaration syntax (#β16474 by @βsosukesuzuki)Adds support for Angular v18
@letdeclaration syntax.Please see the following code example. The
@letdeclaration allows you to define local variables within the template: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.2Compare Source
diff
Fix handlebars path expressions starts with
@(#β16358 by @βPrinceyadav05)v3.3.1Compare Source
diff
Preserve empty lines in front matter (#β16347 by @βfisker)
Preserve explicit language in front matter (#β16348 by @βfisker)
Avoid line breaks in import attributes (#β16349 by @βfisker)
v3.3.0Compare Source
diff
π Release Notes
Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Enabled.
β» 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.
This PR was generated by Mend Renovate. View the repository job log.