Fix changelog

This commit is contained in:
fisker Cheung committed 2023-04-23 16:02:03 +08:00
1 parent 0416ff42e2
commit 1606af78cd
1 file changed
+2 -58
+2 -58
View File
@@ -1,63 +1,7 @@
# 2.8.8
[diff](https://github.com/prettier/prettier/compare/2.8.7...2.8.8)
#### Allow decorators on private members and class expressions ([#14548](https://github.com/prettier/prettier/pull/14548) by [@fisker](https://github.com/fisker))
<!-- prettier-ignore -->
```ts
// Input
class A {
@decorator()
#privateMethod () {}
}
// Prettier 2.8.7
SyntaxError: Decorators are not valid here. (2:3)
1 | class A {
> 2 | @decorator()
| ^^^^^^^^^^^^
3 | #privateMethod () {}
4 | }
// Prettier 2.8.8
class A {
@decorator()
#privateMethod() {}
}
```
#### Allow multiple decorators on same getter/setter ([#14584](https://github.com/prettier/prettier/pull/14584) by [@fisker](https://github.com/fisker))
<!-- prettier-ignore -->
```ts
// Input
class A {
@decorator()
get foo () {}
@decorator()
set foo (value) {}
}
// Prettier 2.8.7
SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3)
3 | get foo () {}
4 |
> 5 | @decorator()
| ^^^^^^^^^^^^
6 | set foo (value) {}
7 | }
// Prettier 2.8.8
class A {
@decorator()
get foo() {}
@decorator()
set foo(value) {}
}
```
This version is a republished version of v2.8.7.
A bad version was accidentally published and [it can't be unpublished](https://github.com/npm/cli/issues/1686), apologies for the churn.
# 2.8.7