Clean changelog_unreleased

This commit is contained in:
fisker committed 2026-07-10 00:22:23 +08:00
1 parent b6c7d18068
commit 4ae1707539
14 files changed
-265

No files matched your search

-19
View File
@@ -1,19 +0,0 @@
#### Support expression for exhaustive typechecking (#19571 by @fisker)
<!-- prettier-ignore -->
```html
<!-- Input -->
@switch (state.mode) {
@default never(state);
}
<!-- Prettier stable -->
@switch (state.mode) {
@default never;
}
<!-- Prettier main -->
@switch (state.mode) {
@default never(state);
}
```
-21
View File
@@ -1,21 +0,0 @@
#### Prevent addition space in `type()` with `+` (#19516 by @bigandy)
This fixes the addition space before `+` in CSS `type()` declaration. For example `type(<number>+)` was being converted into `type(<number> +)` which is invalid CSS and does not work.
<!-- prettier-ignore -->
```css
/* Input */
div {
border-radius: attr(br type(<length>+));
}
/* Prettier stable */
div {
border-radius: attr(br type(<length> +));
}
/* Prettier main */
div {
border-radius: attr(br type(<length>+));
}
```
-14
View File
@@ -1,14 +0,0 @@
#### Stop enforcing empty module declaration to break (#19568 by @fisker)
<!-- prettier-ignore -->
```flow
// Input
declare module "foo" {}
// Prettier stable
declare module "foo" {
}
// Prettier main
declare module "foo" {}
```
-21
View File
@@ -1,21 +0,0 @@
#### Handle dangling comments in `SwitchStatement` (#19581 by @fisker)
<!-- prettier-ignore -->
```jsx
// Input
switch (foo) {
// comment
}
// Prettier stable
switch (
foo
// comment
) {
}
// Prettier main
switch (foo) {
// comment
}
```
-25
View File
@@ -1,25 +0,0 @@
#### Remove extra spaces after `[` in map lookups (#19503 by @kovsu)
<!-- prettier-ignore -->
```less
// Input
.foo {
color: #theme[ primary];
color: #theme[@name];
color: #theme[@@name];
}
// Prettier stable
.foo {
color: #theme[ primary];
color: #theme[ @name];
color: #theme[ @@name];
}
// Prettier main
.foo {
color: #theme[primary];
color: #theme[@name];
color: #theme[@@name];
}
```
-19
View File
@@ -1,19 +0,0 @@
#### Remove spaces between merge markers and colons (#19517 by @kovsu)
<!-- prettier-ignore -->
```less
// Input
a {
box-shadow + : 0 0 1px #000;
}
// Prettier stable
a {
box-shadow+ : 0 0 1px #000;
}
// Prettier main
a {
box-shadow+: 0 0 1px #000;
}
```
-24
View File
@@ -1,24 +0,0 @@
#### Fix adjacent block comments being corrupted (#19574 by @kovsu)
<!-- prettier-ignore -->
```less
// Input
/* a *//* b */
/* a */* {
color: red;
}
// Prettier stable
/* a */
/* b */
/* a * {
color: red;
}
// Prettier main
/* a */ /* b */
/* a */
* {
color: red;
}
```
-32
View File
@@ -1,32 +0,0 @@
#### Cap ordered list mark at 999,999,999 (#19351 by @tats-u)
CommonMark parsers only support ordered list item numbers up to 999,999,999.
With this change, Prettier now caps the ordered list item number at 999,999,999 to ensure that the output is correctly parsed as an ordered list by CommonMark parsers. Numbers larger than 999,999,999 are not parsed as list item numbers and are left unchanged in the output:
<!-- prettier-ignore -->
```markdown
<!-- Input -->
999999998. text
999999998. text
999999998. text
999999998. text
1234567890123456789012) text
<!-- Prettier stable -->
999999998. text
999999999. text
1000000000. text
1000000001. text
1234567890123456789012) text
<!-- Prettier main -->
999999998. text
999999999. text
999999999. text
999999999. text
1234567890123456789012) text
```
-15
View File
@@ -1,15 +0,0 @@
#### Avoid corrupting empty link with title (#19487 by @andersk)
Do not remove `<>` from an inline link or image with an empty URL and a title, as this removal would change its interpretation.
<!-- prettier-ignore -->
```md
<!-- Input -->
[link](<> "title")
<!-- Prettier stable -->
[link]( "title")
<!-- Prettier main -->
[link](<> "title")
```
-13
View File
@@ -1,13 +0,0 @@
#### Preserve wiki links with aliases (#19527 by @kovsu)
<!-- prettier-ignore -->
```markdown
<!-- Input -->
[[Foo:Bar]]
<!-- Prettier stable -->
[[Foo]]
<!-- Prettier main -->
[[Foo:Bar]]
```
-3
View File
@@ -1,3 +0,0 @@
#### Preserving comments' `placement` property (#19567 by @Janther)
Prettier@3.9.0 deleted an undocumented property on comments, which was already used by plugins, `comment.placement` is now available again after comment attach.
-15
View File
@@ -1,15 +0,0 @@
#### Fix comments being dropped on shorthand `type` import/export specifiers (#19565 by @kirkwaiblinger)
<!-- prettier-ignore -->
```tsx
// Input
export { type /* comment */ T } from "foo";
import { type /* comment */ T } from "foo";
// Prettier stable
Error: Comment "comment" was not printed. Please report this error!
// Prettier main
export { type /* comment */ T } from "foo";
import { type /* comment */ T } from "foo";
```
-24
View File
@@ -1,24 +0,0 @@
#### Ignore comments inside mapped type when checking type parameter comments (#19572 by @fisker)
<!-- prettier-ignore -->
```tsx
// Input
foo<{
// comment
[key in keyof Foo]: number
}>();
// Prettier stable
foo<
{
// comment
[key in keyof Foo]: number;
}
>();
// Prettier main
foo<{
// comment
[key in keyof Foo]: number;
}>();
```
-20
View File
@@ -1,20 +0,0 @@
#### Remove space in comment-only object type (#19583 by @fisker)
<!-- prettier-ignore -->
```tsx
// Input
var foo = {
/* comment */
};
type Foo = {
/* comment */
};
// Prettier stable
var foo = {/* comment */};
type Foo = { /* comment */ };
// Prettier main
var foo = {/* comment */};
type Foo = {/* comment */};
```