From 5213ee463c653f47e1821de414a4f30573f83337 Mon Sep 17 00:00:00 2001 From: fisker Date: Thu, 15 Jan 2026 08:06:02 +0800 Subject: [PATCH] Clean changelog_unreleased --- changelog_unreleased/angular/18378.md | 30 -------------------- changelog_unreleased/angular/18593.md | 31 --------------------- changelog_unreleased/angular/18596.md | 25 ----------------- changelog_unreleased/blog-post-intro.md | 15 ---------- changelog_unreleased/markdown/18519.md | 37 ------------------------- 5 files changed, 138 deletions(-) delete mode 100644 changelog_unreleased/angular/18378.md delete mode 100644 changelog_unreleased/angular/18593.md delete mode 100644 changelog_unreleased/angular/18596.md delete mode 100644 changelog_unreleased/blog-post-intro.md delete mode 100644 changelog_unreleased/markdown/18519.md diff --git a/changelog_unreleased/angular/18378.md b/changelog_unreleased/angular/18378.md deleted file mode 100644 index 1decf5b69..000000000 --- a/changelog_unreleased/angular/18378.md +++ /dev/null @@ -1,30 +0,0 @@ -#### Don't print attribute values that are single template or string literals on new lines (#18378 by @ravindUwU) - - -```html - - - - - - - - -``` diff --git a/changelog_unreleased/angular/18593.md b/changelog_unreleased/angular/18593.md deleted file mode 100644 index 8b6f6f806..000000000 --- a/changelog_unreleased/angular/18593.md +++ /dev/null @@ -1,31 +0,0 @@ -#### [HIGHLIGHT] Support for consecutive switch cases (#18593 by @fisker) - - -```html - -@switch (userRole) { - @case ('admin') - @case ('moderator') { -

Welcome, boss! Full access.

- } - @case ('user') {

Standard access

} - @default {

Guest view

} -} - - -SyntaxError: Incomplete block "case". If you meant to write the @ character, you should use the "@" HTML entity instead. (2:3) - - -@switch (userRole) { - @case ("admin") - @case ("moderator") { -

Welcome, boss! Full access.

- } - @case ("user") { -

Standard access

- } - @default { -

Guest view

- } -} -``` diff --git a/changelog_unreleased/angular/18596.md b/changelog_unreleased/angular/18596.md deleted file mode 100644 index 249eda0b2..000000000 --- a/changelog_unreleased/angular/18596.md +++ /dev/null @@ -1,25 +0,0 @@ -#### [HIGHLIGHT] Support for spread elements (#18596, #18636 by @prettier) - - -```html - - - - - - - - -``` diff --git a/changelog_unreleased/blog-post-intro.md b/changelog_unreleased/blog-post-intro.md deleted file mode 100644 index 10b26d689..000000000 --- a/changelog_unreleased/blog-post-intro.md +++ /dev/null @@ -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! diff --git a/changelog_unreleased/markdown/18519.md b/changelog_unreleased/markdown/18519.md deleted file mode 100644 index a8fbbfb4e..000000000 --- a/changelog_unreleased/markdown/18519.md +++ /dev/null @@ -1,37 +0,0 @@ -#### Support formatting Angular syntax in code block (#18519 by @fisker) - - -````md - -```angular-ts -@Component({ - selector: 'app-root', - template: `
Welcome to {{ - Angular}}!
`, -}) -export class App {} -``` - -```angular-html -
Welcome to {{ - Angular}}!
-``` - - -Same as input - - -```angular-ts -@Component({ - selector: "app-root", - template: `
Welcome to {{ Angular }}!
`, -}) -export class App {} -``` - -```angular-html -
Welcome to {{ Angular }}!
-``` -````