-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix(deps): update prettier to v3 (major) #9623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
28c659f to
9c818c0
Compare
ef13ecb to
7163ecf
Compare
768f934 to
90d4e9b
Compare
434d986 to
495e1e6
Compare
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@graphql-codegen/visitor-plugin-common |
6.2.2-alpha-20251213083343-115d2f18c8b87a8a9f7fa54a0d103c717bf9d043 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-document-nodes |
5.0.7-alpha-20251213083343-115d2f18c8b87a8a9f7fa54a0d103c717bf9d043 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/gql-tag-operations |
5.1.2-alpha-20251213083343-115d2f18c8b87a8a9f7fa54a0d103c717bf9d043 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-operations |
5.0.7-alpha-20251213083343-115d2f18c8b87a8a9f7fa54a0d103c717bf9d043 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript-resolvers |
5.1.5-alpha-20251213083343-115d2f18c8b87a8a9f7fa54a0d103c717bf9d043 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typed-document-node |
6.1.5-alpha-20251213083343-115d2f18c8b87a8a9f7fa54a0d103c717bf9d043 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/typescript |
5.0.7-alpha-20251213083343-115d2f18c8b87a8a9f7fa54a0d103c717bf9d043 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/client-preset |
5.2.2-alpha-20251213083343-115d2f18c8b87a8a9f7fa54a0d103c717bf9d043 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/graphql-modules-preset |
5.1.2-alpha-20251213083343-115d2f18c8b87a8a9f7fa54a0d103c717bf9d043 |
npm ↗︎ unpkg ↗︎ |
@graphql-codegen/testing |
4.0.1-alpha-20251213083343-115d2f18c8b87a8a9f7fa54a0d103c717bf9d043 |
npm ↗︎ unpkg ↗︎ |
13611de to
461aaf4
Compare
461aaf4 to
e80f93f
Compare
6edfff7 to
4aa3a10
Compare
105c02d to
ef18a0b
Compare
75e8825 to
5bd6dd2
Compare
5bd6dd2 to
0eb25c6
Compare
575701e to
43758c1
Compare
7b01914 to
89af2c2
Compare
72cfe77 to
d764427
Compare
d764427 to
d9c21f3
Compare
4b750dc to
740321e
Compare
740321e to
51c51ca
Compare
51c51ca to
5529fc6
Compare
5529fc6 to
01dfad4
Compare
01dfad4 to
bd8dc5d
Compare
bd8dc5d to
8e23491
Compare
8e23491 to
611c8a0
Compare
611c8a0 to
af7dd0f
Compare
6655dda to
2b8fa45
Compare
0666449 to
115d2f1
Compare
115d2f1 to
cd1bf03
Compare
cd1bf03 to
7acedd5
Compare
7acedd5 to
0cfd237
Compare
This PR contains the following updates:
0.1.1→3.0.12.8.8→3.8.0Release Notes
the-guild-org/shared-config (@theguild/prettier-config)
v3.0.1Compare Source
v3.0.0Compare Source
Major Changes
a3d8e2f: add"type": "module"inpackage.jsonand export prettier config as ESMPatch Changes
ce14478: dependencies updates:@ianvs/[email protected]↗︎(from
4.3.1, independencies)v2.0.7Compare Source
Patch Changes
#500
60e2524Thanks @renovate! - dependencies updates:
@ianvs/[email protected]↗︎(from
4.2.1, independencies)#513
dd2d4d4Thanks @renovate! - dependencies updates:
@ianvs/[email protected]↗︎(from
4.3.0, independencies)#544
352390cThanks @dimaMachina! - add
importAssertionsinimportOrderParserPluginsto format files withassert { type: 'json' }and not throw an errorv2.0.6Compare Source
Patch Changes
#364
862b10dThanks @renovate! - dependencies updates:
@ianvs/[email protected]↗︎(from
4.1.1, independencies)#374
54f1464Thanks @renovate! - dependencies updates:
@ianvs/[email protected]↗︎(from
4.2.0, independencies)v2.0.5Compare Source
Patch Changes
d96fb9eThanks @renovate! - dependencies updates:
prettier-plugin-sh@^0.14.0↗︎(from
^0.13.1, independencies)v2.0.4Compare Source
Patch Changes
d1d0b17Thanks @ardatan! - Disable trailing comma for JSON files
v2.0.3Compare Source
Patch Changes
d37d14eThanks @dotansimha! - dependencies updates:
prettier-plugin-sh@^0.13.1↗︎(from
^0.13.0, independencies)v2.0.2Compare Source
Patch Changes
#260
95ac66aThanks @renovate! - dependencies updates:
@ianvs/[email protected]↗︎(from
4.0.2, independencies)#288
dcf502eThanks @renovate! - dependencies updates:
@ianvs/[email protected]↗︎(from
4.1.0, independencies)v2.0.1Compare Source
Patch Changes
ac46a51Thanks @enisdenjo! - Strings for plugins instead of require
statements
v2.0.0Compare Source
Major Changes
20eb218Thanks @B2o5T! - dependencies updates:
@ianvs/[email protected]↗︎(from
4.0.0-alpha.3, independencies)prettier-plugin-pkg@^0.18.0↗︎(from
^0.17.1, independencies)prettier-plugin-sh@^0.13.0↗︎(from
^0.12.8, independencies)prettier@^3↗︎ (from^2, inpeerDependencies)v1.2.0Compare Source
Minor Changes
e899b0cThanks @enisdenjo! - Better prettier plugin for sorting imports
Patch Changes
e899b0cThanks @enisdenjo! - dependencies updates:
@ianvs/[email protected]↗︎(to
dependencies)@trivago/prettier-plugin-sort-imports@^4.1.1↗︎(from
dependencies)v1.1.3Compare Source
Patch Changes
ec9c470Thanks @dotansimha! - Bump @trivago/prettier-plugin-sort-imports
v1.1.2Compare Source
Patch Changes
c307302Thanks @dotansimha! - Test release flow
v1.1.1Compare Source
Patch Changes
3f7437fThanks @B2o5T! - format svg with html parser
v1.1.0Compare Source
Minor Changes
8e8e708Thanks @enisdenjo! - prettier should be responsible for import
sorting instead of eslint
Patch Changes
#154
8e8e708Thanks @enisdenjo! - dependencies updates:
@trivago/prettier-plugin-sort-imports@^4.0.0↗︎(to
dependencies)#162
19085c2Thanks @enisdenjo! - Even prettier imports
v1.0.0Compare Source
Major Changes
332219eThanks @B2o5T! - update prettier config
Patch Changes
#97
332219eThanks @B2o5T! - dependencies updates:
prettier-plugin-pkg@^0.17.1↗︎(to
dependencies)prettier/prettier (prettier)
v3.8.0Compare Source
diff
🔗 Release note
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
v3.2.5Compare Source
diff
Support Angular inline styles as single template literal (#15968 by @sosukesuzuki)
Angular v17 supports single string inline styles.
Unexpected embedded formatting for Angular template (#15969 by @JounQin)
Computed template should not be considered as Angular component template
Use
"json"parser fortsconfig.jsonby default (#16012 by @sosukesuzuki)In v3.2.0, we introduced
"jsonc"parser which adds trailing comma by default.When adding a new parser we also define how it will be used based on the
linguist-languagesdata.tsconfig.jsonis a special file used by TypeScript, it uses.jsonfile extension, but it actually uses the JSON with Comments syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing.jsonfile extension.We decide to treat it as a JSON file for now to avoid the extra configuration step.
To keep using the
"jsonc"parser for yourtsconfig.jsonfiles, add the following to your.prettierrcfile{ "overrides": [ { "files": ["tsconfig.json", "jsconfig.json"], "options": { "parser": "jsonc" } } ] }v3.2.4Compare Source
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }
v3.2.3Compare Source
diff
Throw errors for invalid code (#15881 by @fisker, @Josh-Cena, @auvred)
Fix parser inference (#15927 by @fisker)
v3.2.2Compare Source
diff
Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute (#15896 by @eelco)
For example this code would crash before:
Fix formatting error on optional call expression and member chain (#15920 by @sosukesuzuki)
v3.2.1Compare Source
diff
Fix formatting error on member chain (#15915 by @sosukesuzuki)
v3.2.0Compare Source
diff
🔗 Release Notes
v3.1.1Compare Source
diff
Fix config file search (#15363 by @fisker)
Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.
Skip explicitly passed symbolic links with
--no-error-on-unmatched-pattern(#15533 by @sanmai-NL)Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.
In Prettier 3.1.1, you can use
--no-error-on-unmatched-patternto simply skip symbolic links.Consistently use tabs in ternaries when
useTabsistrue(#15662 by @auvred)Improve config file search (#15663 by @fisker)
The Prettier config file search performance has been improved by more effective cache strategy.
Fix unstable and ugly formatting for comments in destructuring patterns (#15708 by @sosukesuzuki)
Support "Import Attributes" (#15718 by @fisker)
TypeScript 5.3 supports the latest updates to the import attributes proposal.
Fix false claim in docs that cursorOffset is incompatible with rangeStart/rangeEnd (#15750 by @ExplodingCabbage)
The cursorOffset option has in fact been compatible with rangeStart/rangeEnd for over 5 years, thanks to work by @ds300. However, Prettier's documentation (including the CLI
--helptext) continued to claim otherwise, falsely. The documentation is now fixed.Keep curly braces and
fromkeyword in emptyimportstatements (#15756 by @fisker)Keep empty import attributes and assertions (#15757 by @fisker)
v3.1.0Compare Source
diff
🔗 Release Notes
v3.0.3Compare Source
diff
Add
preferUnplugged: truetopackage.json(#15169 by @fisker and @so1ve)Prettier v3 uses dynamic imports, user will need to unplug Prettier when Yarn's PnP mode is enabled, add
preferUnplugged: truetopackage.json, so Yarn will install Prettier as unplug by default.Support shared config that forbids
require()(#15233 by @fisker)If an external shared config package is used, and the package
exportsdon't haverequireordefaultexport.In Prettier 3.0.2 Prettier fails when attempt to
require()the package, and throws an error.Allow argument of
require()to break (#15256 by @fisker)Do not print trailing commas in arrow function type parameter lists in
tscode blocks (#15286 by @sosukesuzuki)Support TypeScript 5.2
using/await usingdeclaration (#15321 by @sosukesuzuki)Support for the upcoming Explicit Resource Management feature in ECMAScript.
using/await usingdeclarationv3.0.2Compare Source
diff
Break after
=of assignment if RHS is poorly breakable AwaitExpression or YieldExpression (#15204 by @seiyab)Do not add trailing comma for grouped scss comments (#15217 by @auvred)
Print
declareandexportkeywords for nested namespace (#15249 by @sosukesuzuki)v3.0.1Compare Source
diff
Fix cursor positioning for a special case (#14812 by @fisker)
Fix plugins/estree.d.ts to make it a module (#15018 by @kingyue737)
Add
export {}inplugins/estree.d.tsto fix the "File is not a module" errorAdd parenthesis around leading multiline comment in return statement (#15037 by @auvred)
Add support for Vue "Generic Components" (#15066 by @auvred)
https://blog.vuejs.org/posts/vue-3-3#generic-components
Fix comments print in
IfStatement(#15076 by @fisker)Add missing type definition for
printer.preprocess(#15123 by @so1ve)export interface Printer<T = any> { // ... + preprocess?: + | ((ast: T, options: ParserOptions<T>) => T | Promise<T>) + | undefined; }Add missing
getVisitorKeysmethod type definition forPrinter(#15125 by @auvred)Add typing to support
readonlyarray properties of AST Node (#15127 by @auvred)Add space before unary minus followed by a function call (#15129 by @pamelalozano)
v3.0.0Compare 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 these updates again.
This PR was generated by Mend Renovate. View the repository job log.