From 6b22977cb56127cc10e04425b0eca7c5eb304e6e Mon Sep 17 00:00:00 2001 From: Georgii Dolzhykov Date: Tue, 21 Apr 2020 20:05:11 +0300 Subject: [PATCH] Release 2.0.5 --- .github/ISSUE_TEMPLATE/formatting.md | 2 +- .github/ISSUE_TEMPLATE/integration.md | 2 +- CHANGELOG.md | 41 +++++++++++++++++++ changelog_unreleased/less/pr-7984.md | 30 -------------- docs/browser.md | 12 +++--- docs/install.md | 2 +- package.json | 2 +- .../versioned_docs/version-stable/browser.md | 12 +++--- .../versioned_docs/version-stable/install.md | 2 +- 9 files changed, 58 insertions(+), 47 deletions(-) delete mode 100644 changelog_unreleased/less/pr-7984.md diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index 6164b0026..430607b40 100644 --- a/.github/ISSUE_TEMPLATE/formatting.md +++ b/.github/ISSUE_TEMPLATE/formatting.md @@ -26,7 +26,7 @@ Tip! Don't write this stuff manually. --> -**Prettier 2.0.4** +**Prettier 2.0.5** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index 509b61542..7ae45e2b2 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.0.4 +- Prettier Version: 2.0.5 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index 96e45e8c7..274795051 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,44 @@ +# 2.0.5 + +[diff](https://github.com/prettier/prettier/compare/2.0.4...2.0.5) + +#### Less: Fix formatting of `:extend` ([#7984](https://github.com/prettier/prettier/pull/7984) by [@fisker](https://github.com/fisker)) + + +```less +// Input +.class { + &:extend(.some-class .some-other-class .some-very-loooooooooooooong-class all); +} + +// Prettier 2.0.4 +.class { + &:extend( + .some-class .some-other-class .some-very-loooooooooooooong-class all + ); +} + +// Prettier 2.0.4 (Second format) +.class { + &: extend( + .some-class .some-other-class .some-very-loooooooooooooong-class all + ); +} + +// Prettier 2.0.5 +.class { + &:extend( + .some-class .some-other-class .some-very-loooooooooooooong-class all + ); +} +``` + +#### Editor integration: Use [`resolve`](https://www.npmjs.com/package/resolve) if builtin `require.resolve` is overridden ([#8072](https://github.com/prettier/prettier/pull/8072) by [@fisker](https://github.com/fisker)) + +This fixes issues that the users of Atom and WebStorm faced with 2.0.4. + +Prettier now switches to using the `resolve` module for resolving configuration files and plugins if it detects that `require.resolve` isn't Node's builtin function (doesn't support the second argument), which happens in environments like editor extensions. To force the fallback, set the `PRETTIER_FALLBACK_RESOLVE` environment variable to `true`. + # 2.0.4 [diff](https://github.com/prettier/prettier/compare/2.0.3...2.0.4) diff --git a/changelog_unreleased/less/pr-7984.md b/changelog_unreleased/less/pr-7984.md deleted file mode 100644 index 5e3a864bc..000000000 --- a/changelog_unreleased/less/pr-7984.md +++ /dev/null @@ -1,30 +0,0 @@ -#### Fix `:extend` format ([#7984](https://github.com/prettier/prettier/pull/7984) by [@fisker](https://github.com/fisker)) - - -```less -// Input -.class { - &:extend(.some-class .some-other-class .some-very-loooooooooooooong-class all); -} - -// Prettier stable -.class { - &:extend( - .some-class .some-other-class .some-very-loooooooooooooong-class all - ); -} - -// Prettier stable (Second format) -.class { - &: extend( - .some-class .some-other-class .some-very-loooooooooooooong-class all - ); -} - -// Prettier master -.class { - &:extend( - .some-class .some-other-class .some-very-loooooooooooooong-class all - ); -} -``` diff --git a/docs/browser.md b/docs/browser.md index e26f1dfec..e1d89e685 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -16,8 +16,8 @@ See [Usage](#usage) below for examples. ### Global ```html - - + + - + +