Packages

prettier

3.10.1 · 12 Nov 2026MIT196.9M / weekRepositoryHomepagenpmAtom feed

Your version

0.11.0

23 Jan 2017Where it was published

0.22.0 is the newest release of 0.11.x.

In short

11 new14 fixed19 changed

Release note

diff

Now using minor versions instead of patch versions for the releases.

  • Swap quotes

  • Drop jsesc

  • Use a Symbol instead of the private dep

  • Add parens for default export FunctionExpressions

  • Fix export extension output

  • Exit with an error if an unknown CLI option is passed

  • Warn if using deprecated CLI options

  • s/jscodefmt/prettier/

  • Fix CLI options

  • Fix some parens cases for UpdateExpressions

  • Output strings with the minimum amount of escaped quotes

  • Ignore EmptyStatement inside of switch case

  • Support multiple standalones in import

  • Fix missing semi-colon in for loop and var body

  • Fix empty labels

  • Fix forced trailing comma

  • Empty switch should not have an empty line

  • Add formatAST() for formatting ASTs directly

  • Fix class extends parenthesis

  • Fix class inside of binary expression missing parenthesis

  • Fix parenthesis in object as left-hand-side of template

  • Remove unneeded parens for FunctionExpression inside LogicalExpression

  • Remove trailing comma for array destructuring with rest

  • Fix +++x

  • Also do the class extend parenthesis for class expressions

  • Fix various parenthesis issues on the left side of template

  • Fix in inside of the first group of a for

  • Add parenthesis for arrow function inside of ternary

  • Add parenthesis around class expression when left side of call expression

  • Ensure computed method names don't lose quotes

  • Add parenthesis for yield inside of a conditional

  • Add parenthesis around assignment for arrow function body

  • Add parenthesis around export default assignments

  • Add parenthesis for class expression on left of member expression

  • Fix missing parens around object in MemberExpression

  • Re-run snapshot tests

  • Workaround flow bug around trailing comma

  • Add parenthesis when class expressions are left of a ternary

  • Revert "Workaround flow bug around trailing comma"

  • Update commands.md

  • Improve vim integration section

  • Add glob support to the CLI

  • Use babel-code-frame for syntax errors

  • Update yarn.lock

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.