V3 blog post (#13436)

This commit is contained in:
SUZUKI Sosuke authored and GitHub committed 2023-07-05 21:59:08 +09:00
1 parent 54ff009ec7
commit c9d62c0690
8 files changed
+2173 -8

No files matched your search

+1 -1
View File
@@ -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:
+1 -4
View File
@@ -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");
}
```
+1 -1
View File
@@ -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.
+17
View File
@@ -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"`.
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!
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+2
View File
@@ -322,6 +322,7 @@
"supertypes",
"Supprimer",
"swcrc",
"Tatsunori",
"templating",
"tempy",
"testname",
@@ -341,6 +342,7 @@
"typecasted",
"typecheck",
"typeof",
"Uchino",
"Ubie",
"Umidbek",
"unaries",
File diff suppressed because it is too large. Load diff