prettier breaking changes
Updated December 4, 2026
On this page
Latest version 3.10.2, released December 3, 2026. Source repository
Its 3.0.0-alpha.0 release requires Node.js 14 or later. Node.js end of life dates.
- From 2.8.4 to 3.10.2: 130 breaking changes in 19 versions.
- From 2.0.0 to 3.10.2: 294 breaking changes in 29 versions.
prettier 3.10.2 breaking changes
- Behavior changed
Files named .eslintrc are no longer treated as YAML when Prettier infers the file type, so they will not be formatted as YAML by default. github.com
prettier 3.10.0 breaking changes
- Signature changed
util.addDanglingComment
Was function addDanglingComment(node: any, comment: any, marker: any): void; now function addDanglingComment(node: any, comment: any, marker: any): true. npmjs.com - Signature changed
util.addLeadingComment
Was function addLeadingComment(node: any, comment: any): void; now function addLeadingComment(node: any, comment: any): true. npmjs.com - Signature changed
util.addTrailingComment
Was function addTrailingComment(node: any, comment: any): void; now function addTrailingComment(node: any, comment: any): true. npmjs.com
prettier 3.9.6 breaking changes
- Behavior changed
Prettier's output for class or object methods named new now keeps their quotes. Code formatted by this version may differ from earlier output for those methods. github.com
prettier 3.9.4 breaking changes
- Behavior changed
Prettier now formats Angular `@content(name)` as `@content (name)`, so formatted output changes for existing Angular templates that use this syntax. github.com
prettier 3.9.1 breaking changes
- Signature changed
CoreCategoryType
Was type CoreCategoryType = | "Config" | "Editor" | "Format" | "Other" | "Output" | "Global" | "Special"; now type CoreCategoryType = "Config" | "Editor" | "Format" | "Other" | "Output" | "Global" | "Special". npmjs.com - Signature changed
LiteralUnion
Was type LiteralUnion<T extends U, U = string> = | T | (Pick<U, never> & {_?: never | undefined}); now type LiteralUnion<T extends U, U = string> = T | (Pick<U, never> & {_?: never | undefined}). npmjs.com - Signature changed
Printer.getCommentChildNodes
Was getCommentChildNodes?: | ((node: T, options: ParserOptions<T>) => T[] | undefined) | undefined; now getCommentChildNodes?: ((node: T, options: ParserOptions<T>) => T[] | undefined) | undefined. npmjs.com - Signature changed
Printer.getVisitorKeys
Was getVisitorKeys?: | ((node: T, nonTraversableKeys: Set<string>) => string[]) | undefined; now getVisitorKeys?: ((node: T, nonTraversableKeys: Set<string>) => string[]) | undefined. npmjs.com - Signature changed
Printer.massageAstNode
Was massageAstNode?: | ((original: any, cloned: any, parent: any) => any) | undefined; now massageAstNode?: ((original: any, cloned: any, parent: any) => any) | undefined. npmjs.com - Signature changed
Printer.preprocess
Was preprocess?: | ((ast: T, options: ParserOptions<T>) => T | Promise<T>) | undefined; now preprocess?: ((ast: T, options: ParserOptions<T>) => T | Promise<T>) | undefined. npmjs.com - Signature changed
Printer.printComment
Was printComment?: | ((commentPath: AstPath<T>, options: ParserOptions<T>) => Doc) | undefined; now printComment?: ((commentPath: AstPath<T>, options: ParserOptions<T>) => Doc) | undefined. npmjs.com - Signature changed
SupportOptionType
Was type SupportOptionType = | "int" | "string" | "boolean" | "choice" | "path"; now type SupportOptionType = "int" | "string" | "boolean" | "choice" | "path". npmjs.com
prettier 3.9.0 breaking changes
- Removed
Babel 8 removed the old assert syntax, so Prettier can no longer parse or format import ... assert { ... }. Migrate those imports to the with syntax. prettier.io - Behavior changed
The YAML parser now uses yaml v2, which can change how some YAML files parse and format. prettier.io - Behavior changed
Flow comment syntax annotations are kept as comments instead of being rewritten as regular Flow syntax. prettier.io - Behavior changed
The Markdown parser moved from remark-parse v8 to micromark v4, which changes how some Markdown is parsed and formatted. prettier.io - Behavior changed
Numbers and strings are printed as written instead of being re-serialized with JSON.stringify, so output for edge cases changes. prettier.io - Behavior changed
quoteProps
With quoteProps, enum keys are now quoted or unquoted according to the option, so formatted enum output changes. prettier.io - Signature changed
Printer.embed
Was embed?: | ((path: AstPath, options: Options) => | ((textToDoc: (text: string, options: Options) => Promise<Doc>, print: (selector?: string | number | Array<string | number> | AstPath) => Doc, path: AstPath, options: Options) =>... npmjs.com - Signature changed
Printer.print
Was print(path: AstPath<T>, options: ParserOptions<T>, print: (path: AstPath<T>) => Doc, args?: unknown): Doc; now print(path: AstPath<T>, options: ParserOptions<T>, print: (selector?: string | number | Array<string | number> | AstPath<T>... npmjs.com - Signature changed
Printer.printPrettierIgnored
Was printPrettierIgnored?(path: AstPath<T>, options: ParserOptions<T>, print: (path: AstPath<T>) => Doc, args?: unknown): Doc; now printPrettierIgnored?(path: AstPath<T>, options: ParserOptions<T>, print: (selector?: string | number |... npmjs.com
Older versions
24 older versions, each with its first changes. Sign up to see every change
Show 24 older versions
prettier 3.7.0 breaking changes
- Signature changed
Parser.preprocess
Was preprocess?: | ((text: string, options: ParserOptions<T>) => string) | undefined; now preprocess?: | ((text: string, options: ParserOptions<T>) => string | Promise<string>) | undefined. npmjs.com - Signature changed
Printer.canAttachComment
Was canAttachComment?: ((node: T) => boolean) | undefined; now canAttachComment?: ((node: T, ancestors: T[]) => boolean) | undefined. npmjs.com
prettier 3.6.0 breaking changes
- Removed
SupportLanguage.since
SupportLanguage.since was removed in prettier 3.6.0 npmjs.com - Signature changed
BuiltInParserName
Was type BuiltInParserName = | "acorn" | "angular" | "babel-flow" | "babel-ts" | "babel" | "css" | "espree" | "flow" | "glimmer" | "graphql" | "html" | "json-stringify" | "json" | "json5" | "jsonc" | "less" | "lwc" | "markdown" | "mdx" |... npmjs.com
And 7 more in this version.
prettier 3.5.2 breaking changes
- Removed
The module-sync condition added in 3.5.0 is removed, so require("prettier") uses the CommonJS build again. Code that relied on the ESM build through this condition must change how it loads prettier. github.com
prettier 3.3.3 breaking changes
- Behavior changed
Prettier now wraps nullish coalescing expressions used in ternaries in parentheses, so formatted output changes for such code. github.com
prettier 3.3.0 breaking changes
- Signature changed
Printer.massageAstNode
Was massageAstNode?: ((node: any, newNode: any, parent: any) => any) | undefined; now massageAstNode?: | ((original: any, cloned: any, parent: any) => any) | undefined. npmjs.com
prettier 3.2.5 breaking changes
- Default changed
tsconfig.json files are treated as plain JSON instead of jsonc. To keep the jsonc parser for these files, add an overrides entry in your config that sets parser to jsonc for tsconfig.json and jsconfig.json. github.com
prettier 3.2.3 breaking changes
- Behavior changed
Prettier now formats tsconfig.json files using the jsonc parser instead of the json parser, so formatted output for those files may change. github.com
prettier 3.2.0 breaking changes
- Signature changed
BuiltInParserName
Was type BuiltInParserName = | "acorn" | "angular" | "babel-flow" | "babel-ts" | "babel" | "css" | "espree" | "flow" | "glimmer" | "graphql" | "html" | "json-stringify" | "json" | "json5" | "less" | "lwc" | "markdown" | "mdx" | "meriyah" |... npmjs.com - Signature changed
FileInfoOptions.plugins
Was plugins?: string[] | undefined; now plugins?: Array<string | Plugin> | undefined. npmjs.com
And 3 more in this version.
prettier 3.1.1 breaking changes
- Behavior changed
Empty imports with comments or braces are now printed with curly braces and the from keyword kept, so formatted output for existing code changes. github.com - Behavior changed
Empty with {} and assert {} clauses on imports are now preserved instead of removed, so formatted output for existing code changes. github.com
And 3 more in this version.
prettier 3.1.0 breaking changes
- Removed
CustomParser
CustomParser was removed in prettier 3.1.0 npmjs.com - Removed
formatAST
formatAST was removed in prettier 3.1.0 npmjs.com
And 5 more in this version.
prettier 3.0.0 breaking changes
- Removed
BaseSupportOption.since
BaseSupportOption.since was removed in prettier 3.0.0 npmjs.com - Removed
doc.builders.Concat
doc.builders.Concat was removed in prettier 3.0.0 npmjs.com
And 64 more in this version.
prettier 3.0.0-alpha.1 breaking changes
- Configuration changed
The package layout changed and package.json gained an exports field, which can affect deep imports of internal files. github.com
prettier 3.0.0-alpha.0 breaking changes
- Removed
doc.builders.concat
The concat builder was removed from prettier.doc.builders. npmjs.com - Behavior changed
Public API calls return promises instead of synchronous results, so callers must await them. github.com
And 5 more in this version.
prettier 2.8.4 breaking changes
- Behavior changed
Params in opening block statements and else blocks are grouped and wrap together, changing formatted Handlebars output. github.com - Behavior changed
readonly
Comments before a readonly modifier in mapped types are printed before readonly instead of after it. Re-check formatted output that depends on this placement. github.com
And 1 more in this version.
prettier 2.8.2 breaking changes
- Behavior changed
Numeric object keys are now quoted when formatted with the json-stringify parser, so output differs from 2.8.1 for such files. github.com - Behavior changed
Link reference definitions keep their original letter case instead of being lowercased. Check formatted markdown if anything depended on the lowercased labels. github.com
prettier 2.7.0 breaking changes
- Signature changed
SupportOption
Was type SupportOption = | IntSupportOption | IntArraySupportOption | BooleanSupportOption | BooleanArraySupportOption | ChoiceSupportOption | PathSupportOption | PathArraySupportOption; now type SupportOption = | IntSupportOption |... npmjs.com - Signature changed
SupportOptionType
Was type SupportOptionType = 'int' | 'boolean' | 'choice' | 'path'; now type SupportOptionType = 'int' | 'string' | 'boolean' | 'choice' | 'path'. npmjs.com
prettier 2.6.0 breaking changes
- Removed
Printer.preprocess
Printer.preprocess was removed in prettier 2.6.0 npmjs.com - Removed
StringArraySupportOption
StringArraySupportOption was removed in prettier 2.6.0 npmjs.com
And 4 more in this version.
prettier 2.5.0 breaking changes
- Signature changed
AstPath.call
Was call<U>(callback: (path: this) => U, ...names: PropertyKey[]): U; now call<U, P extends PropertyKey>(callback: CallCallback<any, U>, prop1: P, prop2: P, prop3: P, prop4: P, ...props: P[]): U call<U, P1 extends... npmjs.com - Signature changed
AstPath.each
Was each(callback: (path: this, index: number, value: any) => void, ...names: PropertyKey[]): void; now each(callback: EachCallback<T>): void each(callback: EachCallback<any[]>, prop1: PropertyKey, prop2: PropertyKey, prop3: PropertyKey... npmjs.com
And 8 more in this version.
prettier 2.4.0 breaking changes
- Signature changed
CursorOptions.rangeEnd
Was rangeEnd?: never | undefined; now rangeEnd?: never. npmjs.com - Signature changed
CursorOptions.rangeStart
Was rangeStart?: never | undefined; now rangeStart?: never. npmjs.com
And 5 more in this version.
prettier 2.3.0 breaking changes
- Removed
Options.embeddedInHtml
Options.embeddedInHtml was removed in prettier 2.3.0 npmjs.com - Signature changed
BaseSupportOption.deprecated
Was deprecated?: true | string; now deprecated?: true | string | undefined. npmjs.com
And 85 more in this version.
prettier 2.2.0 breaking changes
- Removed
Printer.printComments
Printer.printComments was removed in prettier 2.2.0 npmjs.com - Signature changed
BooleanSupportOption.oppositeDescription
Was oppositeDescription?: boolean; now oppositeDescription?: string. npmjs.com
And 1 more in this version.
prettier 2.1.0 breaking changes
- Removed
SupportOption.array
SupportOption.array was removed in prettier 2.1.0 npmjs.com - Removed
SupportOption.category
SupportOption.category was removed in prettier 2.1.0 npmjs.com
And 41 more in this version.
prettier 2.0.3 breaking changes
- Behavior changed
Prettier 2.0.3 prints explicit inexact Flow object types that have an indexer property or no properties without a trailing comma after `...`. Output from this formatter changes for such code. github.com
prettier 2.0.0 breaking changes
- Signature changed
BuiltInParserName
Was type BuiltInParserName = | 'babylon' | 'babel' | 'babel-flow' | 'flow' | 'typescript' | 'postcss' | 'css' | 'less' | 'scss' | 'json' | 'json5' | 'json-stringify' | 'graphql' | 'markdown' | 'vue' | 'html' | 'angular' | 'mdx' | 'yaml' |... npmjs.com - Signature changed
doc.builders.Doc
Was type Doc = | string | Align | BreakParent | Concat | Fill | Group | IfBreak | Indent | Line | LineSuffix | LineSuffixBoundary; now type Doc = | string | Align | BreakParent | Concat | Fill | Group | IfBreak | Indent | Line | LineSuffix... npmjs.com
And 3 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.