Release 1.19.1

This commit is contained in:
Simon Lydell committed 2019-11-09 13:20:32 +01:00
1 parent 9b1726d3cd
commit 95b8e54d1a
8 files changed
+55 -49

No files matched your search

+1 -1
View File
@@ -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):
+1 -1
View File
@@ -19,7 +19,7 @@ BEFORE SUBMITTING AN ISSUE:
-->
**Environments:**
- Prettier Version: 1.19.0
- Prettier Version: 1.19.1
- Running Prettier via: <!-- CLI, Node.js API, Browser API, etc. -->
- Runtime: <!-- Node.js v6, Chrome v67, etc. -->
- Operating System: <!-- Windows, Linux, macOS, etc. -->
+40
View File
@@ -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))
<!-- prettier-ignore -->
```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))
<!-- prettier-ignore -->
```jsx
// Input
export const getVehicleDescriptor = async (
vehicleId: string,
): Promise<Collections.Parts.PrintedCircuitBoardAssembly['attributes'] | undefined> => {}
// 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)
-12
View File
@@ -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))
<!-- prettier-ignore -->
```jsx
// Prettier stable
$ echo "test" | prettier --stdin --parser babel
[error] regeneratorRuntime is not defined
// Prettier master
$ echo "test" | prettier --stdin --parser babel
test;
```
@@ -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))
<!-- prettier-ignore -->
```jsx
// Input
export const getVehicleDescriptor = async (
vehicleId: string,
): Promise<Collections.Parts.PrintedCircuitBoardAssembly['attributes'] | undefined> => {}
// 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
> => {};
```
+6 -6
View File
@@ -16,8 +16,8 @@ See [Usage](#usage) below for examples.
### Global
```html
<script src="https://unpkg.com/prettier@1.19.0/standalone.js"></script>
<script src="https://unpkg.com/prettier@1.19.0/parser-graphql.js"></script>
<script src="https://unpkg.com/prettier@1.19.1/standalone.js"></script>
<script src="https://unpkg.com/prettier@1.19.1/parser-graphql.js"></script>
<script>
prettier.format("query { }", {
parser: "graphql",
@@ -42,8 +42,8 @@ prettier.format("query { }", {
```js
define([
"https://unpkg.com/prettier@1.19.0/standalone.js",
"https://unpkg.com/prettier@1.19.0/parser-graphql.js"
"https://unpkg.com/prettier@1.19.1/standalone.js",
"https://unpkg.com/prettier@1.19.1/parser-graphql.js"
], (prettier, ...plugins) => {
prettier.format("query { }", { parser: "graphql", plugins });
});
@@ -62,7 +62,7 @@ This syntax doesn't necessarily work in the browser, but it can be used when bun
### Worker
```js
importScripts("https://unpkg.com/prettier@1.19.0/standalone.js");
importScripts("https://unpkg.com/prettier@1.19.0/parser-graphql.js");
importScripts("https://unpkg.com/prettier@1.19.1/standalone.js");
importScripts("https://unpkg.com/prettier@1.19.1/parser-graphql.js");
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
```
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "1.20.0-dev",
"version": "1.19.1",
"description": "Prettier is an opinionated code formatter",
"bin": {
"prettier": "./bin/prettier.js"
@@ -17,8 +17,8 @@ See [Usage](#usage) below for examples.
### Global
```html
<script src="https://unpkg.com/prettier@1.19.0/standalone.js"></script>
<script src="https://unpkg.com/prettier@1.19.0/parser-graphql.js"></script>
<script src="https://unpkg.com/prettier@1.19.1/standalone.js"></script>
<script src="https://unpkg.com/prettier@1.19.1/parser-graphql.js"></script>
<script>
prettier.format("query { }", {
parser: "graphql",
@@ -43,8 +43,8 @@ prettier.format("query { }", {
```js
define([
"https://unpkg.com/prettier@1.19.0/standalone.js",
"https://unpkg.com/prettier@1.19.0/parser-graphql.js"
"https://unpkg.com/prettier@1.19.1/standalone.js",
"https://unpkg.com/prettier@1.19.1/parser-graphql.js"
], (prettier, ...plugins) => {
prettier.format("query { }", { parser: "graphql", plugins });
});
@@ -63,7 +63,7 @@ This syntax doesn't necessarily work in the browser, but it can be used when bun
### Worker
```js
importScripts("https://unpkg.com/prettier@1.19.0/standalone.js");
importScripts("https://unpkg.com/prettier@1.19.0/parser-graphql.js");
importScripts("https://unpkg.com/prettier@1.19.1/standalone.js");
importScripts("https://unpkg.com/prettier@1.19.1/parser-graphql.js");
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
```