From 5f2c6df4629b1474be5002ff3c6f8ad4a666b70f Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sun, 14 Jan 2024 12:06:14 +0900 Subject: [PATCH] Release 3.2.2 --- .github/ISSUE_TEMPLATE/formatting.md | 2 +- .github/ISSUE_TEMPLATE/integration.md | 2 +- CHANGELOG.md | 27 ++++++++++++++++ docs/browser.md | 32 +++++++++---------- package.json | 2 +- .../versioned_docs/version-stable/browser.md | 32 +++++++++---------- .../versioned_docs/version-stable/plugins.md | 1 + 7 files changed, 63 insertions(+), 35 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index b36d796ad..0df60bded 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 3.2.1** +**Prettier 3.2.2** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index 74e3f9380..b4a5566d9 100644 --- a/.github/ISSUE_TEMPLATE/integration.md +++ b/.github/ISSUE_TEMPLATE/integration.md @@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE: **Environments:** -- Prettier Version: 3.2.1 +- Prettier Version: 3.2.2 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index dbd1f70e1..0a65d7de2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,30 @@ +# 3.2.2 + +[diff](https://github.com/prettier/prettier/compare/3.2.1...3.2.2) + +#### Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute ([#15896](https://github.com/prettier/prettier/pull/15896) by [@eelco](https://github.com/eelco)) + +For example this code would crash before: + + +```jsx + +``` + +#### Fix formatting error on optional call expression and member chain ([#15920](https://github.com/prettier/prettier/pull/15920) by [@sosukesuzuki](https://github.com/sosukesuzuki)) + + +```jsx +// Input +a(() => {}, c?.d()); + +// Prettier 3.2.1 +TypeError: Cannot read properties of undefined (reading 'type') + +// Prettier 3.2.2 +a(() => {}, c?.d()); +``` + # 3.2.1 [diff](https://github.com/prettier/prettier/compare/3.2.0...3.2.1) diff --git a/docs/browser.md b/docs/browser.md index 49236cf37..ff257f9ad 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -18,7 +18,7 @@ Required options: - **[`parser`](options.md#parser) (or [`filepath`](options.md#file-path))**: One of these options has to be specified for Prettier to know which parser to use. -- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in . Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON. +- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in . Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON. You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option. @@ -29,8 +29,8 @@ See below for examples. ### Global ```html - - + + - + +