diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index 18607121..a05161be 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.18.0** +**Prettier 1.18.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 becece64..bedc3d5f 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.18.0 +- Prettier Version: 1.18.1 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index 464250b6..3030c889 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,47 @@ +# 1.18.1 + +[diff](https://github.com/prettier/prettier/compare/1.18.1...1.18.0) + +- TypeScript: Add trailing comma in tsx, only for arrow function ([#6190] by [@sosukesuzuki]) + + Prettier inserts a trailing comma to single type parameter for arrow functions in tsx, since v 1.18. But, this feature inserts a trailing comma to type parameter for besides arrow functions too (e.g, function , interface). This change fix it. + + + ```tsx + // Input + interface Interface1 { + one: "one"; + } + function function1() { + return "one"; + } + + // Output (Prettier stable) + interface Interface1 { + one: "one"; + } + function function1() { + return "one"; + } + + // Output (Prettier master) + interface Interface1 { + one: "one"; + } + function function1() { + return "one"; + } + ``` + +- Config: Match dotfiles in config overrides ([#6194] by [@duailibe]) + + When using [`overrides`](https://prettier.io/docs/en/configuration.html#configuration-overrides) in the config file, Prettier was not matching dotfiles (files that start with `.`). This was fixed in 1.18.1 + +[#6190]: https://github.com/prettier/prettier/pull/6190 +[#6194]: https://github.com/prettier/prettier/pull/6194 +[@duailibe]: https://github.com/duailibe +[@sosukesuzuki]: https://github.com/sosukesuzuki + # 1.18.0 [diff](https://github.com/prettier/prettier/compare/1.17.1...1.18.0) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index d16b0cf3..538a5fec 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -43,43 +43,3 @@ const link = http://example.com; ``` --> - -#### TypeScript: Add trailing comma in tsx, only for arrow function ([#6190] by [@sosukesuzuki]) - -Prettier inserts a trailing comma to single type parameter for arrow functions in tsx, since v 1.18. But, this feature inserts a trailing comma to type parameter for besides arrow functions too (e.g, function , interface). This change fix it. - - -```tsx -// Input -interface Interface1 { - one: "one"; -} -function function1() { - return "one"; -} - -// Output (Prettier stable) -interface Interface1 { - one: "one"; -} -function function1() { - return "one"; -} - -// Output (Prettier master) -interface Interface1 { - one: "one"; -} -function function1() { - return "one"; -} -``` - -#### Config: Match dotfiles in config overrides ([#6194] by [@duailibe]) - -When using [`overrides`](https://prettier.io/docs/en/configuration.html#configuration-overrides) in the config file, Prettier was not matching dotfiles (files that start with `.`). This was fixed in 1.18.1 - -[#6190]: https://github.com/prettier/prettier/pull/6190 -[#6194]: https://github.com/prettier/prettier/pull/6194 -[@duailibe]: https://github.com/duailibe -[@sosukesuzuki]: https://github.com/sosukesuzuki diff --git a/package.json b/package.json index 6761f0a9..b475dc5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prettier", - "version": "1.19.0-dev", + "version": "1.18.1", "description": "Prettier is an opinionated code formatter", "bin": { "prettier": "./bin/prettier.js"