Clean changelog_unreleased
This commit is contained in:
1 parent
293d80653a
commit
a0cde0ad88
3 files changed
-56
No files matched your search
@@ -1,17 +0,0 @@
|
|||||||
#### Support `@let` declaration syntax (#16474 by @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:
|
|
||||||
|
|
||||||
<!-- prettier-ignore -->
|
|
||||||
```html
|
|
||||||
@let name = 'Frodo';
|
|
||||||
|
|
||||||
<h1>Dashboard for {{name}}</h1>
|
|
||||||
Hello, {{name}}
|
|
||||||
```
|
|
||||||
|
|
||||||
For more details, please refer to the excellent blog post by the Angular Team: [Introducing @let in Angular](https://blog.angular.dev/introducing-let-in-angular-686f9f383f0f).
|
|
||||||
|
|
||||||
We also appreciate the Angular Team for kindly answering our questions to implement this feature.
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
#### Add parentheses for nullish coalescing in ternary (#16391 by @cdignam-segment)
|
|
||||||
|
|
||||||
This change adds clarity to operator precedence.
|
|
||||||
|
|
||||||
<!-- prettier-ignore -->
|
|
||||||
```js
|
|
||||||
// Input
|
|
||||||
foo ? bar ?? foo : baz;
|
|
||||||
foo ?? bar ? a : b;
|
|
||||||
a ? b : foo ?? bar;
|
|
||||||
|
|
||||||
// Prettier stable
|
|
||||||
foo ? bar ?? foo : baz;
|
|
||||||
foo ?? bar ? a : b;
|
|
||||||
a ? b : foo ?? bar;
|
|
||||||
|
|
||||||
// Prettier main
|
|
||||||
foo ? (bar ?? foo) : baz;
|
|
||||||
(foo ?? bar) ? a : b;
|
|
||||||
a ? b : (foo ?? bar);
|
|
||||||
```
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
#### Add parentheses for decorator expressions (#16458 by @y-schneider)
|
|
||||||
|
|
||||||
Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.
|
|
||||||
|
|
||||||
<!-- prettier-ignore -->
|
|
||||||
```ts
|
|
||||||
// Input
|
|
||||||
@(foo`tagged template`)
|
|
||||||
class X {}
|
|
||||||
|
|
||||||
// Prettier stable
|
|
||||||
@foo`tagged template`
|
|
||||||
class X {}
|
|
||||||
|
|
||||||
// Prettier main
|
|
||||||
@(foo`tagged template`)
|
|
||||||
class X {}
|
|
||||||
```
|
|
||||||
Reference in new issue
Block a user