prettier
3.10.1 · 12 Nov 2026MIT196.9M / weekRepositoryHomepagenpmAtom feed
Upgrading prettier From 1.12.0 to 1.19.1
29 releases in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 13
- new
- 36
- fixes
Before you upgrade
Tick each one off as you go- Breaking1.16.4
Release by release
1.18.2 – 1.19.13 releases, nothing new or fixed in the notes
- New
TypeScript: Add trailing comma in tsx, only for arrow function ([#6190]
- New
1.18.0nothing new or fixed in the note
- Fixed
Range: Fix ranged formatting not using the correct line width ([#6050]
- Fixed
JavaScript: Fix closure compiler typecasts ([#5947]
- Fixed
Handlebars: Fix {{else}}{{#if}} into {{else if}} merging ([#6080]
- Fixed
1.17.0nothing new or fixed in the note
- Breaking
Unfortunately this lead to a minor breaking change:
prettier.getSupportInfo('1.15.0')would report that it supportedbabel, notbabylon, which breaks text-editor integrations. - Fixed
API: Fix
prettier.getSupportInfo()reporting babel parser for older versions of Prettier. ([#5826]
- Breaking
1.16.3nothing new or fixed in the note
- Fixed
CLI: Fix CI detection to avoid unwanted TTY behavior ([#5804]
- Fixed
HTML: Do not format non-normal whitespace as normal whitespace ([#5797]
- Fixed
JavaScript: Fix record type cast comment detection ([#5793]
- Fixed
55 other lines we could not sort, mostly version bumps
- 1.18.2
TypeScript: Only add trailing commas in tuples for
--trailing-comma=all([#6199] - 1.18.1
Config: Match dotfiles in config overrides ([#6194]
- 1.17.1
JavaScript: Respect parenthesis around optional chaining before await ([#6087]
- 1.17.1
JavaScript: Improved multiline closure compiler typecast comment detection ([#6070]
- 1.16.3
TypeScript: Revert "Update typescript-estree to new package name" ([#5818]
- 1.16.1
TypeScript: Stable parentheses for function type in the return type of arrow function ([#5790]
- 1.16.1
MDX: Correctly recognize inline JSX ([#5783]
- 1.15.3
JavaScript: Improve union types with leading comments
- 1.15.3
TypeScript: Inline method decorators should stay inlined
- 1.15.3
HTML: Preserve bogus comments
<! ... >/<? ... >
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.