diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index 8a13880bf..eeb25ffd0 100644 --- a/.github/ISSUE_TEMPLATE/formatting.md +++ b/.github/ISSUE_TEMPLATE/formatting.md @@ -26,7 +26,7 @@ Don't fill the form below manually! Let a program create a report for you: --> -**Prettier 3.8.1** +**Prettier 3.8.2** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index 2278a95d6..84a3febc5 100644 --- a/.github/ISSUE_TEMPLATE/integration.md +++ b/.github/ISSUE_TEMPLATE/integration.md @@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE: **Environments:** -- Prettier Version: 3.8.1 +- Prettier Version: 3.8.2 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index b4157ce30..8a34977e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,49 @@ +# 3.8.2 + +[diff](https://github.com/prettier/prettier/compare/3.8.1...3.8.2) + +#### Angular: Support Angular v21.2 ([#18722](https://github.com/prettier/prettier/pull/18722), [#19034](https://github.com/prettier/prettier/pull/19034) by [@fisker](https://github.com/fisker)) + +Exhaustive typechecking with `@default never;` + + +```html + +@switch (foo) { + @case (1) {} + @default never; +} + + +SyntaxError: Incomplete block "default never". If you meant to write the @ character, you should use the "@" HTML entity instead. (3:3) + + +@switch (foo) { + @case (1) {} + @default never; +} +``` + +`arrow function` and `instanceof` expressions. + + +```html + +@let fn = (a) => a? 1:2; + +{{ fn ( a instanceof b)}} + + +@let fn = (a) => a? 1:2; + +{{ fn ( a instanceof b)}} + + +@let fn = (a) => (a ? 1 : 2); + +{{ fn(a instanceof b) }} +``` + # 3.8.1 [diff](https://github.com/prettier/prettier/compare/3.8.0...3.8.1) diff --git a/changelog_unreleased/angular/18722.md b/changelog_unreleased/angular/18722.md deleted file mode 100644 index 61e69535e..000000000 --- a/changelog_unreleased/angular/18722.md +++ /dev/null @@ -1,41 +0,0 @@ -#### Support Angular v21.2 (#18722, #19034 by @fisker) - -Exhaustive typechecking with `@default never;` - - -```html - -@switch (foo) { - @case (1) {} - @default never; -} - - -SyntaxError: Incomplete block "default never". If you meant to write the @ character, you should use the "@" HTML entity instead. (3:3) - - -@switch (foo) { - @case (1) {} - @default never; -} -``` - -`arrow function` and `instanceof` expressions. - - -```html - -@let fn = (a) => a? 1:2; - -{{ fn ( a instanceof b)}} - - -@let fn = (a) => a? 1:2; - -{{ fn ( a instanceof b)}} - - -@let fn = (a) => (a ? 1 : 2); - -{{ fn(a instanceof b) }} -``` diff --git a/package.json b/package.json index 8281c04dc..bcda66b43 100644 --- a/package.json +++ b/package.json @@ -179,7 +179,7 @@ "node-style-text": "2.1.2", "npm-run-all2": "8.0.4", "open-editor": "6.0.0", - "prettier": "3.8.1", + "prettier": "3.8.2", "pretty-bytes": "7.1.0", "pretty-ms": "9.3.0", "puppeteer": "24.40.0", diff --git a/website/src/pages/index.jsx b/website/src/pages/index.jsx index bc52848a7..006fc28fa 100644 --- a/website/src/pages/index.jsx +++ b/website/src/pages/index.jsx @@ -331,7 +331,7 @@ function UsersSection() {

More than{" "} - 9.9 million{" "} + 10 million{" "} dependent repositories on GitHub

- + +