3.0.0-alpha.1
版本发布时间: 2022-10-08 16:57:28
prettier/prettier最新发布版本:3.3.3(2024-07-13 20:27:31)
If you are a plugin developer, please try this version and send us feedback! Feel free to ping @fisker if you have any questions about v3 migration.
Breaking change since v3.0.0-alpha.0
-
Package file structure updated,
exports
field added topackage.json
https://unpkg.com/browse/prettier@3.0.0-alpha.1/
Changes since Prettier v2
Highlights
Breaking changes
- [BREAKING] The minimal required Node.js version is v14
- [BREAKING] All public APIs are asynchronous
- [BREAKING] Change default value of
trailingComma
to"all"
Plugin system
- [BREAKING] the
embed
method of a printer has now to match a completely new signature, addedgetVisitorKeys
method - [BREAKING] The second argument
parsers
passed toparsers.parse
has been removed - [BREAKING]
prettier.doc.builders.concat
has been removed - [BREAKING]
textToDoc
trims trailing hard lines now
Full Changelog: https://github.com/prettier/prettier/compare/2.7.1...3.0.0-alpha.1