Clean changelog for 3.1.1 (#15889)

Clean changelogs
This commit is contained in:
SUZUKI Sosuke authored and GitHub committed 2024-01-07 23:52:00 +09:00
1 parent e9b8764fc4
commit 5c6450db9c
8 files changed
-128

No files matched your search

-19
View File
@@ -1,19 +0,0 @@
#### Fix config file search (#15363 by @fisker)
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.
```text
├─ .prettierrc
└─ test.js (A directory)
└─ .prettierrc
```
```js
// Prettier stable
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// <CWD>/test.js/.prettierrc
// Prettier main
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// <CWD>/.prettierrc
```
-3
View File
@@ -1,3 +0,0 @@
#### Improve config file search (#15663 by @fisker)
The Prettier config file search performance has been improved by more effective cache strategy.
-5
View File
@@ -1,5 +0,0 @@
#### Skip explicitly passed symbolic links with `--no-error-on-unmatched-pattern` (#15533 by @sanmai-NL)
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.
In Prettier main, you can use `--no-error-on-unmatched-pattern` to simply skip symbolic links.
-31
View File
@@ -1,31 +0,0 @@
#### Consistently use tabs in ternaries when `useTabs` is `true` (#15662 by @auvred)
<!-- prettier-ignore -->
```jsx
// Input
aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;
// Prettier stable
aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;
// Prettier main
aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;
```
-16
View File
@@ -1,16 +0,0 @@
#### Keep curly braces and `from` keyword in empty `import` statements (#15756 by @fisker)
<!-- prettier-ignore -->
```js
// Input
import { } from 'foo';
import { /* comment */ } from 'bar';
// Prettier stable
import {} from "foo";
import /* comment */ "bar";
// Prettier main
import {} from "foo";
import {} from /* comment */ "bar";
```
-16
View File
@@ -1,16 +0,0 @@
#### Keep empty import attributes and assertions (#15757 by @fisker)
<!-- prettier-ignore -->
```js
// Input
import foo from "foo" with {};
import bar from "bar" assert {};
// Prettier stable
import foo from "foo";
import bar from "bar";
// Prettier main
import foo from "foo" with {};
import bar from "bar" assert {};
```
-31
View File
@@ -1,31 +0,0 @@
#### Fix unstable and ugly formatting for comments in destructuring patterns (#15708 by @sosukesuzuki)
<!-- prettier-ignore -->
```tsx
// Input
const {
foo,
// bar
// baz
}: Foo = expr;
// Prettier stable
const {
foo1,
} // bar
// baz
: Foo = expr;
// Prettier stable second output
const {
foo1, // bar
} // baz
: Foo = expr;
// Prettier main
const {
foo1,
// bar
// baz
}: Foo = expr;
```
-7
View File
@@ -1,7 +0,0 @@
#### Support "Import Attributes" (#15718 by @fisker)
[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.
```tsx
import something from "./something.json" with { type: "json" };
```