Skip to content

Commit

Permalink
Release 1.16.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatyang committed Jan 31, 2019
1 parent fc93bbc commit 21eb84a
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/formatting.md
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/integration.md
Expand Up @@ -19,7 +19,7 @@ BEFORE SUBMITTING AN ISSUE:
-->

**Environments:**
- Prettier Version: 1.16.2
- Prettier Version: 1.16.3
- Running Prettier via: <!-- CLI, Node.js API, Browser API, etc. -->
- Runtime: <!-- Node.js v6, Chrome v67, etc. -->
- Operating System: <!-- Windows, Linux, macOS, etc. -->
Expand Down
38 changes: 38 additions & 0 deletions 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.

<!-- prettier-ignore -->
```ts
// Input
export default {
load<K, T>(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, T>(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)
Expand Down
31 changes: 0 additions & 31 deletions CHANGELOG.unreleased.md
Expand Up @@ -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.

<!-- prettier-ignore -->
```ts
// Input
export default {
load<K, T>(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, T>(k: K, t: T) {
return { k, t };
}
};
```
2 changes: 1 addition & 1 deletion 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"
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-stable/options.md
Expand Up @@ -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_
Expand Down

0 comments on commit 21eb84a

Please sign in to comment.