Skip to content

chore(deps): update dependency prettier to v3.9.6 - #19

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

chore(deps): update dependency prettier to v3.9.6#19
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/prettier-3.x-lockfile

Conversation

@renovate

@renovaterenovateBot commented Feb 25, 2024

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageChangeAgeConfidence
prettier (source)3.0.33.9.6ageconfidence

Release Notes

prettier/prettier (prettier)

v3.9.6

Compare Source

v3.9.5

Compare Source

diff

Markdown: Cap ordered list mark at 999,999,999 (#​19351 by @​tats-u)

CommonMark parsers only support ordered list item numbers up to 999,999,999.

With this change, Prettier now caps the ordered list item number at 999,999,999 to ensure that the output is correctly parsed as an ordered list by CommonMark parsers. Numbers larger than 999,999,999 are not parsed as list item numbers and are left unchanged in the output:

<!-- Input -->999999998. text
999999998. text
999999998. text
999999998. text
1234567890123456789012) text
<!-- Prettier 3.9.4 -->999999998. text
999999999. text
1000000000. text
1000000001. text
1234567890123456789012) text
<!-- Prettier 3.9.5 -->999999998. text
999999999. text
999999999. text
999999999. text
1234567890123456789012) text
Markdown: Avoid corrupting empty link with title (#​19487 by @​andersk)

Do not remove <> from an inline link or image with an empty URL and a title, as this removal would change its interpretation.

<!-- Input -->[link](<>"title")<!-- Prettier 3.9.4 -->[link]("title")<!-- Prettier 3.9.5 -->[link](<>"title")
Less: Remove extra spaces after [ in map lookups (#​19503 by @​kovsu)
// Input.foo {
color: #theme[ primary];
color: #theme[@name];
color: #theme[@@name];
}
// Prettier 3.9.4.foo {
color: #theme[ primary];
color: #theme[ @name];
color: #theme[ @@name];
}
// Prettier 3.9.5.foo {
color: #theme[primary];
color: #theme[@name];
color: #theme[@@name];
}
CSS: Prevent addition space in type() with + (#​19516 by @​bigandy)

This fixes the addition space before + in CSS type() declaration. For example type(<number>+) was being converted into type(<number> +) which is invalid CSS and does not work.

/* Input */div {
border-radius:attr(br type(<length>+));
}
/* Prettier 3.9.4 */div {
border-radius:attr(br type(<length>+));
}
/* Prettier 3.9.5 */div {
border-radius:attr(br type(<length>+));
}
Less: Remove spaces between merge markers and colons (#​19517 by @​kovsu)
// Inputa {
box-shadow+ : 001px #&#8203;000;
}
// Prettier 3.9.4a {
box-shadow+ : 001px #&#8203;000;
}
// Prettier 3.9.5a {
box-shadow+: 001px #&#8203;000;
}
Markdown: Preserve wiki links with aliases (#​19527 by @​kovsu)
<!-- Input -->[[Foo:Bar]]<!-- Prettier 3.9.4 -->[[Foo]]<!-- Prettier 3.9.5 -->[[Foo:Bar]]
TypeScript: Fix comments being dropped on shorthand type import/export specifiers (#​19565 by @​kirkwaiblinger)
// Inputexport{type/* comment */T}from"foo";import{type/* comment */T}from"foo";// Prettier 3.9.4
Error: Comment"comment"wasnotprinted.Pleasereportthiserror!// Prettier 3.9.5export{type/* comment */T}from"foo";import{type/* comment */T}from"foo";
Miscellaneous: Preserving comments' placement property (#​19567 by @​Janther)

Prettier@​3.9.0 deleted an undocumented property on comments, which was already used by plugins, comment.placement is now available again after comment attach.

Flow: Stop enforcing empty module declaration to break (#​19568 by @​fisker)
// Input
declare module "foo" {}
// Prettier 3.9.4
declare module "foo" {
}
// Prettier 3.9.5
declare module "foo" {}
Angular: Support expression for exhaustive typechecking (#​19571 by @​fisker)
<!-- Input -->
@switch (state.mode) {
@default never(state);
}
<!-- Prettier 3.9.4 -->
@switch (state.mode) {
@default never;
}
<!-- Prettier 3.9.5 -->
@switch (state.mode) {
@default never(state);
}
TypeScript: Ignore comments inside mapped type when checking type parameter comments (#​19572 by @​fisker)
// Inputfoo<{// comment[keyinkeyofFoo]: number}>();// Prettier 3.9.4foo<{// comment[keyinkeyofFoo]: number;}>();// Prettier 3.9.5foo<{// comment[keyinkeyofFoo]: number;}>();
Less: Fix adjacent block comments being corrupted (#​19574 by @​kovsu)
// Input/* a *//* b *//* a */* {
color: red;
}
// Prettier 3.9.4/* a *//* b *//* a * { color: red;}// Prettier 3.9.5/* a *//* b *//* a */* {
color: red;
}
JavaScript: Handle dangling comments in SwitchStatement (#​19581 by @​fisker)
// Inputswitch(foo){// comment}// Prettier 3.9.4switch(foo// comment){}// Prettier 3.9.5switch(foo){// comment}
TypeScript: Remove space in comment-only object type (#​19583 by @​fisker)
// Inputvarfoo={/* comment */};typeFoo={/* comment */};// Prettier 3.9.4varfoo={/* comment */};typeFoo={/* comment */};// Prettier 3.9.5varfoo={/* comment */};typeFoo={/* comment */};

v3.9.4

Compare Source

v3.9.3

Compare Source

v3.9.2

Compare Source

v3.9.1

Compare Source

v3.9.0

Compare Source

diff

🔗 Release Notes

v3.8.5

Compare Source

v3.8.4

Compare Source

diff

Markdown: Fix blank lines between list items and nested sub-lists being removed in Markdown/MDX (#​17746 by @​byplayer)

Prettier was removing blank lines between list items and their nested sub-lists, converting loose lists into tight lists and changing their semantic meaning.

<!-- Input -->- a
- b
- c
- d
<!-- Prettier 3.8.3 -->- a
- b
- c
- d
<!-- Prettier 3.8.4 -->- a
- b
- c
- d

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 -->
@switch (foo) {
@case (1) {}
@default never;
}
<!-- Prettier 3.8.1 -->
SyntaxError: Incomplete block "default never". If you meant to write the @ character, you should use the "&#&#8203;64;" HTML entity instead. (3:3)
<!-- Prettier 3.8.2 -->
@switch (foo) {
@case (1) {}
@default never;
}

arrow function and instanceof expressions.

<!-- Input -->
@let fn = (a) => a? 1:2;
{{ fn ( a instanceof b)}}
<!-- Prettier 3.8.1 -->
@let fn = (a) => a? 1:2;
{{ fn ( a instanceof b)}}
<!-- Prettier 3.8.2 -->
@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)
// Inputimport*asprettierPluginEstreefrom"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.1prettierPluginEstree.printers.estree;//=> PrinterprettierPluginEstree.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 --><divfoo={bar}></div><!-- Prettier 3.7.3 (--embedded-language-formatting off) --><divfoo="{bar}"></div><!-- Prettier 3.7.4 (--embedded-language-formatting off) --><divfoo={bar}></div>
TypeScript: Fix comment inside union type gets duplicated (#​18393 by @​fisker)
// InputtypeFoo=(/** comment */a|b)|c;// Prettier 3.7.3typeFoo=/** comment */(/** comment */a|b)|c;// Prettier 3.7.4typeFoo=/** comment */(a|b)|c;
TypeScript: Fix unstable comment print in union type comments (#​18395 by @​fisker)
// InputtypeX=(A|B)&(// commentA|B);// Prettier 3.7.3 (first format)typeX=(A|B)&(// commentA|B);// Prettier 3.7.3 (second format)typeX=(|A|B// comment)&(A|B);// Prettier 3.7.4typeX=(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)
// Inputconsole.log("A descriptor\\'s .kind must be \"method\" or \"field\".")// Prettier 3.7.1console.log('A descriptor\\'s.kindmustbe"method"or"field".');
// Prettier 3.7.2console.log('A descriptor\\\'s .kind must be "method" or "field".');
JavaScript: Preserve quote for embedded HTML attribute values (#​18352 by @​kovsu)
// Inputconsthtml=/* HTML */` <div class="${styles.banner}"></div> `;// Prettier 3.7.1consthtml=/* HTML */` <div class=${styles.banner}></div> `;// Prettier 3.7.2consthtml=/* HTML */` <div class="${styles.banner}"></div> `;
TypeScript: Fix comment in empty type literal (#​18364 by @​fisker)
// InputexporttypeXXX={// tbd};// Prettier 3.7.1exporttypeXXX={// tbd};// Prettier 3.7.2exporttypeXXX={// 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)
// Inputexportconstversion: string;// Prettier 3.6.0 (--parser=babel-ts)
SyntaxError: Unexpectedtoken(1:21)>1|exportconstversion: string;|^// Prettier 3.6.0 (--parser=oxc-ts)
SyntaxError: Missinginitializerinconstdeclaration(1:14)>1|exportconstversion: string;|^^^^^^^^^^^^^^^// Prettier 3.6.1exportconstversion: 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)
// InputtypeT<U>='a'|('b'extendsU ? 'c' : empty);typeT<U>='a'&('b'extendsU ? 'c' : empty);// Prettier 3.5.2typeT<U>="a"|"b"extendsU ? "c" : empty;typeT<U>="a"&"b"extendsU ? "c" : empty;// Prettier 3.5.3typeT<U>="a"|("b"extendsU ? "c" : empty);typeT<U>="a"&("b"extendsU ? "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)
// InputclassA{
@decorator/**  * The method description * */asyncmethod(foo: Foo,bar: Bar){console.log(foo);}}// Prettier 3.4.1classA{
@decoratorasync/** * The method description * */method(foo: Foo,bar: Bar){console.log(foo);}}// Prettier 3.4.2classA{
@decorator/** * The method description * */asyncmethod(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@click="foo += 2">Click</button>
</template>
<!-- Prettier 3.4.0 -->
<template>
<button@click="(foo += 2)">Click</button>
</template>
<!-- Prettier 3.4.1 -->
<template>
<button@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.

// Inputfoo ? bar??foo : baz;foo??bar ? a : b;a ? b : foo??bar;// Prettier 3.3.2foo ? bar??foo : baz;foo??bar ? a : b;a ? b : foo??bar;// Prettier 3.3.3foo ? (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
@(foo`tagged template`)classX{}// Prettier 3.3.2
@foo`tagged template`classX{}// Prettier 3.3.3
@(foo`tagged template`)classX{}
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:

@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>{{@x.y.z}}</div>
{{! Prettier 3.3.1 }}
<div>{{@x}}</div>
{{! Prettier 3.3.2 }}
<div>{{@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)
// Inputimportsomethingfrom"./some-very-very-very-very-very-very-very-very-long-path.json"with{type: "json"};// Prettier 3.3.0importsomethingfrom"./some-very-very-very-very-very-very-very-very-long-path.json"with{type:
"json"};// Prettier 3.3.1importsomethingfrom"./some-very-very-very-very-very-very-very-very-long-path.json"with{type: "json"};

v3.3.0

Compare Source

diff

🔗 Release Notes

v3.2.5

Compare Source

diff

Support Angular inline styles as single template literal (#​15968 by @​sosukesuzuki)

Angular v17 supports single string inline styles.

// Input
@Component({template: `<div>...</div>`,styles: `h1 { color: blue; }`,})exportclassAppComponent{}// Prettier 3.2.4
@Component({template: `<div>...</div>`,styles: `h1 { color: blue; }`,})exportclassAppComponent{}// Prettier 3.2.5
@Component({template: `<div>...</div>`,styles: ` h1 { color: blue; } `,})exportclassAppComponent{}
Unexpected embedded formatting for Angular template (#​15969 by @​JounQin)

Computed template should not be considered as Angular component template

// Inputconsttemplate="foobar";
@Component({[template]: `<h1>{{ hello }}</h1>`,})exportclassAppComponent{}// Prettier 3.2.4consttemplate="foobar";
@Component({[template]: `<h1>{{ hello }}</h1>`,})exportclassAppComponent{}// Prettier 3.2.5consttemplate="foobar";
@Component({[template]: `<h1>{{ hello }}</h1>`,})exportclassAppComponent{}
Use "json" parser for tsconfig.json by 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-languages data.

tsconfig.json is a special file used by TypeScript, it uses .json file 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 .json file 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 your tsconfig.json files, add the following to your .prettierrc file

{
"overrides": [
{
"files": ["tsconfig.json", "jsconfig.json"],
"options": {
"parser": "jsonc"
}
}
]
}

# Prettier 3.2.4
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }
# Prettier 3.2.5
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "json" }

v3.2.4

Compare Source

diff

Fix incorrect parser inference (#​15947 by @​fisker)

Files like .eslintrc.json were incorrectly formatted as JSONC files.

// Inputprettier--file-info.eslintrc.json{"ignored": false,"inferredParser": "jsonc"}// Prettier 3.2.4prettier--file-info.eslintrc.json{"ignored": false,"inferredParser": "json"}

v3.2.3

Compare Source

diff

Throw errors for invalid code (#​15881 by @​fisker, @​Josh-Cena, @​auvred)
// Input1++;// Prettier 3.2.21++;// Prettier 3.2.3
SyntaxError: Invalidleft-handsideexpressioninunaryoperation(1:1)>1|1++;|^
// Inputtry{}catch(error=1){}// Prettier 3.2.2try{}catch(error){}// Prettier 3.2.3
SyntaxError: Catchclausevariablecannothaveaninitializer.(1:23)>1|try{}catch(error=1){}|^
Fix parser inference (#​15927 by @​fisker)
// Prettier 3.2.2prettier --file-info tsconfig.json{ "ignored": false, "inferredParser": "json" }// Prettier 3.2.3prettier --file-info tsconfig.json{ "ignored": false, "inferredParser": "jsonc" }

v3.2.2

Compare 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:

<style{...spread}>{`.{}`}</style>
Fix formatting error on optional call expression and member chain (#​15920 by @​sosukesuzuki)
// Inputa(()=>{},c?.d());// Prettier 3.2.1
TypeError: Cannotreadpropertiesofundefined(reading'type')// Prettier 3.2.2a(()=>{},c?.d());

v3.2.1

Compare Source

diff

Fix formatting error on member chain (#​15915 by @​sosukesuzuki)
// Inputtest().test2().test2(thing?.something);// Prettier 3.2.0
TypeError: Cannotreadpropertiesofundefined(reading'type')// Prettier 3.2.1test().test2().test2(thing?.something);

v3.2.0

Compare Source

diff

🔗 Release Notes

v3.1.1

Compare 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.

├─ .prettierrc
└─ test.js (A directory)
└─ .prettierrc
// Prettier 3.1.0awaitprettier.resolveConfigFile(newURL("./test.js",import.meta.url));// <CWD>/test.js/.prettierrc// Prettier 3.1.1awaitprettier.resolveConfigFile(newURL("./test.js",import.meta.url));// <CWD>/.prettierrc
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-pattern to simply skip symbolic links.

Consistently use tabs in ternaries when useTabs is true (#​15662 by @​auvred)
// Inputaaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;// Prettier 3.1.0aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;// Prettier 3.1.1aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;
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)
// Inputconst{
foo,// bar// baz}: Foo=expr;// Prettier 3.1.0const{
foo1,}// bar// baz
: Foo=expr;// Prettier 3.1.0 second outputconst{
foo1,// bar}// baz
: Foo=expr;// Prettier 3.1.1const{
foo1,// bar// baz}: Foo=expr;
Support "Import Attributes" (#​15718 by @​fisker)

TypeScript 5.3 supports the latest updates to the import attributes proposal.

importsomethingfrom"./something.json"with{type: "json"};
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 --help text) continued to claim otherwise, falsely. The documentation is now fixed.

Keep curly braces and from keyword in empty import statements (#​15756 by @​fisker)
// Inputimport{}from'foo';import{/* comment */}from'bar';// Prettier 3.1.0import{}from"foo";import/* comment */"bar";// Prettier 3.1.1import{}from"foo";import{}from/* comment */"bar";
Keep empty import attributes and assertions (#​15757 by @​fisker)
// Inputimportfoofrom"foo"with{};importbarfrom"bar"assert{};// Prettier 3.1.0importfoofrom"foo";importbarfrom"bar";// Prettier 3.1.1importfoofrom"foo"with{};importbarfrom"bar"assert{};

v3.1.0

Compare Source

diff

🔗 Release Notes


Configuration

📅 Schedule: (UTC)

  • 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 was generated by Mend Renovate. View the repository job log.

@cloudflare-workers-and-pages

cloudflare-workers-and-pagesBot commented Feb 25, 2024

Copy link
Copy Markdown

Deploying felicity with Cloudflare Pages Cloudflare Pages

Latest commit:161ddcb
Status: ✅ Deploy successful!
Preview URL:https://0da3c4e4.felicity.pages.dev
Branch Preview URL:https://renovate-prettier-3-x-lockfi.felicity.pages.dev

View logs

@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.2.5chore(deps): update dependency prettier to v3.3.0Jun 1, 2024
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.3.0chore(deps): update dependency prettier to v3.3.1Jun 5, 2024
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.3.1chore(deps): update dependency prettier to v3.3.2Jun 11, 2024
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.3.2chore(deps): update dependency prettier to v3.3.3Jul 13, 2024
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.3.3chore(deps): update dependency prettier to v3.4.0Nov 26, 2024
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.4.0chore(deps): update dependency prettier to v3.4.1Nov 26, 2024
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.4.1chore(deps): update dependency prettier to v3.4.2Dec 4, 2024
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 7dca9ac to 45f5245CompareJanuary 23, 2025 17:44
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 45f5245 to 45110faCompareFebruary 9, 2025 13:45
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.4.2chore(deps): update dependency prettier to v3.5.0Feb 9, 2025
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.5.0chore(deps): update dependency prettier to v3.5.1Feb 13, 2025
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 45110fa to 43e4acfCompareFebruary 13, 2025 15:22
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 43e4acf to 3ef57a0CompareFebruary 22, 2025 06:07
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.5.1chore(deps): update dependency prettier to v3.5.2Feb 22, 2025
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 3ef57a0 to cf67241CompareMarch 3, 2025 02:24
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.5.2chore(deps): update dependency prettier to v3.5.3Mar 3, 2025
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from cf67241 to 25d3d33CompareJune 23, 2025 02:57
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.5.3chore(deps): update dependency prettier to v3.6.0Jun 23, 2025
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 25d3d33 to d7ef2b4CompareJune 25, 2025 11:56
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.6.0chore(deps): update dependency prettier to v3.6.1Jun 25, 2025
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from d7ef2b4 to 5799974CompareJune 27, 2025 06:13
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.6.1chore(deps): update dependency prettier to v3.6.2Jun 27, 2025
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 5799974 to 2571465CompareNovember 27, 2025 08:48
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.6.2chore(deps): update dependency prettier to v3.7.0Nov 27, 2025
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 2571465 to 451656dCompareNovember 27, 2025 14:46
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.7.0chore(deps): update dependency prettier to v3.7.1Nov 27, 2025
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 451656d to 2561c95CompareNovember 29, 2025 02:12
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.7.1chore(deps): update dependency prettier to v3.7.2Nov 29, 2025
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 2561c95 to 9cab610CompareNovember 30, 2025 00:03
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.7.2chore(deps): update dependency prettier to v3.7.3Nov 30, 2025
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.7.3chore(deps): update dependency prettier to v3.7.4Dec 3, 2025
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 9cab610 to 0b5482dCompareDecember 3, 2025 05:43
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 0b5482d to 5919ffdCompareJanuary 15, 2026 02:14
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.7.4chore(deps): update dependency prettier to v3.8.0Jan 15, 2026
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 5919ffd to 9e1a367CompareJanuary 21, 2026 18:03
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.8.0chore(deps): update dependency prettier to v3.8.1Jan 21, 2026
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 9e1a367 to 00c419aCompareApril 10, 2026 05:15
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.8.1chore(deps): update dependency prettier to v3.8.2Apr 10, 2026
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.8.2chore(deps): update dependency prettier to v3.8.3Apr 15, 2026
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 00c419a to 379fdedCompareApril 15, 2026 01:32
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 379fded to 67115fdCompareJune 9, 2026 15:51
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.8.3chore(deps): update dependency prettier to v3.8.4Jun 9, 2026
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 67115fd to 0d3dec4CompareJune 26, 2026 17:14
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.8.4chore(deps): update dependency prettier to v3.8.5Jun 26, 2026
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.8.5chore(deps): update dependency prettier to v3.9.0Jun 27, 2026
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch 2 times, most recently from 80e53f1 to 9d9577eCompareJune 28, 2026 00:59
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.9.0chore(deps): update dependency prettier to v3.9.1Jun 28, 2026
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 9d9577e to 932b63aCompareJune 29, 2026 14:01
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.9.1chore(deps): update dependency prettier to v3.9.3Jun 29, 2026
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 932b63a to 000ac96CompareJune 30, 2026 02:59
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.9.3chore(deps): update dependency prettier to v3.9.4Jun 30, 2026
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 000ac96 to 82ca942CompareJuly 9, 2026 20:34
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.9.4chore(deps): update dependency prettier to v3.9.5Jul 9, 2026
@renovate
renovateBotforce-pushed the renovate/prettier-3.x-lockfile branch from 82ca942 to 161ddcbCompareJuly 21, 2026 06:12
@renovaterenovateBot changed the title chore(deps): update dependency prettier to v3.9.5chore(deps): update dependency prettier to v3.9.6Jul 21, 2026
Sign up for freeto 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.

0 participants