Skip to content

Commit ad505bf

Browse files
committed
Release 2.6.1
1 parent 6128c5c commit ad505bf

6 files changed

Lines changed: 95 additions & 29 deletions

File tree

.github/ISSUE_TEMPLATE/formatting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Don't fill the form below manually! Let a program create a report for you:
2626
2727
-->
2828

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

3232
```sh

.github/ISSUE_TEMPLATE/integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE:
2020

2121
**Environments:**
2222

23-
- Prettier Version: 2.6.0
23+
- Prettier Version: 2.6.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

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,69 @@
1+
# 2.6.1
2+
3+
[diff](https://github.com/prettier/prettier/compare/2.6.0...2.6.1)
4+
5+
#### Ignore `loglevel` when printing information ([#12477](https://github.com/prettier/prettier/pull/12477) by [@fisker](https://github.com/fisker))
6+
7+
<!-- prettier-ignore -->
8+
```bash
9+
# Prettier 2.6.0
10+
prettier --loglevel silent --find-config-path index.js
11+
# Nothing printed
12+
13+
# Prettier 2.6.1
14+
prettier --loglevel silent --help no-color
15+
# .prettierrc
16+
```
17+
18+
#### Make artifact friendly for webpack ([#12485](https://github.com/prettier/prettier/pull/12485), [#12511](https://github.com/prettier/prettier/pull/12511) by [@fisker](https://github.com/fisker))
19+
20+
Fixes two problems when bundling our UMD files with webpack:
21+
22+
- A error `` "`....__exportStar` is not a function" `` throws when running the bundles.
23+
- Some files cause warning about `"Critical dependency: the request of a dependency is an expression"`.
24+
25+
#### Fix non-idempotent formatting of function calls with complex type arguments ([#12508](https://github.com/prettier/prettier/pull/12508) by [@sosukesuzuki](https://github.com/sosukesuzuki))
26+
27+
<!-- prettier-ignore -->
28+
```tsx
29+
// Input
30+
const foo =
31+
doSomething<{ foo1: "foo1", foo2: "foo2", foo3: "foo3", foo4: "foo4", foo5: "foo5" }>();
32+
33+
// Prettier 2.6.0 (first)
34+
const foo =
35+
doSomething<{
36+
foo1: "foo1";
37+
foo2: "foo2";
38+
foo3: "foo3";
39+
foo4: "foo4";
40+
foo5: "foo5";
41+
}>();
42+
43+
// Prettier 2.6.0 (second)
44+
const foo = doSomething<{
45+
foo1: "foo1";
46+
foo2: "foo2";
47+
foo3: "foo3";
48+
foo4: "foo4";
49+
foo5: "foo5";
50+
}>();
51+
52+
// Prettier 2.6.1
53+
const foo = doSomething<{
54+
foo1: "foo1";
55+
foo2: "foo2";
56+
foo3: "foo3";
57+
foo4: "foo4";
58+
foo5: "foo5";
59+
}>();
60+
61+
```
62+
63+
#### Fix minimist security issue ([#12513](https://github.com/prettier/prettier/pull/12513) by [@dependabot](https://github.com/dependabot))
64+
65+
Details: [Prototype Pollution](https://security.snyk.io/vuln/SNYK-JS-MINIMIST-559764)
66+
167
# 2.6.0
268

369
[diff](https://github.com/prettier/prettier/compare/2.5.1...2.6.0)

docs/browser.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ See below for examples.
3232
### Global
3333

3434
```html
35-
<script src="https://unpkg.com/prettier@2.6.0/standalone.js"></script>
36-
<script src="https://unpkg.com/prettier@2.6.0/parser-graphql.js"></script>
35+
<script src="https://unpkg.com/prettier@2.6.1/standalone.js"></script>
36+
<script src="https://unpkg.com/prettier@2.6.1/parser-graphql.js"></script>
3737
<script>
3838
prettier.format("type Query { hello: String }", {
3939
parser: "graphql",
@@ -48,8 +48,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
4848

4949
```html
5050
<script type="module">
51-
import prettier from "https://unpkg.com/prettier@2.6.0/esm/standalone.mjs";
52-
import parserGraphql from "https://unpkg.com/prettier@2.6.0/esm/parser-graphql.mjs";
51+
import prettier from "https://unpkg.com/prettier@2.6.1/esm/standalone.mjs";
52+
import parserGraphql from "https://unpkg.com/prettier@2.6.1/esm/parser-graphql.mjs";
5353
5454
prettier.format("type Query { hello: String }", {
5555
parser: "graphql",
@@ -62,8 +62,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
6262

6363
```js
6464
define([
65-
"https://unpkg.com/prettier@2.6.0/standalone.js",
66-
"https://unpkg.com/prettier@2.6.0/parser-graphql.js",
65+
"https://unpkg.com/prettier@2.6.1/standalone.js",
66+
"https://unpkg.com/prettier@2.6.1/parser-graphql.js",
6767
], (prettier, ...plugins) => {
6868
prettier.format("type Query { hello: String }", {
6969
parser: "graphql",
@@ -88,8 +88,8 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
8888
### Worker
8989

9090
```js
91-
importScripts("https://unpkg.com/prettier@2.6.0/standalone.js");
92-
importScripts("https://unpkg.com/prettier@2.6.0/parser-graphql.js");
91+
importScripts("https://unpkg.com/prettier@2.6.1/standalone.js");
92+
importScripts("https://unpkg.com/prettier@2.6.1/parser-graphql.js");
9393
prettier.format("type Query { hello: String }", {
9494
parser: "graphql",
9595
plugins: prettierPlugins,
@@ -102,8 +102,8 @@ If you want to format [embedded code](options.md#embedded-language-formatting),
102102

103103
```html
104104
<script type="module">
105-
import prettier from "https://unpkg.com/prettier@2.6.0/esm/standalone.mjs";
106-
import parserBabel from "https://unpkg.com/prettier@2.6.0/esm/parser-babel.mjs";
105+
import prettier from "https://unpkg.com/prettier@2.6.1/esm/standalone.mjs";
106+
import parserBabel from "https://unpkg.com/prettier@2.6.1/esm/parser-babel.mjs";
107107
108108
console.log(
109109
prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {
@@ -119,9 +119,9 @@ The HTML code embedded in JavaScript stays unformatted because the `html` parser
119119

120120
```html
121121
<script type="module">
122-
import prettier from "https://unpkg.com/prettier@2.6.0/esm/standalone.mjs";
123-
import parserBabel from "https://unpkg.com/prettier@2.6.0/esm/parser-babel.mjs";
124-
import parserHtml from "https://unpkg.com/prettier@2.6.0/esm/parser-html.mjs";
122+
import prettier from "https://unpkg.com/prettier@2.6.1/esm/standalone.mjs";
123+
import parserBabel from "https://unpkg.com/prettier@2.6.1/esm/parser-babel.mjs";
124+
import parserHtml from "https://unpkg.com/prettier@2.6.1/esm/parser-html.mjs";
125125
126126
console.log(
127127
prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prettier",
3-
"version": "2.7.0-dev",
3+
"version": "2.6.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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ See below for examples.
3333
### Global
3434

3535
```html
36-
<script src="https://unpkg.com/prettier@2.6.0/standalone.js"></script>
37-
<script src="https://unpkg.com/prettier@2.6.0/parser-graphql.js"></script>
36+
<script src="https://unpkg.com/prettier@2.6.1/standalone.js"></script>
37+
<script src="https://unpkg.com/prettier@2.6.1/parser-graphql.js"></script>
3838
<script>
3939
prettier.format("type Query { hello: String }", {
4040
parser: "graphql",
@@ -49,8 +49,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
4949

5050
```html
5151
<script type="module">
52-
import prettier from "https://unpkg.com/prettier@2.6.0/esm/standalone.mjs";
53-
import parserGraphql from "https://unpkg.com/prettier@2.6.0/esm/parser-graphql.mjs";
52+
import prettier from "https://unpkg.com/prettier@2.6.1/esm/standalone.mjs";
53+
import parserGraphql from "https://unpkg.com/prettier@2.6.1/esm/parser-graphql.mjs";
5454
5555
prettier.format("type Query { hello: String }", {
5656
parser: "graphql",
@@ -63,8 +63,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
6363

6464
```js
6565
define([
66-
"https://unpkg.com/prettier@2.6.0/standalone.js",
67-
"https://unpkg.com/prettier@2.6.0/parser-graphql.js",
66+
"https://unpkg.com/prettier@2.6.1/standalone.js",
67+
"https://unpkg.com/prettier@2.6.1/parser-graphql.js",
6868
], (prettier, ...plugins) => {
6969
prettier.format("type Query { hello: String }", {
7070
parser: "graphql",
@@ -89,8 +89,8 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
8989
### Worker
9090

9191
```js
92-
importScripts("https://unpkg.com/prettier@2.6.0/standalone.js");
93-
importScripts("https://unpkg.com/prettier@2.6.0/parser-graphql.js");
92+
importScripts("https://unpkg.com/prettier@2.6.1/standalone.js");
93+
importScripts("https://unpkg.com/prettier@2.6.1/parser-graphql.js");
9494
prettier.format("type Query { hello: String }", {
9595
parser: "graphql",
9696
plugins: prettierPlugins,
@@ -103,8 +103,8 @@ If you want to format [embedded code](options.md#embedded-language-formatting),
103103

104104
```html
105105
<script type="module">
106-
import prettier from "https://unpkg.com/prettier@2.6.0/esm/standalone.mjs";
107-
import parserBabel from "https://unpkg.com/prettier@2.6.0/esm/parser-babel.mjs";
106+
import prettier from "https://unpkg.com/prettier@2.6.1/esm/standalone.mjs";
107+
import parserBabel from "https://unpkg.com/prettier@2.6.1/esm/parser-babel.mjs";
108108
109109
console.log(
110110
prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {
@@ -120,9 +120,9 @@ The HTML code embedded in JavaScript stays unformatted because the `html` parser
120120

121121
```html
122122
<script type="module">
123-
import prettier from "https://unpkg.com/prettier@2.6.0/esm/standalone.mjs";
124-
import parserBabel from "https://unpkg.com/prettier@2.6.0/esm/parser-babel.mjs";
125-
import parserHtml from "https://unpkg.com/prettier@2.6.0/esm/parser-html.mjs";
123+
import prettier from "https://unpkg.com/prettier@2.6.1/esm/standalone.mjs";
124+
import parserBabel from "https://unpkg.com/prettier@2.6.1/esm/parser-babel.mjs";
125+
import parserHtml from "https://unpkg.com/prettier@2.6.1/esm/parser-html.mjs";
126126
127127
console.log(
128128
prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {

0 commit comments

Comments
 (0)