Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Apr 5, 2020
1 parent f6aab2c commit 41ff833
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions changelog_unreleased/javascript/pr-6319.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#### Support the 'smart' pipeline operator proposal ([#6319](https://github.com/prettier/prettier/pull/6319) by [@sosukesuzuki](https://github.com/sosukesuzuki), [@thorn0](https://github.com/thorn0))
#### Support the 'smart' and 'fsharp-style' pipeline operator proposal ([#6319](https://github.com/prettier/prettier/pull/6319) by [@sosukesuzuki](https://github.com/sosukesuzuki), [@thorn0](https://github.com/thorn0))

[Link to the proposal](https://github.com/js-choi/proposal-smart-pipelines)
- [Link to the 'smart' pipeline proposal](https://github.com/js-choi/proposal-smart-pipelines)
- [Link to the 'fsharp-style' pipeline proposal](https://github.com/valtech-nyc/proposal-fsharp-pipelines)

**Smart Pipeline:**

<!-- prettier-ignore -->
```js
Expand All @@ -15,3 +18,19 @@ SyntaxError: Unexpected character '#' (1:6)
// Output (Prettier master)
5 |> # * 2
```

**F#-style Pipeline:**

<!-- prettier-ignore -->
```js
// Input
promises |> await;

// Output (Prettier stable)
SyntaxError: Unexpected token (1:18)
> 1 | promises |> await;
| ^

// Output (Prettier master)
promises |> await;
```

0 comments on commit 41ff833

Please sign in to comment.