diff --git a/CHANGELOG.md b/CHANGELOG.md index a479c93ea..afab1bd36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) - - -```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)) - - -```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