prettier/prettier (prettier)
### [`v2.8.8`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#288)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/2.8.7...2.8.8)
This version is a republished version of v2.8.7.
A bad version was accidentally published and [it can't be unpublished](https://redirect.github.com/npm/cli/issues/1686), apologies for the churn.
### [`v2.8.7`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#287)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/2.8.6...2.8.7)
[diff](https://redirect.github.com/prettier/prettier/compare/2.8.6...2.8.7)
##### Allow multiple decorators on same getter/setter ([#14584](https://redirect.github.com/prettier/prettier/pull/14584) by [@fisker](https://redirect.github.com/fisker))
```ts
// Input
class A {
@decorator()
get foo () {}
@decorator()
set foo (value) {}
}
// Prettier 2.8.6
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.7
class A {
@decorator()
get foo() {}
@decorator()
set foo(value) {}
}
```
### [`v2.8.6`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#286)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/2.8.5...2.8.6)
[diff](https://redirect.github.com/prettier/prettier/compare/2.8.5...2.8.6)
##### Allow decorators on private members and class expressions ([#14548](https://redirect.github.com/prettier/prettier/pull/14548) by [@fisker](https://redirect.github.com/fisker))
```ts
// Input
class A {
@decorator()
#privateMethod () {}
}
// Prettier 2.8.5
SyntaxError: Decorators are not valid here. (2:3)
1 | class A {
> 2 | @decorator()
| ^^^^^^^^^^^^
3 | #privateMethod () {}
4 | }
// Prettier 2.8.6
class A {
@decorator()
#privateMethod() {}
}
```
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
2.8.5
->2.8.8
Release Notes
prettier/prettier (prettier)
### [`v2.8.8`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#288) [Compare Source](https://redirect.github.com/prettier/prettier/compare/2.8.7...2.8.8) This version is a republished version of v2.8.7. A bad version was accidentally published and [it can't be unpublished](https://redirect.github.com/npm/cli/issues/1686), apologies for the churn. ### [`v2.8.7`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#287) [Compare Source](https://redirect.github.com/prettier/prettier/compare/2.8.6...2.8.7) [diff](https://redirect.github.com/prettier/prettier/compare/2.8.6...2.8.7) ##### Allow multiple decorators on same getter/setter ([#14584](https://redirect.github.com/prettier/prettier/pull/14584) by [@fisker](https://redirect.github.com/fisker)) ```ts // Input class A { @decorator() get foo () {} @decorator() set foo (value) {} } // Prettier 2.8.6 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.7 class A { @decorator() get foo() {} @decorator() set foo(value) {} } ``` ### [`v2.8.6`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#286) [Compare Source](https://redirect.github.com/prettier/prettier/compare/2.8.5...2.8.6) [diff](https://redirect.github.com/prettier/prettier/compare/2.8.5...2.8.6) ##### Allow decorators on private members and class expressions ([#14548](https://redirect.github.com/prettier/prettier/pull/14548) by [@fisker](https://redirect.github.com/fisker)) ```ts // Input class A { @decorator() #privateMethod () {} } // Prettier 2.8.5 SyntaxError: Decorators are not valid here. (2:3) 1 | class A { > 2 | @decorator() | ^^^^^^^^^^^^ 3 | #privateMethod () {} 4 | } // Prettier 2.8.6 class A { @decorator() #privateMethod() {} } ```Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.