diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index e6d75cc1b..178328dff 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.5.2** +**Prettier 3.5.3** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index 54447f5a4..8d760bec5 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.5.2 +- Prettier Version: 3.5.3 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index fe4b58121..bf58066dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +# 3.5.3 + +[diff](https://github.com/prettier/prettier/compare/3.5.2...3.5.3) + +#### Flow: Fix missing parentheses in `ConditionalTypeAnnotation` ([#17196](https://github.com/prettier/prettier/pull/17196) by [@fisker](https://github.com/fisker)) + + +```jsx +// Input +type T = 'a' | ('b' extends U ? 'c' : empty); +type T = 'a' & ('b' extends U ? 'c' : empty); + +// Prettier 3.5.2 +type T = "a" | "b" extends U ? "c" : empty; +type T = "a" & "b" extends U ? "c" : empty; + +// Prettier 3.5.3 +type T = "a" | ("b" extends U ? "c" : empty); +type T = "a" & ("b" extends U ? "c" : empty); +``` + # 3.5.2 [diff](https://github.com/prettier/prettier/compare/3.5.1...3.5.2) diff --git a/package.json b/package.json index 69bfc3912..605984650 100644 --- a/package.json +++ b/package.json @@ -142,7 +142,7 @@ "nano-spawn": "0.2.0", "node-style-text": "0.0.7", "npm-run-all2": "7.0.2", - "prettier": "3.5.2", + "prettier": "3.5.3", "pretty-bytes": "6.1.1", "rollup-plugin-license": "3.6.0", "semver": "7.7.1", diff --git a/website/src/pages/index.jsx b/website/src/pages/index.jsx index 97dd99e23..ad773970a 100644 --- a/website/src/pages/index.jsx +++ b/website/src/pages/index.jsx @@ -316,7 +316,7 @@ function UsersSection() {

More than{" "} - 9.2 million{" "} + 9.3 million{" "} dependent repositories on GitHub

More than{" "} - 19.2k{" "} + 19.3k{" "} dependent packages on npm

- + +