Skip to content

Commit 43236e2

Browse files
Add blog post for v3.7 (#18323)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 8147ddd commit 43236e2

File tree

8 files changed

+1937
-10
lines changed

8 files changed

+1937
-10
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
authors: "fisker"
3+
title: "Prettier 3.7: Improved formatting consistency and new plugin features!"
4+
---
5+
6+
We are excited to announce Prettier 3.7! This release focuses on polishing the TypeScript and Flow experience, specifically by aligning the formatting of classes and interfaces to be more consistent and predictable. We also want your opinion on the upcoming change to fix [inconsistent opening brace print logic of class and interface body](https://github.com/prettier/prettier/issues/18115).
7+
8+
Additionally, we also fixed lots of bugs, added support for new features in Angular 21 and Graphql 16.12, added Front Matter support to Handlebars.
9+
10+
For plugin developers, we've added new APIs to give you more control over comment attachment and handling of ignored nodes.
11+
12+
If you appreciate Prettier and would like to support our work, please consider sponsoring us directly via [our OpenCollective](https://opencollective.com/prettier) or by sponsoring the projects we depend on. Thank you for your continued support!
13+
14+
<!-- truncate -->

changelog_unreleased/handlebars/18065.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
</style>
2020
21-
{{! Prettier main (--html-whitespace-sensitivity=ignore) }}
21+
{{! Prettier main (--html-whitespace-sensitivity=ignore) }}
2222
<style>
2323
#foo {
2424
color: red;

changelog_unreleased/typescript/18094.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#### Fix the inconsistent printing between class and interface (#18094, #18091, #18215 by @fisker)
1+
#### [HIGHLIGHT] Fix the inconsistent printing between class and interface (#18094, #18091, #18215 by @fisker)
2+
3+
In this release, we've focused heavily on improving consistency between Class and Interface formatting. Previously, these two similar constructs were printed quite differently, leading to visual inconsistencies. We've aligned their formatting rules to provide a more predictable and cleaner output.
24

35
##### The extra indentation for type parameters in class has been removed
46

@@ -114,11 +116,6 @@ interface ExtendsLongOneWithGenerics
114116
> {}
115117

116118
// Prettier main
117-
interface Interface extends GenericEnvironment<
118-
SomeType,
119-
AnotherType,
120-
YetAnotherType
121-
> {}
122119
class ExtendsLongOneWithGenerics extends Bar<
123120
SomeLongTypeSomeLongTypeSomeLongTypeSomeLongType,
124121
ToBreakLineToBreakLineToBreakLine

changelog_unreleased/typescript/18109.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type SuperLongTypeNameLoremIpsumLoremIpsumBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla =
2525
| Fooo1000
2626
| Baz2000
2727
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
28-
type A = // comment
28+
type A = // comment
2929
| Fooo1000
3030
| Baz2000
3131
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;

changelog_unreleased/typescript/18110.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface A {
77
a: // Comment
88
B;
99
b: // Comment
10-
| Fooo1000
10+
| Fooo1000
1111
| Baz2000
1212
| BarLoooooooooooooooooooooooooooooooooooooooooooooooooLong;
1313
c: // Comment

changelog_unreleased/typescript/18165.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface I {
1818

1919
// Prettier main
2020
interface I {
21-
elements: // comment
21+
elements: // comment
2222
| [string, ExpressionNode, ExpressionNode]
2323
| [string, ExpressionNode, ExpressionNode, ObjectExpression];
2424
}

0 commit comments

Comments
 (0)