diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index 1c6d89d84245..4f2772e57494 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.16.2** +**Prettier 1.16.3** [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 3cef5cf7cf91..73e6d6a2ab86 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.16.2 +- Prettier Version: 1.16.3 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index 8269dbb3d127..74414342ef77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,41 @@ +# 1.16.3 + +[diff](https://github.com/prettier/prettier/compare/1.16.2...1.16.3) + +- TypeScript: Revert "Update typescript-estree to new package name" ([#5818] by [@ikatyang]) + + There's an internal change introduced in Prettier 1.16.2, + which updated `typescript-estree` to its new package name, + but unfortunately it broke the output + so we reverted it as a temporary workaround for now. + + + ```ts + // Input + export default { + load(k: K, t: T) { + return {k, t}; + } + } + + // Output (Prettier 1.16.2) + export default { + load(k: K, t: T) { + return { k, t }; + } + }; + + // Output (Prettier 1.16.3) + export default { + load(k: K, t: T) { + return { k, t }; + } + }; + ``` + +[@ikatyang]: https://github.com/ikatyang +[#5818]: https://github.com/prettier/prettier/pull/5818 + # 1.16.2 [diff](https://github.com/prettier/prettier/compare/1.16.1...1.16.2) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 4e91479dc0c4..7b5a8f5be608 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -41,34 +41,3 @@ Examples: ``` --> - -- TypeScript: Revert "Update typescript-estree to new package name" ([#5818] by [@ikatyang]) - - There's an internal change introduced in Prettier 1.16.2, - which updated `typescript-estree` to its new package name, - but unfortunately it broke the output - so we reverted it as a temporary workaround for now. - - - ```ts - // Input - export default { - load(k: K, t: T) { - return {k, t}; - } - } - - // Output (Prettier 1.16.2) - export default { - load(k: K, t: T) { - return { k, t }; - } - }; - - // Output (Prettier 1.16.3) - export default { - load(k: K, t: T) { - return { k, t }; - } - }; - ``` diff --git a/package.json b/package.json index f38b63620c69..b026a90fe577 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prettier", - "version": "1.17.0-dev", + "version": "1.16.3", "description": "Prettier is an opinionated code formatter", "bin": { "prettier": "./bin/prettier.js" diff --git a/website/versioned_docs/version-stable/options.md b/website/versioned_docs/version-stable/options.md index b691df97f33e..097479a673c7 100644 --- a/website/versioned_docs/version-stable/options.md +++ b/website/versioned_docs/version-stable/options.md @@ -184,7 +184,7 @@ Valid options: - `"babel"` (via [@babel/parser](https://github.com/babel/babel/tree/master/packages/babel-parser)) _Named `"babylon"` until v1.16.0_ - `"babel-flow"` (Same as `"babel"` but enables Flow parsing explicitly to avoid ambiguity) _First available in v1.16.0_ - `"flow"` (via [flow-parser](https://github.com/facebook/flow/tree/master/src/parser)) -- `"typescript"` (via [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint)) _First available in v1.4.0_ +- `"typescript"` (via [typescript-estree](https://github.com/JamesHenry/typescript-estree)) _First available in v1.4.0_ - `"css"` (via [postcss-scss](https://github.com/postcss/postcss-scss) and [postcss-less](https://github.com/shellscape/postcss-less), autodetects which to use) _First available in v1.7.1_ - `"scss"` (same parsers as `"css"`, prefers postcss-scss) _First available in v1.7.1_ - `"less"` (same parsers as `"css"`, prefers postcss-less) _First available in v1.7.1_