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: 2.7.1...3.0.0-alpha.1