Skip to content

Commit

Permalink
Release 1.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Nov 9, 2019
1 parent 9b1726d commit 95b8e54
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. -->
Expand Down
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

This comment has been minimized.

Copy link
@fisker

fisker Nov 9, 2019

Member

lang

This comment has been minimized.

Copy link
@lydell

lydell Nov 9, 2019

Author Member

Thanks, fixed!

// 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)
Expand Down
12 changes: 0 additions & 12 deletions changelog_unreleased/cli/pr-6894.md

This file was deleted.

22 changes: 0 additions & 22 deletions changelog_unreleased/typescript/pr-6896.md

This file was deleted.

12 changes: 6 additions & 6 deletions docs/browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 });
});
Expand All @@ -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 });
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
12 changes: 6 additions & 6 deletions website/versioned_docs/version-stable/browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 });
});
Expand All @@ -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 });
```

0 comments on commit 95b8e54

Please sign in to comment.