diff --git a/changelog_unreleased/cli/17151.md b/changelog_unreleased/cli/17151.md index f56f74ab1..96f2692d1 100644 --- a/changelog_unreleased/cli/17151.md +++ b/changelog_unreleased/cli/17151.md @@ -1,6 +1,6 @@ -#### Support experimental CLI (#17151, #17396 by @fisker) +#### [HIGHLIGHT] Support experimental CLI (#17151, #17396 by @fisker) -You may already heard or used our new [performance improved CLI](https://prettier.io/blog/2023/11/30/cli-deep-dive). From prettier main, you can use it without installing unstable v4 version. +You may already heard or used our new [performance improved CLI](https://prettier.io/blog/2023/11/30/cli-deep-dive). From prettier main, you can now use it without installing unstable v4 version. ```sh # Run CLI with `--experimental-cli` diff --git a/changelog_unreleased/flow/17520.md b/changelog_unreleased/flow/17520.md new file mode 100644 index 000000000..083433486 --- /dev/null +++ b/changelog_unreleased/flow/17520.md @@ -0,0 +1,26 @@ +#### [HIGHLIGHT] Added a new official plugin `@prettier/plugin-hermes` (#17520 by @fisker) + +`@prettier/plugin-hermes` is based on [Hermes JS Engine](https://github.com/facebook/hermes/blob/main/README.md). + +This plugin include a new parser `hermes` (Flow syntax), to use this plugin: + +1. Install the plugin + + ```sh + yarn add --dev prettier @prettier/plugin-hermes + ``` + +2. Add the following to your `.prettierrc` file + + ```yaml + plugins: + - "@prettier/plugin-hermes" + ``` + +Due to package size limitation, this plugin is not included in the `prettier` package, it needs to be installed separately. + +**We plan to make this as the default parser for Flow syntax support in v4, we'll also remove `babel-flow` parser in v4, please give it a try.** + +For more information, check [the package homepage](https://github.com/prettier/prettier/tree/main/packages/plugin-hermes). + +Many thanks to the Hermes team. diff --git a/changelog_unreleased/javascript/17472.md b/changelog_unreleased/javascript/17472.md new file mode 100644 index 000000000..918169b86 --- /dev/null +++ b/changelog_unreleased/javascript/17472.md @@ -0,0 +1,26 @@ +#### [HIGHLIGHT] Added a new official plugin `@prettier/plugin-oxc` (#17472, #17483 by @fisker) + +`@prettier/plugin-oxc` is based on [OXC](https://oxc.rs/)(A **fast** JavaScript and TypeScript parser in Rust). + +This plugin include two new parser `oxc` (JavaScript syntax) and `oxc-ts` (TypeScript syntax), to use this plugin: + +1. Install the plugin + + ```sh + yarn add --dev prettier @prettier/plugin-oxc + ``` + +2. Add the following to your `.prettierrc` file + + ```yaml + plugins: + - "@prettier/plugin-oxc" + ``` + +Due to package size limitation, this plugin is not included in the `prettier` package, it needs to be installed separately. + +For more information, check [the package homepage](https://github.com/prettier/prettier/tree/main/packages/plugin-oxc). + + + +Many thanks to the OXC team(@boshen, @overlookmotel, and other contributors). diff --git a/packages/plugin-hermes/README.md b/packages/plugin-hermes/README.md index d106f3cc3..c219939df 100644 --- a/packages/plugin-hermes/README.md +++ b/packages/plugin-hermes/README.md @@ -17,6 +17,8 @@ plugins: - "@prettier/plugin-hermes" ``` +**Requires prettier >= 3.6** + Or config explicitly ```yaml diff --git a/packages/plugin-oxc/README.md b/packages/plugin-oxc/README.md index 045c6935d..796af6176 100644 --- a/packages/plugin-oxc/README.md +++ b/packages/plugin-oxc/README.md @@ -17,6 +17,8 @@ plugins: - "@prettier/plugin-oxc" ``` +**Requires prettier >= 3.6** + Or config explicitly ```yaml