Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 2.1 blog post #8932

Merged
merged 25 commits into from Aug 24, 2020
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
12f0eb4
Add draft for 2.1 blog post
sosukesuzuki Aug 7, 2020
e832661
Update cspell.json
sosukesuzuki Aug 7, 2020
fd5c224
Update website/blog/2020-08-04-2.1.0.md
sosukesuzuki Aug 15, 2020
25053ce
Update website/blog/2020-08-04-2.1.0.md
sosukesuzuki Aug 15, 2020
685a238
Update website/blog/2020-08-04-2.1.0.md
sosukesuzuki Aug 15, 2020
2204a59
Update website/blog/2020-08-04-2.1.0.md
sosukesuzuki Aug 15, 2020
0120031
Update website/blog/2020-08-04-2.1.0.md
sosukesuzuki Aug 15, 2020
0581ddc
Merge branch 'master' into 2.1-blog-post
sosukesuzuki Aug 15, 2020
f5a30b4
Update changelogs
sosukesuzuki Aug 15, 2020
36cce5c
Add author to cspell ignore patterns
sosukesuzuki Aug 15, 2020
d202490
Update cspell.json
fisker Aug 15, 2020
d629579
Fix original changelog
sosukesuzuki Aug 15, 2020
8946c4b
Merge branch 'master' into 2.1-blog-post
sosukesuzuki Aug 21, 2020
16a04f3
Run draft script
sosukesuzuki Aug 21, 2020
3835171
Update
sosukesuzuki Aug 21, 2020
9b5d9ed
Fix TypeScript on Highlights
sosukesuzuki Aug 21, 2020
877c7bc
Fix heading
sosukesuzuki Aug 21, 2020
ee2c08d
Fix author
sosukesuzuki Aug 21, 2020
c28670c
Fix changelog for 8410
sosukesuzuki Aug 21, 2020
3c99549
Fix syntax highlight
sosukesuzuki Aug 21, 2020
f3997da
Move changelog for 7844 to /scss
sosukesuzuki Aug 21, 2020
b670a42
Update website/blog/2020-08-21-2.1.0.md
sosukesuzuki Aug 21, 2020
fd4da0b
Remove changelog_unreleased
sosukesuzuki Aug 24, 2020
dc7b708
Update filename
sosukesuzuki Aug 24, 2020
6605917
Replace to actual version manually
sosukesuzuki Aug 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
43 changes: 31 additions & 12 deletions website/blog/2020-08-21-2.1.0.md
Expand Up @@ -42,37 +42,56 @@ I am expecting this to come out exactly like it went in.

### TypeScript

#### Support type annotations on catch clauses ([#8805](https://github.com/prettier/prettier/pull/8805) by [@fisker](https://github.com/fisker))
#### Support for TypeScript 4.0

- [Labeled Tuple Elements](https://devblogs.microsoft.com/typescript/announcing-typescript-4-0/#labeled-tuple-elements)
- [Short-Circuiting Assignment Operators](https://devblogs.microsoft.com/typescript/announcing-typescript-4-0/#short-circuiting-assignment-operators)
- [Type annotations on catch clauses](https://devblogs.microsoft.com/typescript/announcing-typescript-4-0/#unknown-on-catch)

##### Labeled Tuple Elements ([#8885](https://github.com/prettier/prettier/pull/8885) by [@fisker](https://github.com/fisker), [#8982](https://github.com/prettier/prettier/pull/8982) by [@sosukesuzuki](https://github.com/sosukesuzuki))

<!-- prettier-ignore -->
```ts
// Input
try {} catch (e: any) {}
type Range = [start: number, end: number];

// Prettier stable
try {
} catch (e) {}
SyntaxError: Unexpected token, expected "," (1:20)
> 1 | type Range = [start: number, end: number];

// Prettier master
try {
} catch (e: any) {}
type Range = [start: number, end: number];
```

#### Support `Labeled Tuple Elements` ([#8885](https://github.com/prettier/prettier/pull/8885) by [@fisker](https://github.com/fisker), [#8982](https://github.com/prettier/prettier/pull/8982) by [@sosukesuzuki](https://github.com/sosukesuzuki))
#### Short-Circuiting Assignment Operators ([#8982](https://github.com/prettier/prettier/pull/8982) by [@sosukesuzuki](https://github.com/sosukesuzuki))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added about Short-Circuiting Assignment Operators here #8982 (comment)


[`Labeled Tuple Elements`](https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#labeled-tuple-elements)
<!-- prettier-ignore -->
```ts
// Input
a ||= b;

// Prettier stable
SyntaxError: Expression expected. (1:5)
> 1 | a ||= b;

// Prettier master
a ||= b;
```

##### Type annotations on catch clauses ([#8805](https://github.com/prettier/prettier/pull/8805) by [@fisker](https://github.com/fisker))

<!-- prettier-ignore -->
```ts
// Input
type Range = [start: number, end: number];
try {} catch (e: any) {}

// Prettier stable
SyntaxError: Unexpected token, expected "," (1:20)
> 1 | type Range = [start: number, end: number];
try {
} catch (e) {}

// Prettier master
type Range = [start: number, end: number];
try {
} catch (e: any) {}
```

## Other changes
Expand Down