Skip to content

Commit 326543f

Browse files
committed
Release 2.2.1
1 parent 81bfd3f commit 326543f

File tree

6 files changed

+47
-15
lines changed

6 files changed

+47
-15
lines changed

.github/ISSUE_TEMPLATE/formatting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Tip! Don't write this stuff manually.
2626
2727
-->
2828

29-
**Prettier 2.2.0**
29+
**Prettier 2.2.1**
3030
[Playground link](https://prettier.io/playground/#.....)
3131

3232
```sh

.github/ISSUE_TEMPLATE/integration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE:
2020

2121
**Environments:**
2222

23-
- Prettier Version: 2.2.0
23+
- Prettier Version: 2.2.1
2424
- Running Prettier via: <!-- CLI, Node.js API, Browser API, etc. -->
2525
- Runtime: <!-- Node.js v14, Chrome v83, etc. -->
2626
- Operating System: <!-- Windows, Linux, macOS, etc. -->

CHANGELOG.md

+32
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
# 2.2.1
2+
3+
[diff](https://github.com/prettier/prettier/compare/2.2.0...2.2.1)
4+
5+
#### Fix formatting for AssignmentExpression with ClassExpression ([#9741](https://github.com/prettier/prettier/pull/9741) by [@sosukesuzuki](https://github.com/sosukesuzuki))
6+
7+
<!-- prettier-ignore -->
8+
```js
9+
// Input
10+
module.exports = class A extends B {
11+
method() {
12+
console.log("foo");
13+
}
14+
};
15+
16+
// Prettier 2.2.0
17+
module.exports = class A extends (
18+
B
19+
) {
20+
method() {
21+
console.log("foo");
22+
}
23+
};
24+
25+
// Prettier 2.2.1
26+
module.exports = class A extends B {
27+
method() {
28+
console.log("foo");
29+
}
30+
};
31+
```
32+
133
# 2.2.0
234

335
[diff](https://github.com/prettier/prettier/compare/2.1.2...2.2.0)

docs/browser.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ See [Usage](#usage) below for examples.
2323
### Global
2424

2525
```html
26-
<script src="https://unpkg.com/[email protected].0/standalone.js"></script>
27-
<script src="https://unpkg.com/[email protected].0/parser-graphql.js"></script>
26+
<script src="https://unpkg.com/[email protected].1/standalone.js"></script>
27+
<script src="https://unpkg.com/[email protected].1/parser-graphql.js"></script>
2828
<script>
2929
prettier.format("query { }", {
3030
parser: "graphql",
@@ -51,8 +51,8 @@ prettier.format("query { }", {
5151

5252
```js
5353
define([
54-
"https://unpkg.com/[email protected].0/standalone.js",
55-
"https://unpkg.com/[email protected].0/parser-graphql.js",
54+
"https://unpkg.com/[email protected].1/standalone.js",
55+
"https://unpkg.com/[email protected].1/parser-graphql.js",
5656
], (prettier, ...plugins) => {
5757
prettier.format("query { }", { parser: "graphql", plugins });
5858
});
@@ -71,7 +71,7 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
7171
### Worker
7272

7373
```js
74-
importScripts("https://unpkg.com/[email protected].0/standalone.js");
75-
importScripts("https://unpkg.com/[email protected].0/parser-graphql.js");
74+
importScripts("https://unpkg.com/[email protected].1/standalone.js");
75+
importScripts("https://unpkg.com/[email protected].1/parser-graphql.js");
7676
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
7777
```

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prettier",
3-
"version": "2.3.0-dev",
3+
"version": "2.2.1",
44
"description": "Prettier is an opinionated code formatter",
55
"bin": "./bin/prettier.js",
66
"repository": "prettier/prettier",

website/versioned_docs/version-stable/browser.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ See [Usage](#usage) below for examples.
2424
### Global
2525

2626
```html
27-
<script src="https://unpkg.com/[email protected].0/standalone.js"></script>
28-
<script src="https://unpkg.com/[email protected].0/parser-graphql.js"></script>
27+
<script src="https://unpkg.com/[email protected].1/standalone.js"></script>
28+
<script src="https://unpkg.com/[email protected].1/parser-graphql.js"></script>
2929
<script>
3030
prettier.format("query { }", {
3131
parser: "graphql",
@@ -52,8 +52,8 @@ prettier.format("query { }", {
5252

5353
```js
5454
define([
55-
"https://unpkg.com/[email protected].0/standalone.js",
56-
"https://unpkg.com/[email protected].0/parser-graphql.js",
55+
"https://unpkg.com/[email protected].1/standalone.js",
56+
"https://unpkg.com/[email protected].1/parser-graphql.js",
5757
], (prettier, ...plugins) => {
5858
prettier.format("query { }", { parser: "graphql", plugins });
5959
});
@@ -72,7 +72,7 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
7272
### Worker
7373

7474
```js
75-
importScripts("https://unpkg.com/[email protected].0/standalone.js");
76-
importScripts("https://unpkg.com/[email protected].0/parser-graphql.js");
75+
importScripts("https://unpkg.com/[email protected].1/standalone.js");
76+
importScripts("https://unpkg.com/[email protected].1/parser-graphql.js");
7777
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
7878
```

0 commit comments

Comments
 (0)