Skip to content

Commit afee0db

Browse files
author
Sosuke Suzuki
committed
Release 3.0.1
1 parent c3d53dc commit afee0db

File tree

7 files changed

+217
-36
lines changed

7 files changed

+217
-36
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.0.0**
29+
**Prettier 3.0.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.0.0
23+
- Prettier Version: 3.0.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: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,184 @@
1+
# 3.0.1
2+
3+
[diff](https://github.com/prettier/prettier/compare/3.0.0...3.0.1)
4+
5+
#### Fix cursor positioning for a special case ([#14812](https://github.com/prettier/prettier/pull/14812) by [@fisker](https://github.com/fisker))
6+
7+
<!-- prettier-ignore -->
8+
```js
9+
// <|> is the cursor position
10+
11+
/* Input */
12+
// All messages are represented in JSON.
13+
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
14+
import {<|> } from "fs"
15+
16+
/* Prettier 3.0.0 */
17+
// All messages are represented in JSON.
18+
// So, the prettier.py <|>controls a subprocess which spawns "node {this_file}".
19+
import {} from "fs"
20+
21+
/* Prettier 3.0.1 */
22+
// All messages are represented in JSON.
23+
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
24+
import {<|>} from "fs"
25+
```
26+
27+
#### Fix plugins/estree.d.ts to make it a module ([#15018](https://github.com/prettier/prettier/pull/15018) by [@kingyue737](https://github.com/kingyue737))
28+
29+
Add `export {}` in `plugins/estree.d.ts` to fix the "File is not a module" error
30+
31+
#### Add parenthesis around leading multiline comment in return statement ([#15037](https://github.com/prettier/prettier/pull/15037) by [@auvred](https://github.com/auvred))
32+
33+
<!-- prettier-ignore -->
34+
```jsx
35+
// Input
36+
function fn() {
37+
return (
38+
/**
39+
* @type {...}
40+
*/ expresssion
41+
)
42+
}
43+
44+
// Prettier 3.0.0
45+
function fn() {
46+
return /**
47+
* @type {...}
48+
*/ expresssion;
49+
}
50+
51+
// Prettier 3.0.1
52+
function fn() {
53+
return (
54+
/**
55+
* @type {...}
56+
*/ expresssion
57+
);
58+
}
59+
```
60+
61+
#### Add support for Vue "Generic Components" ([#15066](https://github.com/prettier/prettier/pull/15066) by [@auvred](https://github.com/auvred))
62+
63+
https://blog.vuejs.org/posts/vue-3-3#generic-components
64+
65+
<!-- prettier-ignore -->
66+
```vue
67+
<!-- Input -->
68+
<script setup lang="ts" generic="T extends Type1 & Type2 & (Type3 | Type4), U extends string | number | boolean"></script>
69+
70+
<!-- Prettier 3.0.0 -->
71+
<script
72+
setup
73+
lang="ts"
74+
generic="T extends Type1 & Type2 & (Type3 | Type4), U extends string | number | boolean"
75+
></script>
76+
77+
<!-- Prettier 3.0.1 -->
78+
<script
79+
setup
80+
lang="ts"
81+
generic="
82+
T extends Type1 & Type2 & (Type3 | Type4),
83+
U extends string | number | boolean
84+
"
85+
></script>
86+
```
87+
88+
#### Fix comments print in `IfStatement` ([#15076](https://github.com/prettier/prettier/pull/15076) by [@fisker](https://github.com/fisker))
89+
90+
<!-- prettier-ignore -->
91+
```js
92+
function a(b) {
93+
if (b) return 1; // comment
94+
else return 2;
95+
}
96+
97+
/* Prettier 3.0.0 */
98+
Error: Comment "comment" was not printed. Please report this error!
99+
100+
/* Prettier 3.0.1 */
101+
function a(b) {
102+
if (b) return 1; // comment
103+
else return 2;
104+
}
105+
```
106+
107+
#### Add missing type definition for `printer.preprocess` ([#15123](https://github.com/prettier/prettier/pull/15123) by [@so1ve](https://github.com/so1ve))
108+
109+
```diff
110+
export interface Printer<T = any> {
111+
// ...
112+
+ preprocess?:
113+
+ | ((ast: T, options: ParserOptions<T>) => T | Promise<T>)
114+
+ | undefined;
115+
}
116+
```
117+
118+
#### Add missing `getVisitorKeys` method type definition for `Printer` ([#15125](https://github.com/prettier/prettier/pull/15125) by [@auvred](https://github.com/auvred))
119+
120+
```tsx
121+
const printer: Printer = {
122+
print: () => [],
123+
getVisitorKeys(node, nonTraversableKeys) {
124+
return ["body"];
125+
},
126+
};
127+
```
128+
129+
#### Add typing to support `readonly` array properties of AST Node ([#15127](https://github.com/prettier/prettier/pull/15127) by [@auvred](https://github.com/auvred))
130+
131+
<!-- prettier-ignore -->
132+
```tsx
133+
// Input
134+
interface TestNode {
135+
readonlyArray: readonly string[];
136+
}
137+
138+
declare const path: AstPath<TestNode>;
139+
140+
path.map(() => "", "readonlyArray");
141+
142+
// Prettier 3.0.0
143+
interface TestNode {
144+
readonlyArray: readonly string[];
145+
}
146+
147+
declare const path: AstPath<TestNode>;
148+
149+
path.map(() => "", "readonlyArray");
150+
// ^ Argument of type '"readonlyArray"' is not assignable to parameter of type '"regularArray"'. ts(2345)
151+
152+
// Prettier 3.0.1
153+
interface TestNode {
154+
readonlyArray: readonly string[];
155+
}
156+
157+
declare const path: AstPath<TestNode>;
158+
159+
path.map(() => "", "readonlyArray");
160+
```
161+
162+
#### Add space before unary minus followed by a function call ([#15129](https://github.com/prettier/prettier/pull/15129) by [@pamelalozano](https://github.com/pamelalozano))
163+
164+
<!-- prettier-ignore -->
165+
```less
166+
// Input
167+
div {
168+
margin: - func();
169+
}
170+
171+
// Prettier 3.0.0
172+
div {
173+
margin: -func();
174+
}
175+
176+
// Prettier 3.0.1
177+
div {
178+
margin: - func();
179+
}
180+
```
181+
1182
# 3.0.0
2183

3184
[diff](https://github.com/prettier/prettier/compare/3.0.0-alpha.6...3.0.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.1.0-dev",
3+
"version": "3.0.1",
44
"description": "Prettier is an opinionated code formatter",
55
"bin": "./bin/prettier.cjs",
66
"repository": "prettier/prettier",

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/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ If you don’t have a configuration file, or want to ignore it if it does exist,
115115

116116
## `--ignore-path`
117117

118-
Path to a file containing patterns that describe files to ignore. By default, Prettier looks for `./.prettierignore`.\
118+
Path to a file containing patterns that describe files to ignore. By default, Prettier looks for `./.gitignore` and `./.prettierignore`.\
119119
Multiple values are accepted.
120120

121121
## `--list-different`

0 commit comments

Comments
 (0)