Skip to content
Merged
2 changes: 1 addition & 1 deletion changelog_unreleased/api/13130.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#### Support config files in ESM (#13130 by @fisker)
#### [HIGHLIGHT]Support config files in ESM (#13130 by @fisker)

Config files in ESM are supported, supported config file names:

Expand Down
5 changes: 1 addition & 4 deletions changelog_unreleased/api/13397.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ function print(path, print) {

- return path.map(print, "values");

+ return path.map((childPath) => {
+ const value = childPath.getValue();
+ return value?.type ? print() : String(value);
+ }, "values");
+ return path.map(({node}) => (node?.type ? print() : String(node)), "values");
}
```
2 changes: 1 addition & 1 deletion changelog_unreleased/api/14759.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#### [Breaking] plugin search feature has been removed (#14759 by @fisker)
#### [BREAKING] plugin search feature has been removed (#14759 by @fisker)

The plugin auto search feature didn't work well when using pnpm, and cause slowness.

Expand Down
17 changes: 17 additions & 0 deletions changelog_unreleased/blog-post-intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
author: "Sosuke Suzuki (@sosukesuzuki)"
authorURL: "https://github.com/sosukesuzuki"
title: "Prettier 3.0: Hello, ECMAScript Modules!"
---

We are excited to announce the release of the new version of Prettier!

We have made the migration to using ECMAScript Modules for all our source code. This change has significantly improved the development experience for the Prettier team. Please rest assured that when using Prettier as a library, you can still use it as CommonJS as well.

This update comes with several breaking changes. One notable example is the alteration in markdown formatting - spaces are no longer inserted between Latin characters and Chinese or Japanese characters. We'd like to extend our gratitude to [Tatsunori Uchino](https://github.com/tats-u), who has made significant contributions to Prettier over the past year, particularly with this feature. Additionally, the default value of `trailingComma` has been changed to `"all"`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tats-u We greatly appreciate your contribution in improving the formatting of Markdown. So we would like to put your name at the top of the Prettier v3 release blog, is that okay?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sosukesuzuki Sorry for very late reply. There's no problem to post my name.


Another important change in this release is the significant overhaul of the plugin interface. Prettier now supports plugins written using ECMAScript Modules and async parsers. If you're a plugin developer, please exercise caution while updating. You can find [the migration guide](https://github.com/prettier/prettier/wiki/How-to-migrate-my-plugin-to-support-Prettier-v3%3F) here. As always, we welcome bug reports and feedback!

This release also includes numerous formatting improvements and bug fixes.

If you appreciate Prettier and would like to support our work, please consider sponsoring us directly via [our OpenCollective](https://opencollective.com/prettier) or by sponsoring the projects we depend on, such as [typescript-eslint](https://opencollective.com/typescript-eslint), [remark](https://opencollective.com/unified), and [Babel](https://opencollective.com/babel). Thank you for your continued support!
2 changes: 1 addition & 1 deletion changelog_unreleased/cli/14731.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#### [Breaking] Ignore `.gitignore`d files by default (#14731 by @fisker)
#### [BREAKING] Ignore `.gitignore`d files by default (#14731 by @fisker)

Prettier ignores files ignored by `.gitignore` by default.
If you want the old behavior(only ignore files ignored by `.prettierignore`), use
Expand Down
2 changes: 1 addition & 1 deletion changelog_unreleased/graphql/12835.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#### [Breaking] Drop support for "comma separated interfaces" syntax (#12835 by @fisker)
#### [BREAKING] Drop support for "comma separated interfaces" syntax (#12835 by @fisker)

<!-- prettier-ignore -->
```graphql
Expand Down
2 changes: 2 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@
"supertypes",
"Supprimer",
"swcrc",
"Tatsunori",
"templating",
"tempy",
"testname",
Expand All @@ -341,6 +342,7 @@
"typecasted",
"typecheck",
"typeof",
"Uchino",
"Ubie",
"Umidbek",
"unaries",
Expand Down
Loading