diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index e2f4ccd7e..1b517c0c2 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.3.2** +**Prettier 3.3.3** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index ff5a90171..0075516bb 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.3.2 +- Prettier Version: 3.3.3 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f90bcd30..1d65c56b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,66 @@ +# 3.3.3 + +[diff](https://github.com/prettier/prettier/compare/3.3.2...3.3.3) + +#### Add parentheses for nullish coalescing in ternary ([#16391](https://github.com/prettier/prettier/pull/16391) by [@cdignam-segment](https://github.com/cdignam-segment)) + +This change adds clarity to operator precedence. + + +```js +// Input +foo ? bar ?? foo : baz; +foo ?? bar ? a : b; +a ? b : foo ?? bar; + +// Prettier 3.3.2 +foo ? bar ?? foo : baz; +foo ?? bar ? a : b; +a ? b : foo ?? bar; + +// Prettier 3.3.3 +foo ? (bar ?? foo) : baz; +(foo ?? bar) ? a : b; +a ? b : (foo ?? bar); +``` + +#### Add parentheses for decorator expressions ([#16458](https://github.com/prettier/prettier/pull/16458) by [@y-schneider](https://github.com/y-schneider)) + +Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5. + + +```ts +// Input +@(foo`tagged template`) +class X {} + +// Prettier 3.3.2 +@foo`tagged template` +class X {} + +// Prettier 3.3.3 +@(foo`tagged template`) +class X {} +``` + +#### Support `@let` declaration syntax ([#16474](https://github.com/prettier/prettier/pull/16474) by [@sosukesuzuki](https://github.com/sosukesuzuki)) + +Adds support for Angular v18 `@let` declaration syntax. + +Please see the following code example. The `@let` declaration allows you to define local variables within the template: + + +```html +@let name = 'Frodo'; + +