diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 06d45266f..c2cebf0ac 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -5,6 +5,8 @@ # See https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt # Prettier bump after release +# 2.8.1 +b87de09bcf9a523fe3da31394ba0e6f5d107cf3e # 2.8.0 4049e49fe2a939facd6f46be338a3be9c1c0489e # 2.7.1 diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index d18cacd6a..4299ace0e 100644 --- a/.github/ISSUE_TEMPLATE/formatting.md +++ b/.github/ISSUE_TEMPLATE/formatting.md @@ -26,7 +26,7 @@ Don't fill the form below manually! Let a program create a report for you: --> -**Prettier 2.8.0** +**Prettier 2.8.1** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index d310b9699..a7477dbe9 100644 --- a/.github/ISSUE_TEMPLATE/integration.md +++ b/.github/ISSUE_TEMPLATE/integration.md @@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE: **Environments:** -- Prettier Version: 2.8.0 +- Prettier Version: 2.8.1 - Running Prettier via: - Runtime: - Operating System: diff --git a/.node-version b/.node-version new file mode 100644 index 000000000..b460d6f2d --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +18.12.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index f2b90c496..5b9bd9142 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,56 @@ +# 2.8.1 + +[diff](https://github.com/prettier/prettier/compare/2.8.0...2.8.1) + +#### Fix SCSS map in arguments ([#9184](https://github.com/prettier/prettier/pull/9184) by [@agamkrbit](https://github.com/agamkrbit)) + + +```scss +// Input +$display-breakpoints: map-deep-merge( + ( + "print-only": "only print", + "screen-only": "only screen", + "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})", + ), + $display-breakpoints +); + +// Prettier 2.8.0 +$display-breakpoints: map-deep-merge( + ( + "print-only": "only print", + "screen-only": "only screen", + "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, " sm + ")-1})", + ), + $display-breakpoints +); + +// Prettier 2.8.1 +$display-breakpoints: map-deep-merge( + ( + "print-only": "only print", + "screen-only": "only screen", + "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})", + ), + $display-breakpoints +); +``` + +#### Support auto accessors syntax ([#13919](https://github.com/prettier/prettier/pull/13919) by [@sosukesuzuki](https://github.com/sosukesuzuki)) + +Support for [Auto Accessors Syntax](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9/#auto-accessors-in-classes) landed in TypeScript 4.9. + +(Doesn't work well with `babel-ts` parser) + + +```tsx +class Foo { + accessor foo: number = 3; +} +``` + # 2.8.0 [diff](https://github.com/prettier/prettier/compare/2.7.1...2.8.0) diff --git a/changelog_unreleased/scss/9184.md b/changelog_unreleased/scss/9184.md deleted file mode 100644 index de3cace7d..000000000 --- a/changelog_unreleased/scss/9184.md +++ /dev/null @@ -1,35 +0,0 @@ -#### Fix SCSS map in arguments (#9184 by @agamkrbit) - - -```scss -// Input -$display-breakpoints: map-deep-merge( - ( - "print-only": "only print", - "screen-only": "only screen", - "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})", - ), - $display-breakpoints -); - -// Prettier stable -$display-breakpoints: map-deep-merge( - ( - "print-only": "only print", - "screen-only": "only screen", - "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, " sm - ")-1})", - ), - $display-breakpoints -); - -// Prettier main -$display-breakpoints: map-deep-merge( - ( - "print-only": "only print", - "screen-only": "only screen", - "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})", - ), - $display-breakpoints -); -``` diff --git a/docs/browser.md b/docs/browser.md index 38d7df95a..0c03e728e 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -29,8 +29,8 @@ See below for examples. ### Global ```html - - + + - + +