Skip to main content

Prettier 3.10.1

Release Date: November 12, 2026

Prettier 3.10.1 arrived on November 12, 2026, one day after 3.10.0. A one day gap tells you something: this is a hotfix, and the interesting part is what the 3.10 series represents after years of Prettier being the stable, boring formatter everyone stopped arguing about.

What 3.10.1 Actually Fixes

One bug. GraphQL fragments with an empty selection set that contained only a comment used to crash the printer with an unhelpful message: Comment "x" was not printed. Please report this error. The comment is now preserved and the fragment prints as written. Small, but if your schema files carry commented out fields inside empty fragments, your CI would have failed on 3.10.0.

The Bigger Story: 3.10 Brought a Zig Powered Parser

The release that 3.10.1 patches is the one worth reading about. Prettier 3.10 introduced a new official plugin, @prettier/plugin-yuku, built on Yuku, a JavaScript and TypeScript compiler toolchain written in Zig. The plugin adds two parsers, yuku for JavaScript and yuku-ts for TypeScript, and it ships separately because of package size limits.

That is the first time in years Prettier has shipped a parser that is not built on Babel or TypeScript itself. Babel and TypeScript remain the defaults, so nothing changes unless you install the plugin, but the direction is clear: the formatter is hedging against the cost of parsing speed on very large codebases.

Flow Support Caught Up

Prettier 3.10 also added support for the Flow syntax that arrived in flow-parser 0.332.0. That covers template literal types, constructor types, mapped type modifiers with key remapping, abstract and override class members, inline import types, CommonJS import and export bindings, and unique symbol types. Prettier 3.9 printed those constructs as unknown syntax or failed outright.

How This Fits the Trajectory

Prettier spent its early years winning the formatting argument. Since 3.0 the work has been about reach: more grammars, more languages, more edge cases. The 3.9 release leaned on parser upgrades, 3.10 leans on a new parser written in Zig, and 3.10.1 is the routine cleanup that follows.

Upgrade with npm install --save-dev [email protected]. If you use the Yuku plugin, pin it separately, since it does not come bundled with the core package. Then run the formatter over a branch you can throw away, because GraphQL and Markdown comment handling has moved in small increments for several releases and the diff is usually bigger than expected.

Other Versions

We use cookies for ads and analytics.