diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index 2a04b1517..933be908f 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.0** +**Prettier 2.6.1** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index 25a39a882..be0385ced 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.0 +- Prettier Version: 2.6.1 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cf9686a1..baa01fe21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,69 @@ +# 2.6.1 + +[diff](https://github.com/prettier/prettier/compare/2.6.0...2.6.1) + +#### Ignore `loglevel` when printing information ([#12477](https://github.com/prettier/prettier/pull/12477) by [@fisker](https://github.com/fisker)) + + +```bash +# Prettier 2.6.0 +prettier --loglevel silent --find-config-path index.js +# Nothing printed + +# Prettier 2.6.1 +prettier --loglevel silent --help no-color +# .prettierrc +``` + +#### Make artifact friendly for webpack ([#12485](https://github.com/prettier/prettier/pull/12485), [#12511](https://github.com/prettier/prettier/pull/12511) by [@fisker](https://github.com/fisker)) + +Fixes two problems when bundling our UMD files with webpack: + +- A error `` "`....__exportStar` is not a function" `` throws when running the bundles. +- Some files cause warning about `"Critical dependency: the request of a dependency is an expression"`. + +#### Fix non-idempotent formatting of function calls with complex type arguments ([#12508](https://github.com/prettier/prettier/pull/12508) by [@sosukesuzuki](https://github.com/sosukesuzuki)) + + +```tsx +// Input +const foo = + doSomething<{ foo1: "foo1", foo2: "foo2", foo3: "foo3", foo4: "foo4", foo5: "foo5" }>(); + +// Prettier 2.6.0 (first) +const foo = + doSomething<{ + foo1: "foo1"; + foo2: "foo2"; + foo3: "foo3"; + foo4: "foo4"; + foo5: "foo5"; + }>(); + +// Prettier 2.6.0 (second) +const foo = doSomething<{ + foo1: "foo1"; + foo2: "foo2"; + foo3: "foo3"; + foo4: "foo4"; + foo5: "foo5"; +}>(); + +// Prettier 2.6.1 +const foo = doSomething<{ + foo1: "foo1"; + foo2: "foo2"; + foo3: "foo3"; + foo4: "foo4"; + foo5: "foo5"; +}>(); + +``` + +#### Fix minimist security issue ([#12513](https://github.com/prettier/prettier/pull/12513) by [@dependabot](https://github.com/dependabot)) + +Details: [Prototype Pollution](https://security.snyk.io/vuln/SNYK-JS-MINIMIST-559764) + # 2.6.0 [diff](https://github.com/prettier/prettier/compare/2.5.1...2.6.0) diff --git a/docs/browser.md b/docs/browser.md index 5dcce5731..9931cdc79 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -32,8 +32,8 @@ See below for examples. ### Global ```html - - + + - + +