Skip to content

Commit b86701d

Browse files
author
Sosuke Suzuki
committed
Release 3.1.1
1 parent c97480c commit b86701d

File tree

8 files changed

+181
-37
lines changed

8 files changed

+181
-37
lines changed

.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 3.1.0**
29+
**Prettier 3.1.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: 3.1.0
23+
- Prettier Version: 3.1.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: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,147 @@
1+
# 3.1.1
2+
3+
[diff](https://github.com/prettier/prettier/compare/3.1.0...3.1.1)
4+
5+
#### Fix config file search ([#15363](https://github.com/prettier/prettier/pull/15363) by [@fisker](https://github.com/fisker))
6+
7+
Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.
8+
9+
```text
10+
├─ .prettierrc
11+
└─ test.js (A directory)
12+
└─ .prettierrc
13+
```
14+
15+
```js
16+
// Prettier 3.1.0
17+
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
18+
// <CWD>/test.js/.prettierrc
19+
20+
// Prettier 3.1.1
21+
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
22+
// <CWD>/.prettierrc
23+
```
24+
25+
#### Skip explicitly passed symbolic links with `--no-error-on-unmatched-pattern` ([#15533](https://github.com/prettier/prettier/pull/15533) by [@sanmai-NL](https://github.com/sanmai-NL))
26+
27+
Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.
28+
29+
In Prettier 3.1.1, you can use `--no-error-on-unmatched-pattern` to simply skip symbolic links.
30+
31+
#### Consistently use tabs in ternaries when `useTabs` is `true` ([#15662](https://github.com/prettier/prettier/pull/15662) by [@auvred](https://github.com/auvred))
32+
33+
<!-- prettier-ignore -->
34+
```jsx
35+
// Input
36+
aaaaaaaaaaaaaaa
37+
? bbbbbbbbbbbbbbbbbb
38+
: ccccccccccccccc
39+
? ddddddddddddddd
40+
: eeeeeeeeeeeeeee
41+
? fffffffffffffff
42+
: gggggggggggggggg;
43+
44+
// Prettier 3.1.0
45+
aaaaaaaaaaaaaaa
46+
? bbbbbbbbbbbbbbbbbb
47+
: ccccccccccccccc
48+
? ddddddddddddddd
49+
: eeeeeeeeeeeeeee
50+
? fffffffffffffff
51+
: gggggggggggggggg;
52+
53+
// Prettier 3.1.1
54+
aaaaaaaaaaaaaaa
55+
? bbbbbbbbbbbbbbbbbb
56+
: ccccccccccccccc
57+
? ddddddddddddddd
58+
: eeeeeeeeeeeeeee
59+
? fffffffffffffff
60+
: gggggggggggggggg;
61+
```
62+
63+
#### Improve config file search ([#15663](https://github.com/prettier/prettier/pull/15663) by [@fisker](https://github.com/fisker))
64+
65+
The Prettier config file search performance has been improved by more effective cache strategy.
66+
67+
#### Fix unstable and ugly formatting for comments in destructuring patterns ([#15708](https://github.com/prettier/prettier/pull/15708) by [@sosukesuzuki](https://github.com/sosukesuzuki))
68+
69+
<!-- prettier-ignore -->
70+
```tsx
71+
// Input
72+
const {
73+
foo,
74+
// bar
75+
// baz
76+
}: Foo = expr;
77+
78+
// Prettier 3.1.0
79+
const {
80+
foo1,
81+
} // bar
82+
// baz
83+
: Foo = expr;
84+
85+
// Prettier 3.1.0 second output
86+
const {
87+
foo1, // bar
88+
} // baz
89+
: Foo = expr;
90+
91+
// Prettier 3.1.1
92+
const {
93+
foo1,
94+
// bar
95+
// baz
96+
}: Foo = expr;
97+
```
98+
99+
#### Support "Import Attributes" ([#15718](https://github.com/prettier/prettier/pull/15718) by [@fisker](https://github.com/fisker))
100+
101+
[TypeScript 5.3](https://devblogs.microsoft.com/typescript/announcing-typescript-5-3/#import-attributes) supports the latest updates to the [import attributes](https://github.com/tc39/proposal-import-attributes) proposal.
102+
103+
```tsx
104+
import something from "./something.json" with { type: "json" };
105+
```
106+
107+
#### Fix false claim in docs that cursorOffset is incompatible with rangeStart/rangeEnd ([#15750](https://github.com/prettier/prettier/pull/15750) by [@ExplodingCabbage](https://github.com/ExplodingCabbage))
108+
109+
The cursorOffset option has in fact been compatible with rangeStart/rangeEnd for over 5 years, thanks to work by @ds300. However, Prettier's documentation (including the CLI `--help` text) continued to claim otherwise, falsely. The documentation is now fixed.
110+
111+
#### Keep curly braces and `from` keyword in empty `import` statements ([#15756](https://github.com/prettier/prettier/pull/15756) by [@fisker](https://github.com/fisker))
112+
113+
<!-- prettier-ignore -->
114+
```js
115+
// Input
116+
import { } from 'foo';
117+
import { /* comment */ } from 'bar';
118+
119+
// Prettier 3.1.0
120+
import {} from "foo";
121+
import /* comment */ "bar";
122+
123+
// Prettier 3.1.1
124+
import {} from "foo";
125+
import {} from /* comment */ "bar";
126+
```
127+
128+
#### Keep empty import attributes and assertions ([#15757](https://github.com/prettier/prettier/pull/15757) by [@fisker](https://github.com/fisker))
129+
130+
<!-- prettier-ignore -->
131+
```js
132+
// Input
133+
import foo from "foo" with {};
134+
import bar from "bar" assert {};
135+
136+
// Prettier 3.1.0
137+
import foo from "foo";
138+
import bar from "bar";
139+
140+
// Prettier 3.1.1
141+
import foo from "foo" with {};
142+
import bar from "bar" assert {};
143+
```
144+
1145
# 3.1.0
2146

3147
[diff](https://github.com/prettier/prettier/compare/3.0.3...3.1.0)

docs/browser.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Required options:
1818

1919
- **[`parser`](options.md#parser) (or [`filepath`](options.md#file-path))**: One of these options has to be specified for Prettier to know which parser to use.
2020

21-
- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in <https://unpkg.com/browse/[email protected].0/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
21+
- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in <https://unpkg.com/browse/[email protected].1/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
2222

2323
You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option.
2424

@@ -29,8 +29,8 @@ See below for examples.
2929
### Global
3030

3131
```html
32-
<script src="https://unpkg.com/[email protected].0/standalone.js"></script>
33-
<script src="https://unpkg.com/[email protected].0/plugins/graphql.js"></script>
32+
<script src="https://unpkg.com/[email protected].1/standalone.js"></script>
33+
<script src="https://unpkg.com/[email protected].1/plugins/graphql.js"></script>
3434
<script>
3535
(async () => {
3636
const formatted = await prettier.format("type Query { hello: String }", {
@@ -47,8 +47,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
4747

4848
```html
4949
<script type="module">
50-
import * as prettier from "https://unpkg.com/[email protected].0/standalone.mjs";
51-
import prettierPluginGraphql from "https://unpkg.com/[email protected].0/plugins/graphql.mjs";
50+
import * as prettier from "https://unpkg.com/[email protected].1/standalone.mjs";
51+
import prettierPluginGraphql from "https://unpkg.com/[email protected].1/plugins/graphql.mjs";
5252
5353
const formatted = await prettier.format("type Query { hello: String }", {
5454
parser: "graphql",
@@ -61,8 +61,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
6161

6262
```js
6363
define([
64-
"https://unpkg.com/[email protected].0/standalone.js",
65-
"https://unpkg.com/[email protected].0/plugins/graphql.js",
64+
"https://unpkg.com/[email protected].1/standalone.js",
65+
"https://unpkg.com/[email protected].1/plugins/graphql.js",
6666
], async (prettier, ...plugins) => {
6767
const formatted = await prettier.format("type Query { hello: String }", {
6868
parser: "graphql",
@@ -90,8 +90,8 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
9090
### Worker
9191

9292
```js
93-
importScripts("https://unpkg.com/[email protected].0/standalone.js");
94-
importScripts("https://unpkg.com/[email protected].0/plugins/graphql.js");
93+
importScripts("https://unpkg.com/[email protected].1/standalone.js");
94+
importScripts("https://unpkg.com/[email protected].1/plugins/graphql.js");
9595

9696
(async () => {
9797
const formatted = await prettier.format("type Query { hello: String }", {
@@ -107,9 +107,9 @@ If you want to format [embedded code](options.md#embedded-language-formatting),
107107

108108
```html
109109
<script type="module">
110-
import * as prettier from "https://unpkg.com/[email protected].0/standalone.mjs";
111-
import prettierPluginBabel from "https://unpkg.com/[email protected].0/plugins/babel.mjs";
112-
import prettierPluginEstree from "https://unpkg.com/[email protected].0/plugins/estree.mjs";
110+
import * as prettier from "https://unpkg.com/[email protected].1/standalone.mjs";
111+
import prettierPluginBabel from "https://unpkg.com/[email protected].1/plugins/babel.mjs";
112+
import prettierPluginEstree from "https://unpkg.com/[email protected].1/plugins/estree.mjs";
113113
114114
console.log(
115115
await prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {
@@ -125,10 +125,10 @@ The HTML code embedded in JavaScript stays unformatted because the `html` parser
125125

126126
```html
127127
<script type="module">
128-
import * as prettier from "https://unpkg.com/[email protected].0/standalone.mjs";
129-
import prettierPluginBabel from "https://unpkg.com/[email protected].0/plugins/babel.mjs";
130-
import prettierPluginEstree from "https://unpkg.com/[email protected].0/plugins/estree.mjs";
131-
import prettierPluginHtml from "https://unpkg.com/[email protected].0/plugins/html.mjs";
128+
import * as prettier from "https://unpkg.com/[email protected].1/standalone.mjs";
129+
import prettierPluginBabel from "https://unpkg.com/[email protected].1/plugins/babel.mjs";
130+
import prettierPluginEstree from "https://unpkg.com/[email protected].1/plugins/estree.mjs";
131+
import prettierPluginHtml from "https://unpkg.com/[email protected].1/plugins/html.mjs";
132132
133133
console.log(
134134
await 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": "3.2.0-dev",
3+
"version": "3.1.1",
44
"description": "Prettier is an opinionated code formatter",
55
"bin": "./bin/prettier.cjs",
66
"repository": "prettier/prettier",

website/versioned_docs/version-stable/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ If `options.editorconfig` is `true` and an [`.editorconfig` file](https://editor
6767

6868
The promise will be rejected if there was an error parsing the configuration file.
6969

70-
The search starts at `process.cwd()`, or at `fileUrlOrPath` if provided. Please see the [lilconfig docs](https://github.com/antonk52/lilconfig) for details on how the resolving works.
70+
The search starts at `process.cwd()`, or at the directory of `fileUrlOrPath` if provided.
7171

7272
```js
7373
const configFile = await prettier.resolveConfigFile(filePath);

website/versioned_docs/version-stable/browser.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Required options:
1919

2020
- **[`parser`](options.md#parser) (or [`filepath`](options.md#file-path))**: One of these options has to be specified for Prettier to know which parser to use.
2121

22-
- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in <https://unpkg.com/browse/[email protected].0/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
22+
- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in <https://unpkg.com/browse/[email protected].1/plugins/>. Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
2323

2424
You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option.
2525

@@ -30,8 +30,8 @@ See below for examples.
3030
### Global
3131

3232
```html
33-
<script src="https://unpkg.com/[email protected].0/standalone.js"></script>
34-
<script src="https://unpkg.com/[email protected].0/plugins/graphql.js"></script>
33+
<script src="https://unpkg.com/[email protected].1/standalone.js"></script>
34+
<script src="https://unpkg.com/[email protected].1/plugins/graphql.js"></script>
3535
<script>
3636
(async () => {
3737
const formatted = await prettier.format("type Query { hello: String }", {
@@ -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 * as prettier from "https://unpkg.com/[email protected].0/standalone.mjs";
52-
import prettierPluginGraphql from "https://unpkg.com/[email protected].0/plugins/graphql.mjs";
51+
import * as prettier from "https://unpkg.com/[email protected].1/standalone.mjs";
52+
import prettierPluginGraphql from "https://unpkg.com/[email protected].1/plugins/graphql.mjs";
5353
5454
const formatted = await 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/[email protected].0/standalone.js",
66-
"https://unpkg.com/[email protected].0/plugins/graphql.js",
65+
"https://unpkg.com/[email protected].1/standalone.js",
66+
"https://unpkg.com/[email protected].1/plugins/graphql.js",
6767
], async (prettier, ...plugins) => {
6868
const formatted = await prettier.format("type Query { hello: String }", {
6969
parser: "graphql",
@@ -91,8 +91,8 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
9191
### Worker
9292

9393
```js
94-
importScripts("https://unpkg.com/[email protected].0/standalone.js");
95-
importScripts("https://unpkg.com/[email protected].0/plugins/graphql.js");
94+
importScripts("https://unpkg.com/[email protected].1/standalone.js");
95+
importScripts("https://unpkg.com/[email protected].1/plugins/graphql.js");
9696

9797
(async () => {
9898
const formatted = await prettier.format("type Query { hello: String }", {
@@ -108,9 +108,9 @@ If you want to format [embedded code](options.md#embedded-language-formatting),
108108

109109
```html
110110
<script type="module">
111-
import * as prettier from "https://unpkg.com/[email protected].0/standalone.mjs";
112-
import prettierPluginBabel from "https://unpkg.com/[email protected].0/plugins/babel.mjs";
113-
import prettierPluginEstree from "https://unpkg.com/[email protected].0/plugins/estree.mjs";
111+
import * as prettier from "https://unpkg.com/[email protected].1/standalone.mjs";
112+
import prettierPluginBabel from "https://unpkg.com/[email protected].1/plugins/babel.mjs";
113+
import prettierPluginEstree from "https://unpkg.com/[email protected].1/plugins/estree.mjs";
114114
115115
console.log(
116116
await prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {
@@ -126,10 +126,10 @@ The HTML code embedded in JavaScript stays unformatted because the `html` parser
126126

127127
```html
128128
<script type="module">
129-
import * as prettier from "https://unpkg.com/[email protected].0/standalone.mjs";
130-
import prettierPluginBabel from "https://unpkg.com/[email protected].0/plugins/babel.mjs";
131-
import prettierPluginEstree from "https://unpkg.com/[email protected].0/plugins/estree.mjs";
132-
import prettierPluginHtml from "https://unpkg.com/[email protected].0/plugins/html.mjs";
129+
import * as prettier from "https://unpkg.com/[email protected].1/standalone.mjs";
130+
import prettierPluginBabel from "https://unpkg.com/[email protected].1/plugins/babel.mjs";
131+
import prettierPluginEstree from "https://unpkg.com/[email protected].1/plugins/estree.mjs";
132+
import prettierPluginHtml from "https://unpkg.com/[email protected].1/plugins/html.mjs";
133133
134134
console.log(
135135
await prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {

website/versioned_docs/version-stable/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Configuration File
44
original_id: configuration
55
---
66

7-
Prettier uses [lilconfig](https://github.com/antonk52/lilconfig) for configuration file support. This means you can configure Prettier via (in order of precedence):
7+
You can configure Prettier via (in order of precedence):
88

99
- A `"prettier"` key in your `package.json` file.
1010
- A `.prettierrc` file written in JSON or YAML.

0 commit comments

Comments
 (0)