diff --git a/changelog_unreleased/angular/19571.md b/changelog_unreleased/angular/19571.md deleted file mode 100644 index 5ece540ab..000000000 --- a/changelog_unreleased/angular/19571.md +++ /dev/null @@ -1,19 +0,0 @@ -#### Support expression for exhaustive typechecking (#19571 by @fisker) - - -```html - -@switch (state.mode) { - @default never(state); -} - - -@switch (state.mode) { - @default never; -} - - -@switch (state.mode) { - @default never(state); -} -``` diff --git a/changelog_unreleased/css/19516.md b/changelog_unreleased/css/19516.md deleted file mode 100644 index ef249cf2e..000000000 --- a/changelog_unreleased/css/19516.md +++ /dev/null @@ -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(+)` was being converted into `type( +)` which is invalid CSS and does not work. - - -```css -/* Input */ -div { - border-radius: attr(br type(+)); -} - -/* Prettier stable */ -div { - border-radius: attr(br type( +)); -} - -/* Prettier main */ -div { - border-radius: attr(br type(+)); -} -``` diff --git a/changelog_unreleased/flow/19568.md b/changelog_unreleased/flow/19568.md deleted file mode 100644 index 46ba1b247..000000000 --- a/changelog_unreleased/flow/19568.md +++ /dev/null @@ -1,14 +0,0 @@ -#### Stop enforcing empty module declaration to break (#19568 by @fisker) - - -```flow -// Input -declare module "foo" {} - -// Prettier stable -declare module "foo" { -} - -// Prettier main -declare module "foo" {} -``` diff --git a/changelog_unreleased/javascript/19581.md b/changelog_unreleased/javascript/19581.md deleted file mode 100644 index 09cb42081..000000000 --- a/changelog_unreleased/javascript/19581.md +++ /dev/null @@ -1,21 +0,0 @@ -#### Handle dangling comments in `SwitchStatement` (#19581 by @fisker) - - -```jsx -// Input -switch (foo) { - // comment -} - -// Prettier stable -switch ( - foo - // comment -) { -} - -// Prettier main -switch (foo) { - // comment -} -``` diff --git a/changelog_unreleased/less/19503.md b/changelog_unreleased/less/19503.md deleted file mode 100644 index 0c97da0f6..000000000 --- a/changelog_unreleased/less/19503.md +++ /dev/null @@ -1,25 +0,0 @@ -#### Remove extra spaces after `[` in map lookups (#19503 by @kovsu) - - -```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]; -} -``` diff --git a/changelog_unreleased/less/19517.md b/changelog_unreleased/less/19517.md deleted file mode 100644 index 2ee2a6f0e..000000000 --- a/changelog_unreleased/less/19517.md +++ /dev/null @@ -1,19 +0,0 @@ -#### Remove spaces between merge markers and colons (#19517 by @kovsu) - - -```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; -} -``` diff --git a/changelog_unreleased/less/19574.md b/changelog_unreleased/less/19574.md deleted file mode 100644 index b5c1f060c..000000000 --- a/changelog_unreleased/less/19574.md +++ /dev/null @@ -1,24 +0,0 @@ -#### Fix adjacent block comments being corrupted (#19574 by @kovsu) - - -```less -// Input -/* a *//* b */ -/* a */* { - color: red; -} - -// Prettier stable -/* a */ -/* b */ -/* a * { - color: red; -} - -// Prettier main -/* a */ /* b */ -/* a */ -* { - color: red; -} -``` diff --git a/changelog_unreleased/markdown/19351.md b/changelog_unreleased/markdown/19351.md deleted file mode 100644 index 8341bf584..000000000 --- a/changelog_unreleased/markdown/19351.md +++ /dev/null @@ -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: - - -```markdown - -999999998. text -999999998. text -999999998. text -999999998. text - -1234567890123456789012) text - - -999999998. text -999999999. text -1000000000. text -1000000001. text - -1234567890123456789012) text - - -999999998. text -999999999. text -999999999. text -999999999. text - -1234567890123456789012) text -``` diff --git a/changelog_unreleased/markdown/19487.md b/changelog_unreleased/markdown/19487.md deleted file mode 100644 index 53fdb055d..000000000 --- a/changelog_unreleased/markdown/19487.md +++ /dev/null @@ -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. - - -```md - -[link](<> "title") - - -[link]( "title") - - -[link](<> "title") -``` diff --git a/changelog_unreleased/markdown/19527.md b/changelog_unreleased/markdown/19527.md deleted file mode 100644 index aa24171ca..000000000 --- a/changelog_unreleased/markdown/19527.md +++ /dev/null @@ -1,13 +0,0 @@ -#### Preserve wiki links with aliases (#19527 by @kovsu) - - -```markdown - -[[Foo:Bar]] - - -[[Foo]] - - -[[Foo:Bar]] -``` diff --git a/changelog_unreleased/misc/19567.md b/changelog_unreleased/misc/19567.md deleted file mode 100644 index 5ac721126..000000000 --- a/changelog_unreleased/misc/19567.md +++ /dev/null @@ -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. diff --git a/changelog_unreleased/typescript/19565.md b/changelog_unreleased/typescript/19565.md deleted file mode 100644 index 94d717f15..000000000 --- a/changelog_unreleased/typescript/19565.md +++ /dev/null @@ -1,15 +0,0 @@ -#### Fix comments being dropped on shorthand `type` import/export specifiers (#19565 by @kirkwaiblinger) - - -```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"; -``` diff --git a/changelog_unreleased/typescript/19572.md b/changelog_unreleased/typescript/19572.md deleted file mode 100644 index 114051ad1..000000000 --- a/changelog_unreleased/typescript/19572.md +++ /dev/null @@ -1,24 +0,0 @@ -#### Ignore comments inside mapped type when checking type parameter comments (#19572 by @fisker) - - -```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; -}>(); -``` diff --git a/changelog_unreleased/typescript/19583.md b/changelog_unreleased/typescript/19583.md deleted file mode 100644 index 694965c5c..000000000 --- a/changelog_unreleased/typescript/19583.md +++ /dev/null @@ -1,20 +0,0 @@ -#### Remove space in comment-only object type (#19583 by @fisker) - - -```tsx -// Input -var foo = { - /* comment */ -}; -type Foo = { - /* comment */ -}; - -// Prettier stable -var foo = {/* comment */}; -type Foo = { /* comment */ }; - -// Prettier main -var foo = {/* comment */}; -type Foo = {/* comment */}; -```