---
title: "prettier 3.10.2 Breaking Changes on npm | Since.dev"
description: "What each prettier release removed, renamed or changed: 299 breaking changes in 30 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/prettier
last_updated: 2026-12-04
---

# prettier breaking changes

prettier 3.10.2 (December 3, 2026) is its newest release with breaking changes. The first: Stops inferring .eslintrc files as YAML in prettier 3.10.2. Every breaking API change we have recorded in prettier on npm: 299 breaking changes in 30 versions. Below, its 30 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.10.2`, released December 3, 2026. [Source repository](https://github.com/prettier/prettier)

Its 3.0.0-alpha.0 release requires [Node.js 14](https://since.dev/calendar/nodejs/14.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.8.4](#v-2-8-4) to [3.10.2](#v-3-10-2): 130 breaking changes in 19 versions.
- From [2.0.0](#v-2-0-0) to [3.10.2](#v-3-10-2): 294 breaking changes in 29 versions.

## prettier 3.10.2 breaking changes

prettier 3.10.2, released December 3, 2026: 1 breaking change.

- **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](https://github.com/prettier/prettier/releases/tag/3.10.2)

## prettier 3.10.0 breaking changes

prettier 3.10.0, released November 11, 2026: 3 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](https://www.npmjs.com/package/prettier/v/3.10.0)
- **Signature changed** `util.addLeadingComment`  

Was function addLeadingComment(node: any, comment: any): void; now function addLeadingComment(node: any, comment: any): true. [npmjs.com](https://www.npmjs.com/package/prettier/v/3.10.0)
- **Signature changed** `util.addTrailingComment`  

Was function addTrailingComment(node: any, comment: any): void; now function addTrailingComment(node: any, comment: any): true. [npmjs.com](https://www.npmjs.com/package/prettier/v/3.10.0)

## prettier 3.9.6 breaking changes

prettier 3.9.6, released July 21, 2026: 1 breaking change.

- **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](https://github.com/prettier/prettier/releases/tag/3.9.6)

## prettier 3.9.4 breaking changes

prettier 3.9.4, released June 30, 2026: 1 breaking change.

- **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](https://github.com/prettier/prettier/releases/tag/3.9.4)

## prettier 3.9.1 breaking changes

prettier 3.9.1, released June 27, 2026: 8 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](https://www.npmjs.com/package/prettier/v/3.9.1)
- **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](https://www.npmjs.com/package/prettier/v/3.9.1)
- **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](https://www.npmjs.com/package/prettier/v/3.9.1)
- **Signature changed** `Printer.getVisitorKeys`  

Was getVisitorKeys?: | ((node: T, nonTraversableKeys: Set\<string>) => string\[\]) | undefined; now getVisitorKeys?: ((node: T, nonTraversableKeys: Set\<string>) => string\[\]) | undefined. [npmjs.com](https://www.npmjs.com/package/prettier/v/3.9.1)
- **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](https://www.npmjs.com/package/prettier/v/3.9.1)
- **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](https://www.npmjs.com/package/prettier/v/3.9.1)
- **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](https://www.npmjs.com/package/prettier/v/3.9.1)
- **Signature changed** `SupportOptionType`  

Was type SupportOptionType = | "int" | "string" | "boolean" | "choice" | "path"; now type SupportOptionType = "int" | "string" | "boolean" | "choice" | "path". [npmjs.com](https://www.npmjs.com/package/prettier/v/3.9.1)

## prettier 3.9.0 breaking changes

prettier 3.9.0, released June 27, 2026: 9 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](https://prettier.io/blog/2026/06/27/3.9.0)
- **Behavior changed**  

The YAML parser now uses yaml v2, which can change how some YAML files parse and format. [prettier.io](https://prettier.io/blog/2026/06/27/3.9.0)
- **Behavior changed**  

Flow comment syntax annotations are kept as comments instead of being rewritten as regular Flow syntax. [prettier.io](https://prettier.io/blog/2026/06/27/3.9.0)
- **Behavior changed**  

The Markdown parser moved from remark-parse v8 to micromark v4, which changes how some Markdown is parsed and formatted. [prettier.io](https://prettier.io/blog/2026/06/27/3.9.0)
- **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](https://prettier.io/blog/2026/06/27/3.9.0)
- **Behavior changed** `quoteProps`  

With quoteProps, enum keys are now quoted or unquoted according to the option, so formatted enum output changes. [prettier.io](https://prettier.io/blog/2026/06/27/3.9.0)
- **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](https://www.npmjs.com/package/prettier/v/3.9.0)
- **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](https://www.npmjs.com/package/prettier/v/3.9.0)
- **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](https://www.npmjs.com/package/prettier/v/3.9.0)

## Older versions

24 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### prettier 3.7.0 breaking changes

prettier 3.7.0, released November 27, 2025: 2 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](https://www.npmjs.com/package/prettier/v/3.7.0)
- **Signature changed** `Printer.canAttachComment`  

Was canAttachComment?: ((node: T) => boolean) | undefined; now canAttachComment?: ((node: T, ancestors: T\[\]) => boolean) | undefined. [npmjs.com](https://www.npmjs.com/package/prettier/v/3.7.0)

### prettier 3.6.0 breaking changes

prettier 3.6.0, released June 23, 2025: 9 breaking changes.

- **Removed** `SupportLanguage.since`  

SupportLanguage.since was removed in prettier 3.6.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/3.6.0)
- **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](https://www.npmjs.com/package/prettier/v/3.6.0)

And 7 more in this version.

### prettier 3.5.2 breaking changes

prettier 3.5.2, released February 22, 2025: 1 breaking change.

- **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](https://github.com/prettier/prettier/blob/3.5.2/CHANGELOG.md)

### prettier 3.3.3 breaking changes

prettier 3.3.3, released July 13, 2024: 1 breaking change.

- **Behavior changed**  

Prettier now wraps nullish coalescing expressions used in ternaries in parentheses, so formatted output changes for such code. [github.com](https://github.com/prettier/prettier/blob/3.3.3/CHANGELOG.md)

### prettier 3.3.0 breaking changes

prettier 3.3.0, released June 1, 2024: 1 breaking change.

- **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](https://www.npmjs.com/package/prettier/v/3.3.0)

### prettier 3.2.5 breaking changes

prettier 3.2.5, released February 4, 2024: 1 breaking change.

- **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](https://github.com/prettier/prettier/blob/3.2.5/CHANGELOG.md)

### prettier 3.2.3 breaking changes

prettier 3.2.3, released January 17, 2024: 1 breaking change.

- **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](https://github.com/prettier/prettier/releases/tag/3.2.3)

### prettier 3.2.0 breaking changes

prettier 3.2.0, released January 12, 2024: 5 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](https://www.npmjs.com/package/prettier/v/3.2.0)
- **Signature changed** `FileInfoOptions.plugins`  

Was plugins?: string\[\] | undefined; now plugins?: Array\<string | Plugin> | undefined. [npmjs.com](https://www.npmjs.com/package/prettier/v/3.2.0)

And 3 more in this version.

### prettier 3.1.1 breaking changes

prettier 3.1.1, released December 10, 2023: 5 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](https://github.com/prettier/prettier/blob/3.1.1/CHANGELOG.md)
- **Behavior changed**  

Empty with {} and assert {} clauses on imports are now preserved instead of removed, so formatted output for existing code changes. [github.com](https://github.com/prettier/prettier/blob/3.1.1/CHANGELOG.md)

And 3 more in this version.

### prettier 3.1.0 breaking changes

prettier 3.1.0, released November 13, 2023: 7 breaking changes.

- **Removed** `CustomParser`  

CustomParser was removed in prettier 3.1.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/3.1.0)
- **Removed** `formatAST`  

formatAST was removed in prettier 3.1.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/3.1.0)

And 5 more in this version.

### prettier 3.0.0 breaking changes

prettier 3.0.0, released July 5, 2023: 66 breaking changes.

- **Removed** `BaseSupportOption.since`  

BaseSupportOption.since was removed in prettier 3.0.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/3.0.0)
- **Removed** `doc.builders.Concat`  

doc.builders.Concat was removed in prettier 3.0.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/3.0.0)

And 64 more in this version.

### prettier 3.0.0-alpha.1 breaking changes

prettier 3.0.0-alpha.1, released July 5, 2023: 1 breaking change.

- **Configuration changed**  

The package layout changed and package.json gained an exports field, which can affect deep imports of internal files. [github.com](https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.1)

### prettier 3.0.0-alpha.0 breaking changes

prettier 3.0.0-alpha.0, released July 5, 2023: 7 breaking changes.

- **Removed** `doc.builders.concat`  

The concat builder was removed from prettier.doc.builders. [npmjs.com](https://www.npmjs.com/package/prettier/v/3.0.0)
- **Behavior changed**  

Public API calls return promises instead of synchronous results, so callers must await them. [github.com](https://github.com/prettier/prettier/releases/tag/3.0.0-alpha.0)

And 5 more in this version.

### prettier 2.8.4 breaking changes

prettier 2.8.4, released February 8, 2023: 3 breaking changes.

- **Behavior changed**  

Params in opening block statements and else blocks are grouped and wrap together, changing formatted Handlebars output. [github.com](https://github.com/prettier/prettier/blob/2.8.4/CHANGELOG.md)
- **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](https://github.com/prettier/prettier/blob/2.8.4/CHANGELOG.md)

And 1 more in this version.

### prettier 2.8.2 breaking changes

prettier 2.8.2, released January 7, 2023: 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](https://github.com/prettier/prettier/blob/2.8.2/CHANGELOG.md)
- **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](https://github.com/prettier/prettier/blob/2.8.2/CHANGELOG.md)

### prettier 2.7.0 breaking changes

prettier 2.7.0, released June 14, 2022: 2 breaking changes.

- **Signature changed** `SupportOption`  

Was type SupportOption = | IntSupportOption | IntArraySupportOption | BooleanSupportOption | BooleanArraySupportOption | ChoiceSupportOption | PathSupportOption | PathArraySupportOption; now type SupportOption = | IntSupportOption |... [npmjs.com](https://www.npmjs.com/package/prettier/v/2.7.0)
- **Signature changed** `SupportOptionType`  

Was type SupportOptionType = 'int' | 'boolean' | 'choice' | 'path'; now type SupportOptionType = 'int' | 'string' | 'boolean' | 'choice' | 'path'. [npmjs.com](https://www.npmjs.com/package/prettier/v/2.7.0)

### prettier 2.6.0 breaking changes

prettier 2.6.0, released March 16, 2022: 6 breaking changes.

- **Removed** `Printer.preprocess`  

Printer.preprocess was removed in prettier 2.6.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/2.6.0)
- **Removed** `StringArraySupportOption`  

StringArraySupportOption was removed in prettier 2.6.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/2.6.0)

And 4 more in this version.

### prettier 2.5.0 breaking changes

prettier 2.5.0, released November 25, 2021: 10 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](https://www.npmjs.com/package/prettier/v/2.5.0)
- **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](https://www.npmjs.com/package/prettier/v/2.5.0)

And 8 more in this version.

### prettier 2.4.0 breaking changes

prettier 2.4.0, released September 9, 2021: 7 breaking changes.

- **Signature changed** `CursorOptions.rangeEnd`  

Was rangeEnd?: never | undefined; now rangeEnd?: never. [npmjs.com](https://www.npmjs.com/package/prettier/v/2.4.0)
- **Signature changed** `CursorOptions.rangeStart`  

Was rangeStart?: never | undefined; now rangeStart?: never. [npmjs.com](https://www.npmjs.com/package/prettier/v/2.4.0)

And 5 more in this version.

### prettier 2.3.0 breaking changes

prettier 2.3.0, released May 9, 2021: 87 breaking changes.

- **Removed** `Options.embeddedInHtml`  

Options.embeddedInHtml was removed in prettier 2.3.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/2.3.0)
- **Signature changed** `BaseSupportOption.deprecated`  

Was deprecated?: true | string; now deprecated?: true | string | undefined. [npmjs.com](https://www.npmjs.com/package/prettier/v/2.3.0)

And 85 more in this version.

### prettier 2.2.0 breaking changes

prettier 2.2.0, released November 20, 2020: 3 breaking changes.

- **Removed** `Printer.printComments`  

Printer.printComments was removed in prettier 2.2.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/2.2.0)
- **Signature changed** `BooleanSupportOption.oppositeDescription`  

Was oppositeDescription?: boolean; now oppositeDescription?: string. [npmjs.com](https://www.npmjs.com/package/prettier/v/2.2.0)

And 1 more in this version.

### prettier 2.1.0 breaking changes

prettier 2.1.0, released August 24, 2020: 43 breaking changes.

- **Removed** `SupportOption.array`  

SupportOption.array was removed in prettier 2.1.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/2.1.0)
- **Removed** `SupportOption.category`  

SupportOption.category was removed in prettier 2.1.0 [npmjs.com](https://www.npmjs.com/package/prettier/v/2.1.0)

And 41 more in this version.

### prettier 2.0.3 breaking changes

prettier 2.0.3, released April 5, 2020: 1 breaking change.

- **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](https://github.com/prettier/prettier/blob/2.0.3/CHANGELOG.md)

### prettier 2.0.0 breaking changes

prettier 2.0.0, released March 21, 2020: 5 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](https://www.npmjs.com/package/prettier/v/2.0.0)
- **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](https://www.npmjs.com/package/prettier/v/2.0.0)

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](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
