From d6f82a024a1f0c4c7418a49a8334862286a63c17 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sun, 3 Apr 2022 01:31:20 +0900 Subject: [PATCH] Release 2.6.2 --- .github/ISSUE_TEMPLATE/formatting.md | 2 +- .github/ISSUE_TEMPLATE/integration.md | 2 +- CHANGELOG.md | 58 +++++++++++++++++++ docs/browser.md | 26 ++++----- package.json | 2 +- .../versioned_docs/version-stable/browser.md | 26 ++++----- .../integrating-with-linters.md | 3 - .../version-stable/related-projects.md | 6 -- 8 files changed, 87 insertions(+), 38 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index 933be908f..d1b763348 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.6.1** +**Prettier 2.6.2** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index be0385ced..9034f876b 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.6.1 +- Prettier Version: 2.6.2 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index baa01fe21..af8d402c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,61 @@ +# 2.6.2 + +[diff](https://github.com/prettier/prettier/compare/2.6.1...2.6.2) + +#### Fix LESS/SCSS format error ([#12536](https://github.com/prettier/prettier/pull/12536) by [@fisker](https://github.com/fisker)) + + +```less +// Input +.background-gradient(@cut) { + background: linear-gradient( + to right, + @white 0%, + @white (@cut - 0.01%), + @portal-background @cut, + @portal-background 100% + ); +} + +// Prettier 2.6.1 +TypeError: Cannot read properties of undefined (reading 'endOffset') + +// Prettier 2.6.2 +.background-gradient(@cut) { + background: linear-gradient( + to right, + @white 0%, + @white (@cut - 0.01%), + @portal-background @cut, + @portal-background 100% + ); +} +``` + +#### Update `meriyah` to fix several bugs ([#12567](https://github.com/prettier/prettier/pull/12567) by [@fisker](https://github.com/fisker), fixes in [`meriyah`](https://github.com/meriyah/meriyah/) by [@3cp](https://github.com/3cp)) + +Fixes bugs when parsing following valid code: + +```js +foo(await bar()); +``` + +```js +const regex = /.*/ms; +``` + +```js +const element =

{/w/.test(s)}

; +``` + +```js +class A extends B { + #privateMethod() { + super.method(); + } +} +``` + # 2.6.1 [diff](https://github.com/prettier/prettier/compare/2.6.0...2.6.1) diff --git a/docs/browser.md b/docs/browser.md index 9931cdc79..5e0852d23 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -32,8 +32,8 @@ See below for examples. ### Global ```html - - + + - + +