diff --git a/changelog_unreleased/flow/14073.md b/changelog_unreleased/flow/14073.md deleted file mode 100644 index 8e6f005711c9..000000000000 --- a/changelog_unreleased/flow/14073.md +++ /dev/null @@ -1,13 +0,0 @@ -#### Fix formatting of empty type parameters (#14073 by @fisker) - - -```jsx -// Input -const foo: bar = () => baz; - -// Prettier stable -Error: Comment "comment" was not printed. Please report this error! - -// Prettier main -const foo: bar = () => baz; -``` diff --git a/changelog_unreleased/handlebars/13691.md b/changelog_unreleased/handlebars/13691.md deleted file mode 100644 index ab836c2d16dc..000000000000 --- a/changelog_unreleased/handlebars/13691.md +++ /dev/null @@ -1,34 +0,0 @@ -#### Preserve self-closing tags (#13691 by @dcyriller) - - -```hbs -{{! Input }} -
-
- - - - - - - -{{! Prettier stable }} -
-
- - - - - - - -{{! Prettier main }} -
-
- - - - - - -``` diff --git a/changelog_unreleased/handlebars/13930.md b/changelog_unreleased/handlebars/13930.md deleted file mode 100644 index 6e824a32e02c..000000000000 --- a/changelog_unreleased/handlebars/13930.md +++ /dev/null @@ -1,42 +0,0 @@ -#### Allow custom "else if"-like blocks with block params (#13930 by @jamescdavis) - -#13507 added support for custom block keywords used with `else`, but failed to allow block params. This updates printer-glimmer to allow block params with custom "else if"-like blocks. - - -```hbs -{{! Input }} -{#when isAtWork as |work|}} - Ship that - {{work}}! -{{else when isReading as |book|}} - You can finish - {{book}} - eventually... -{{else}} - Go to bed! -{{/when}} - -{{! Prettier stable }} -{{#when isAtWork as |work|}} - Ship that - {{work}}! -{{else when isReading}} - You can finish - {{book}} - eventually... -{{else}} - Go to bed! -{{/when}} - -{{! Prettier main }} -{#when isAtWork as |work|}} - Ship that - {{work}}! -{{else when isReading as |book|}} - You can finish - {{book}} - eventually... -{{else}} - Go to bed! -{{/when}} -``` diff --git a/changelog_unreleased/javascript/14000.md b/changelog_unreleased/javascript/14000.md deleted file mode 100644 index 914800969a96..000000000000 --- a/changelog_unreleased/javascript/14000.md +++ /dev/null @@ -1,19 +0,0 @@ -#### Fix missing parentheses when an expression statement starts with `let[` (#14000, #14044 by @fisker, @thorn0) - - -```jsx -// Input -(let[0] = 2); - -// Prettier stable -let[0] = 2; - -// Prettier stable (second format) -SyntaxError: Unexpected token (1:5) -> 1 | let[0] = 2; - | ^ - 2 | - -// Prettier main -(let)[0] = 2; -``` diff --git a/changelog_unreleased/javascript/14038.md b/changelog_unreleased/javascript/14038.md deleted file mode 100644 index b52a5aa34d96..000000000000 --- a/changelog_unreleased/javascript/14038.md +++ /dev/null @@ -1,32 +0,0 @@ -#### Fix formatting for auto-accessors with comments (#14038 by @fisker) - - -```jsx -// Input -class A { - @dec() - // comment - accessor b; -} - -// Prettier stable -class A { - @dec() - accessor // comment - b; -} - -// Prettier stable (second format) -class A { - @dec() - accessor; // comment - b; -} - -// Prettier main -class A { - @dec() - // comment - accessor b; -} -``` diff --git a/changelog_unreleased/javascript/14047.md b/changelog_unreleased/javascript/14047.md deleted file mode 100644 index 9fbe380884cf..000000000000 --- a/changelog_unreleased/javascript/14047.md +++ /dev/null @@ -1,27 +0,0 @@ -#### Fix displacing of comments in default switch case (#14047 by @thorn0) - -It was a regression in Prettier 2.6.0. - - -```jsx -// Input -switch (state) { - default: - result = state; // no change - break; -} - -// Prettier stable -switch (state) { - default: // no change - result = state; - break; -} - -// Prettier main -switch (state) { - default: - result = state; // no change - break; -} -``` diff --git a/changelog_unreleased/javascript/14077.md b/changelog_unreleased/javascript/14077.md deleted file mode 100644 index eb48a23b8dcd..000000000000 --- a/changelog_unreleased/javascript/14077.md +++ /dev/null @@ -1,19 +0,0 @@ -#### Add parentheses to head of `ExpressionStatement` instead of the whole statement (#14077 by @fisker) - - -```jsx -// Input -({}).toString.call(foo) === "[object Array]" - ? foo.forEach(iterateArray) - : iterateObject(foo); - -// Prettier stable -({}.toString.call(foo) === "[object Array]" - ? foo.forEach(iterateArray) - : iterateObject(foo)); - -// Prettier main -({}).toString.call(foo.forEach) === "[object Array]" - ? foo.forEach(iterateArray) - : iterateObject(foo); -``` diff --git a/changelog_unreleased/javascript/14081.md b/changelog_unreleased/javascript/14081.md deleted file mode 100644 index 92a794cbc73d..000000000000 --- a/changelog_unreleased/javascript/14081.md +++ /dev/null @@ -1,13 +0,0 @@ -#### Fix comments after directive (#14081 by @fisker) - - -```jsx -// Input -"use strict" /* comment */; - -// Prettier stable (with other js parsers except `babel`) -Error: Comment "comment" was not printed. Please report this error! - -// Prettier main - -``` diff --git a/changelog_unreleased/javascript/14082.md b/changelog_unreleased/javascript/14082.md deleted file mode 100644 index e56693154c5a..000000000000 --- a/changelog_unreleased/javascript/14082.md +++ /dev/null @@ -1,17 +0,0 @@ -#### Fix formatting for comments inside JSX attribute (#14082 with by @fisker) - - -```jsx -// Input -function MyFunctionComponent() { - -} - -// Prettier stable -Error: Comment "old" was not printed. Please report this error! - -// Prettier main -function MyFunctionComponent() { - ; -} -``` diff --git a/changelog_unreleased/json/14083.md b/changelog_unreleased/json/14083.md deleted file mode 100644 index 0ab6322f8317..000000000000 --- a/changelog_unreleased/json/14083.md +++ /dev/null @@ -1,17 +0,0 @@ -#### Quote numeric keys for json-stringify parser (#14083 by @fisker) - - -```jsx -// Input -{0: 'value'} - -// Prettier stable -{ - 0: "value" -} - -// Prettier main -{ - "0": "value" -} -``` diff --git a/changelog_unreleased/less/14007.md b/changelog_unreleased/less/14007.md deleted file mode 100644 index eed8b756d1d8..000000000000 --- a/changelog_unreleased/less/14007.md +++ /dev/null @@ -1,19 +0,0 @@ -#### Fix semicolon duplicated at the end of LESS file (#14007 by @mvorisek) - - -```less -// Input -@variable: { - field: something; -}; - -// Prettier stable -@variable: { - field: something; -}; ; - -// Prettier main -@variable: { - field: something; -}; -``` diff --git a/changelog_unreleased/less/14008.md b/changelog_unreleased/less/14008.md deleted file mode 100644 index d21456462849..000000000000 --- a/changelog_unreleased/less/14008.md +++ /dev/null @@ -1,43 +0,0 @@ -#### Fix no space after unary minus when followed by opening parenthesis in LESS (#14008 by @mvorisek) - - -```less -// Input -.unary_minus_single { - margin: -(@a); -} - -.unary_minus_multi { - margin: 0 -(@a); -} - -.binary_minus { - margin: 0 - (@a); -} - -// Prettier stable -.unary_minus_single { - margin: - (@a); -} - -.unary_minus_multi { - margin: 0 - (@a); -} - -.binary_minus { - margin: 0 - (@a); -} - -// Prettier main -.unary_minus_single { - margin: -(@a); -} - -.unary_minus_multi { - margin: 0 -(@a); -} - -.binary_minus { - margin: 0 - (@a); -} -``` diff --git a/changelog_unreleased/less/14034.md b/changelog_unreleased/less/14034.md deleted file mode 100644 index 02d0d2d5f04f..000000000000 --- a/changelog_unreleased/less/14034.md +++ /dev/null @@ -1,19 +0,0 @@ -#### Do not change case of property name if inside a variable declaration in LESS (#14034 by @mvorisek) - - -```less -// Input -@var: { - preserveCase: 0; -}; - -// Prettier stable -@var: { - preservecase: 0; -}; - -// Prettier main -@var: { - preserveCase: 0; -}; -``` diff --git a/changelog_unreleased/less/14103.md b/changelog_unreleased/less/14103.md deleted file mode 100644 index cddb91e0f786..000000000000 --- a/changelog_unreleased/less/14103.md +++ /dev/null @@ -1,17 +0,0 @@ -#### Do not insert space in LESS property access (#14103 by @fisker) - - -```less -// Input -a { - color: @colors[@white]; -} - -// Prettier stable -a { - color: @colors[ @white]; -} - -// Prettier main - -``` diff --git a/changelog_unreleased/markdown/13155.md b/changelog_unreleased/markdown/13155.md deleted file mode 100644 index ca3b25123442..000000000000 --- a/changelog_unreleased/markdown/13155.md +++ /dev/null @@ -1,20 +0,0 @@ -#### Don't lowercase link references (#13155 by @DerekNonGeneric & @fisker) - - -```markdown - -We now don't strictly follow the release notes format suggested by [Keep a Changelog]. - -[Keep a Changelog]: https://example.com/ - - -We now don't strictly follow the release notes format suggested by [Keep a Changelog]. - -[keep a changelog]: https://example.com/ - - - - -``` diff --git a/changelog_unreleased/scss/13931.md b/changelog_unreleased/scss/13931.md deleted file mode 100644 index 426d0c712c99..000000000000 --- a/changelog_unreleased/scss/13931.md +++ /dev/null @@ -1,36 +0,0 @@ -#### Preserve empty lines between nested SCSS maps (#13931 by @jneander) - - -```scss -/* Input */ -$map: ( - 'one': ( - 'key': 'value', - ), - - 'two': ( - 'key': 'value', - ), -) - -/* Prettier stable */ -$map: ( - 'one': ( - 'key': 'value', - ), - 'two': ( - 'key': 'value', - ), -) - -/* Prettier main */ -$map: ( - 'one': ( - 'key': 'value', - ), - - 'two': ( - 'key': 'value', - ), -) -``` diff --git a/changelog_unreleased/scss/14089.md b/changelog_unreleased/scss/14089.md deleted file mode 100644 index 45e6ce2841b1..000000000000 --- a/changelog_unreleased/scss/14089.md +++ /dev/null @@ -1,22 +0,0 @@ -#### Fix removing commas from function arguments in maps (#14089 by @sosukesuzuki) - - -```scss -/* Input */ -$foo: map-fn( - ( - "#{prop}": inner-fn($first, $second), - ) -); - -/* Prettier stable */ -$foo: map-fn(("#{prop}": inner-fn($first $second))); - -/* Prettier main */ -$foo: map-fn( - ( - "#{prop}": inner-fn($first, $second), - ) -); - -``` diff --git a/changelog_unreleased/typescript/14042.md b/changelog_unreleased/typescript/14042.md deleted file mode 100644 index 9b37741bb68f..000000000000 --- a/changelog_unreleased/typescript/14042.md +++ /dev/null @@ -1,19 +0,0 @@ -#### Add parentheses for TSTypeQuery to improve readability (#14042 by @onishi-kohei) - - -```tsx -// Input -a as (typeof node.children)[number] -a as (typeof node.children)[] -a as ((typeof node.children)[number])[] - -// Prettier stable -a as typeof node.children[number]; -a as typeof node.children[]; -a as typeof node.children[number][]; - -// Prettier main -a as (typeof node.children)[number]; -a as (typeof node.children)[]; -a as (typeof node.children)[number][]; -``` diff --git a/changelog_unreleased/typescript/14049.md b/changelog_unreleased/typescript/14049.md deleted file mode 100644 index 28448fa9662b..000000000000 --- a/changelog_unreleased/typescript/14049.md +++ /dev/null @@ -1,10 +0,0 @@ -#### Support type annotations on auto accessors via `babel-ts` (#14049 by @sosukesuzuki) - -[The bug that `@babel/parser` cannot parse auto accessors with type annotations](https://github.com/babel/babel/issues/15205) has been fixed. So we now support it via `babel-ts` parser. - - -```tsx -class Foo { - accessor prop: number; -} -```