Skip to content

Commit

Permalink
Regenerate draft
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Nov 21, 2021
1 parent c1f0b15 commit 5a31ea7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions website/blog/2021-11-21-2.5.0.md
Expand Up @@ -208,6 +208,36 @@ const paragraph2 = css`

```

#### Support ES2022 class-private-fields-in syntax in `espree` parser ([#11835](https://github.com/prettier/prettier/pull/11835) by [@fisker](https://github.com/fisker))

<!-- prettier-ignore -->
```jsx
// Input
class Foo {
#brand;
static isC(obj) {
return #brand in Foo;
}
}

// Prettier 2.4
SyntaxError: Unexpected token #brand (4:12)
2 | #brand;
3 | static isC(obj) {
> 4 | return #brand in Foo;
| ^
5 | }
6 | }

// Prettier 2.5
class Foo {
#brand;
static isC(obj) {
return #brand in Foo;
}
}
```

### TypeScript

#### Fix formatting for tagged template decorators ([#11717](https://github.com/prettier/prettier/pull/11717) by [@sosukesuzuki](https://github.com/sosukesuzuki))
Expand Down

0 comments on commit 5a31ea7

Please sign in to comment.