diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index 1c6d89d84..4f2772e57 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 3cef5cf7c..73e6d6a2a 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 8269dbb3d..74414342e 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 764e3973b..62792873e 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -68,6 +68,3 @@ Examples: | bordered | Toggles rendering of the border around the list | boolean | false | | itemLayout | The layout of list, default is `horizontal`, If a vertical list is desired, set the itemLayout property to `vertical` | string | - | ``` - -[@chenshuai2144]: https://github.com/chenshuai2144 -[#5701]: https://github.com/prettier/prettier/pull/5701 diff --git a/package.json b/package.json index d159b1238..f23c96118 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,7 @@ "jest-snapshot-serializer-raw": "1.1.0", "jest-watch-typeahead": "0.1.0", "mkdirp": "0.5.1", - "prettier": "1.16.2", + "prettier": "1.16.3", "prettylint": "1.0.0", "rimraf": "2.6.2", "rollup": "0.47.6", diff --git a/website/versioned_docs/version-stable/options.md b/website/versioned_docs/version-stable/options.md index b691df97f..097479a67 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_ diff --git a/yarn.lock b/yarn.lock index 0f111ffe0..afa73a8b1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4675,10 +4675,10 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -prettier@1.16.2: - version "1.16.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.2.tgz#f60bc5929a7f9a05260cc88d5430391100092414" - integrity sha512-vBMdCn1LjrFi2CpBsiWVKOq+WP9poXDTIGPe2sG3eE33LQ3b6IUgmaMjLZKKY+frD/8FqPeEK1qAx9mOV8iruA== +prettier@1.16.3: + version "1.16.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.3.tgz#8c62168453badef702f34b45b6ee899574a6a65d" + integrity sha512-kn/GU6SMRYPxUakNXhpP0EedT/KmaPzr0H5lIsDogrykbaxOpOfAFfk5XA7DZrJyMAv1wlMV3CPcZruGXVVUZw== pretty-format@^23.0.1, pretty-format@^23.2.0: version "23.2.0"