Clean changelog_unreleased

This commit is contained in:
fisker committed 2026-01-15 08:06:02 +08:00
1 parent f95ad0f8e1
commit 5213ee463c
5 files changed
-138

No files matched your search

-30
View File
@@ -1,30 +0,0 @@
#### Don't print attribute values that are single template or string literals on new lines (#18378 by @ravindUwU)
<!-- prettier-ignore -->
```html
<!-- Input -->
<component
[property]="`
template
literal
`"
/>
<!-- Prettier stable -->
<component
[property]="
`
template
literal
`
"
/>
<!-- Prettier main -->
<component
[property]="`
template
literal
`"
/>
```
-31
View File
@@ -1,31 +0,0 @@
#### [HIGHLIGHT] Support for consecutive switch cases (#18593 by @fisker)
<!-- prettier-ignore -->
```html
<!-- Input -->
@switch (userRole) {
@case ('admin')
@case ('moderator') {
<p>Welcome, boss! Full access.</p>
}
@case ('user') { <p>Standard access</p> }
@default { <p>Guest view</p> }
}
<!-- Prettier stable -->
SyntaxError: Incomplete block "case". If you meant to write the @ character, you should use the "&#64;" HTML entity instead. (2:3)
<!-- Prettier main -->
@switch (userRole) {
@case ("admin")
@case ("moderator") {
<p>Welcome, boss! Full access.</p>
}
@case ("user") {
<p>Standard access</p>
}
@default {
<p>Guest view</p>
}
}
```
-25
View File
@@ -1,25 +0,0 @@
#### [HIGHLIGHT] Support for spread elements (#18596, #18636 by @prettier)
<!-- prettier-ignore -->
```html
<!-- Input -->
<MyComponent
[array]="[ ...foo, ...bar]"
[object]="{...bar, ...extra }"
[call]="call( ...baz)"
/>
<!-- Prettier stable -->
<MyComponent
[array]="[ ...foo, ...bar]"
[object]="{...bar, ...extra }"
[call]="call( ...baz)"
/>
<!-- Prettier main -->
<MyComponent
[array]="[...foo, ...bar]"
[object]="{ ...bar, ...extra }"
[call]="call(...baz)"
/>
```
-15
View File
@@ -1,15 +0,0 @@
---
authors: "fisker"
title: "Prettier 3.8: Support for Angular v21.1"
---
We're excited to announce that Prettier now fully supports the fresh features landing in Angular v21.1 (released today 🎉)!
This update brings cleaner, more expressive templates with:
- Consecutive `@case` statements in `@switch` blocks.
- Spread elements (`...`) in array literals, object literals, and function calls inside templates.
We've also added the ability to format Angular syntax beautifully inside Markdown code blocks.
If you find Prettier valuable and want to help us keep pace with fast-moving frameworks like Angular, please consider [sponsoring us on OpenCollective](https://opencollective.com/prettier) or supporting the projects we rely on. Thank you for being part of this community — your support means a lot!
-37
View File
@@ -1,37 +0,0 @@
#### Support formatting Angular syntax in code block (#18519 by @fisker)
<!-- prettier-ignore -->
````md
<!-- Input -->
```angular-ts
@Component({
selector: 'app-root',
template: `<div
>Welcome to {{
Angular}}! </div>`,
})
export class App {}
```
```angular-html
<div
>Welcome to {{
Angular}}! </div>
```
<!-- Prettier stable -->
Same as input
<!-- Prettier main -->
```angular-ts
@Component({
selector: "app-root",
template: `<div>Welcome to {{ Angular }}!</div>`,
})
export class App {}
```
```angular-html
<div>Welcome to {{ Angular }}!</div>
```
````