merge similar entries in CHANGELOG.unreleased.md (#6782)

master
Georgii Dolzhykov 2019-11-02 11:40:41 +02:00 committed by Simon Lydell
parent f6bd59dfd3
commit 1490536054
1 changed files with 5 additions and 22 deletions

View File

@ -123,25 +123,28 @@ class C extends B {
} }
``` ```
#### TypeScript: Prettier removed `?` from optional computed class fields ([#6657] by [@cryrivers]) #### TypeScript: Fix optional computed class fields and methods ([#6657] by [@cryrivers], [#6673] by [@thorn0])
Still happens if the field key is a complex expression, but has been fixed in this case: Still broken if the key is a complex expression, but has been fixed in these cases:
<!-- prettier-ignore --> <!-- prettier-ignore -->
```ts ```ts
// Input // Input
class Foo { class Foo {
[bar]?: number; [bar]?: number;
protected [s]?() {}
} }
// Output (Prettier stable) // Output (Prettier stable)
class Foo { class Foo {
[bar]: number; [bar]: number;
protected [s?]() {};
} }
// Output (Prettier master) // Output (Prettier master)
class Foo { class Foo {
[bar]?: number; [bar]?: number;
protected [s]?() {}
} }
``` ```
@ -1097,26 +1100,6 @@ class A {
} }
``` ```
#### TypeScript: Fix optional computed methods ([#6673] by [@thorn0])
<!-- prettier-ignore -->
```ts
// Input
class A {
protected [s]?() {}
}
// Output (Prettier stable)
class A {
protected [s?]() {}
}
// Output (Prettier master)
class A {
protected [s]?() {}
}
```
#### Angular: Put a closing parenthesis onto a new line after ternaries passed to pipes ([#5682] by [@selvazhagan]) #### Angular: Put a closing parenthesis onto a new line after ternaries passed to pipes ([#5682] by [@selvazhagan])
<!-- prettier-ignore --> <!-- prettier-ignore -->