diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index 0b6612c31..5de791af3 100644 --- a/.github/ISSUE_TEMPLATE/formatting.md +++ b/.github/ISSUE_TEMPLATE/formatting.md @@ -26,7 +26,7 @@ Tip! Don't write this stuff manually. --> -**Prettier 1.19.0** +**Prettier 1.19.1** [Playground link](https://prettier.io/playground/#.....) ```sh # Options (if any): diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index 9e9cf5057..ac867bf61 100644 --- a/.github/ISSUE_TEMPLATE/integration.md +++ b/.github/ISSUE_TEMPLATE/integration.md @@ -19,7 +19,7 @@ BEFORE SUBMITTING AN ISSUE: --> **Environments:** -- Prettier Version: 1.19.0 +- Prettier Version: 1.19.1 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index 79b4c778d..9621124ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,43 @@ +# 1.19.1 + +[diff](https://github.com/prettier/prettier/compare/1.19.0...1.19.1) + +#### Fix `--stdin` regression in 1.19.0 ([#6894](https://github.com/prettier/prettier/pull/6894) by [@lydell](https://github.com/lydell)) + + +```jsx +// Prettier stable +$ echo "test" | prettier --stdin --parser babel +[error] regeneratorRuntime is not defined + +// Prettier master +$ echo "test" | prettier --stdin --parser babel +test; +``` + +#### Fix formatting of union type as arrow function return type ([#6896](https://github.com/prettier/prettier/pull/6896) by [@thorn0](https://github.com/thorn0)) + + +```jsx +// Input +export const getVehicleDescriptor = async ( + vehicleId: string, +): Promise => {} + +// Prettier stable +export const getVehicleDescriptor = async ( + vehicleId: string +): Promise<| Collections.Parts.PrintedCircuitBoardAssembly["attributes"] +| undefined> => {}; + +// Prettier master +export const getVehicleDescriptor = async ( + vehicleId: string +): Promise< + Collections.Parts.PrintedCircuitBoardAssembly["attributes"] | undefined +> => {}; +``` + # 1.19.0 [diff](https://github.com/prettier/prettier/compare/1.18.2...1.19.0) diff --git a/changelog_unreleased/cli/pr-6894.md b/changelog_unreleased/cli/pr-6894.md deleted file mode 100644 index 7349aab11..000000000 --- a/changelog_unreleased/cli/pr-6894.md +++ /dev/null @@ -1,12 +0,0 @@ -#### Fix `--stdin` regression in 1.19.0 ([#6894](https://github.com/prettier/prettier/pull/6894) by [@lydell](https://github.com/lydell)) - - -```jsx -// Prettier stable -$ echo "test" | prettier --stdin --parser babel -[error] regeneratorRuntime is not defined - -// Prettier master -$ echo "test" | prettier --stdin --parser babel -test; -``` diff --git a/changelog_unreleased/typescript/pr-6896.md b/changelog_unreleased/typescript/pr-6896.md deleted file mode 100644 index e5cfea359..000000000 --- a/changelog_unreleased/typescript/pr-6896.md +++ /dev/null @@ -1,22 +0,0 @@ -#### Fix formatting of union type as arrow function return type ([#6896](https://github.com/prettier/prettier/pull/6896) by [@thorn0](https://github.com/thorn0)) - - -```jsx -// Input -export const getVehicleDescriptor = async ( - vehicleId: string, -): Promise => {} - -// Prettier stable -export const getVehicleDescriptor = async ( - vehicleId: string -): Promise<| Collections.Parts.PrintedCircuitBoardAssembly["attributes"] -| undefined> => {}; - -// Prettier master -export const getVehicleDescriptor = async ( - vehicleId: string -): Promise< - Collections.Parts.PrintedCircuitBoardAssembly["attributes"] | undefined -> => {}; -``` diff --git a/docs/browser.md b/docs/browser.md index 5492a3a5d..676e5952d 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -16,8 +16,8 @@ See [Usage](#usage) below for examples. ### Global ```html - - + + - + +