npm / prettier
prettier
What changed in prettier 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.
2 new APIs and options1 performance4 tooling18 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initprettier 325 changes
New APIs and options 2
The typescript parser now supports import defer.
A new official plugin is available.
Performance 1
Fixes a performance regression in the doc printer.
Tooling 4
Prettier supports Angular 22.2.
Prettier supports Angular v21.2.
Plugin type declarations now include available printers, allowing plugin authors to access them in their types.
Prettier now supports Angular v21.1.
Fixes and other changes 18
Fixes Markdown text containing $ being incorrectly parsed as math syntax.
Markdown paragraphs are no longer interrupted by Liquid objects.
Fixes regressions in v3.9.
Preserves quotes for methods named new when formatting.
Formats Angular @content(name) as @content (name) to align with other block syntax.
Allows decorators to be used with declare on TypeScript class fields.
Fixes unexpected removal of characters in Liquid syntax.
Fixes ignored files being cached incorrectly by the CLI.
Fixes printing of Flow variance annotations.
Fixes blank lines between list items and nested sub-lists being removed in Markdown and MDX.
Prevents a trailing comma in the SCSS if() function.
Avoids adding quotes around LWC interpolations.
Fixes duplicated comments in union types.
Fixes unstable comment printing in union types.
Fixes a change to prettier.getFileInfo() that broke the VSCode extension.
Fixes comments in empty type literals.
Preserves quotes for embedded HTML attribute values.
Fixes string printing when switching quotes.