From 7f7498109be4507662f03f930f2537f58b56d4b8 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Wed, 23 Nov 2022 13:20:49 +0900 Subject: [PATCH 1/8] Remove version validattion temp --- scripts/release/steps/validate-new-version.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/release/steps/validate-new-version.js b/scripts/release/steps/validate-new-version.js index 09ed33051..b3134fae0 100644 --- a/scripts/release/steps/validate-new-version.js +++ b/scripts/release/steps/validate-new-version.js @@ -1,4 +1,4 @@ -import chalk from "chalk"; +// import chalk from "chalk"; import semver from "semver"; export default function validateNewVersion({ version, previousVersion }) { @@ -7,8 +7,7 @@ export default function validateNewVersion({ version, previousVersion }) { } if (!semver.gt(version, previousVersion)) { - throw new Error( - `Version ${chalk.yellow(version)} has already been published` - ); + throw new Error(); + // `Version ${chalk.yellow(version)} has already been published` } } From dcc0623911f8b352eda18f60683eb1a232d6c2bd Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Wed, 23 Nov 2022 13:24:27 +0900 Subject: [PATCH 2/8] Release 2.8.0 --- .github/ISSUE_TEMPLATE/formatting.md | 2 +- .github/ISSUE_TEMPLATE/integration.md | 2 +- CHANGELOG.md | 6 ++++ docs/browser.md | 30 +++++++++---------- package.json | 2 +- .../versioned_docs/version-stable/browser.md | 30 +++++++++---------- website/versioned_docs/version-stable/cli.md | 10 +++++++ .../versioned_docs/version-stable/install.md | 6 ++-- .../integrating-with-linters.md | 2 +- .../versioned_docs/version-stable/plugins.md | 24 +++++++++++++-- .../version-stable/technical-details.md | 2 ++ 11 files changed, 76 insertions(+), 40 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md index 8c834ef3c..d18cacd6a 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.7.1** +**Prettier 2.8.0** [Playground link](https://prettier.io/playground/#.....) ```sh diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md index 5ad85c7f6..d310b9699 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.7.1 +- Prettier Version: 2.8.0 - Running Prettier via: - Runtime: - Operating System: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f0c74018..f2b90c496 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 2.8.0 + +[diff](https://github.com/prettier/prettier/compare/2.7.1...2.8.0) + +🔗 [Release Notes](https://prettier.io/blog/2022/11/23/2.8.0.html) + # 2.7.1 [diff](https://github.com/prettier/prettier/compare/2.7.0...2.7.1) diff --git a/docs/browser.md b/docs/browser.md index b0f540362..4615a62b3 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -20,8 +20,8 @@ Required options: - **`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 named - - `parser-*.js` in and - - `parser-*.mjs` in + - `parser-*.js` in and + - `parser-*.mjs` in You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option. @@ -32,8 +32,8 @@ See below for examples. ### Global ```html - - + + - + +