Clean changelog

This commit is contained in:
fisker committed 2023-03-24 16:20:25 +08:00
1 parent 5ed59be7bd
commit 353e3ac64c
2 files changed
-55

No files matched your search

-24
View File
@@ -1,24 +0,0 @@
#### Allow decorators on private members and class expressions (#14548 by @fisker)
<!-- prettier-ignore -->
```ts
// Input
class A {
@decorator()
#privateMethod () {}
}
// Prettier stable
SyntaxError: Decorators are not valid here. (2:3)
1 | class A {
> 2 | @decorator()
| ^^^^^^^^^^^^
3 | #privateMethod () {}
4 | }
// Prettier main
class A {
@decorator()
#privateMethod() {}
}
```
-31
View File
@@ -1,31 +0,0 @@
#### Allow multiple decorators on same getter/setter (#14584 by @fisker)
<!-- prettier-ignore -->
```ts
// Input
class A {
@decorator()
get foo () {}
@decorator()
set foo (value) {}
}
// Prettier stable
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 main
class A {
@decorator()
get foo() {}
@decorator()
set foo(value) {}
}
```