prettier v1.3.0 Release Notes

  • diff

    ๐Ÿš€ ๐Ÿ”— Release Notes

    • โž• add printer branches for some TypeScript nodes (#1331)
    • Skip trailing commas with FlowShorthandWithOneArg (#1364)
    • โž• add TSLastTypeNode and TSIndexedAccessType (#1370)
    • โž• add TSConstructorType (#1367)
    • ๐Ÿ›  fix do-while break (#1373)
    • ๐Ÿ›  Fix missing trailing commas on flow generics (#1381)
    • โž• Add example of using yarn test with arguments (#1383)
    • Have --debug-check also run ast verification (#1337)
    • ๐Ÿ›  Fix empty line in block with EmptyStatement (#1375)
    • ๐Ÿ–จ parent decides how to print type annotations (#1391)
    • โž• add TSTypeOperator (#1396)
    • ๐Ÿ›  fix TSTypeReference not printing typeArguments (#1392)
    • โž• add TSMappedType and TSTypeParameter (#1393)
    • ๐Ÿ›  fix TSFunctionType failing on TypeParameters (#1394)
    • โž• add TSIntersectionType (#1395)
    • ๐Ÿ›  fix typeParameters printing TSFunctionType w/o breaking flow (#1397)
    • ๐Ÿ›  Fix optional flow parenthesis (#1357)
    • ๐Ÿ‘• [experimental] Add linting step in test pipeline (#1172)
    • ๐Ÿ›  fix VariableDeclarator not printing type parameters (#1415)
    • โž• add TSMethodSignature (#1416)
    • โž• Add TSParameterProperty, TSAbstractClassDeclaration and TSAbstractMethodDefinition (#1410)
    • Inline nullable in flow generics (#1426)
    • ๐Ÿ›  fixed method 'check' error 'format' of undefined (#1424)
    • ๐Ÿ‘ feat(typescript): add delcare modifier support for vars, classes and functions (#1436)
    • ๐Ÿ‘ Allow flow declarations to break on StringLiteralTypeAnnotations (#1437)
    • ๐Ÿ’… Require '::a.b' to have a preceding ; in no-semi style (#1442)
    • ๐Ÿ’… Require '(a || b).c++' to have a preceding ; in no-semi style (#1443)
    • โฌ†๏ธ Upgrade flow parser to 0.45 (#1447)
    • โž• Add supertype tests and add TSAbstractClassProperty (#1467)
    • Break class expression returned by arrow call (#1464)
    • โšก๏ธ update typescript snapshots to account for #1464 (#1470)
    • ๐Ÿšง [WIP] add TSNamespaceExportDeclaration (#1459)
    • โšก๏ธ update yarn.lock (#1471)
    • [RFC] Do not indent calls with a single template literal argument (#873)
    • Proper indentation for template literals (#1385)
    • โž• Add parenthesis for unusual nested ternaries (#1386)
    • Preserve inline comment as last argument (#1390)
    • Only add parenthesis on ternaries inside of arrow functions if doesn't break (#1450)
    • ๐Ÿ›  Fix windows line ending on template literals (#1439)
    • โž• Add space around = for flow generics default arguments (#1476)
    • Don't break for unparenthesised single argument flow function (#1452)
    • Don't break on empty arrays and objects (#1440)
    • Do not break on [0] (#1441)
    • Reorder flow object props (#1451)
    • Break inline object first in function arguments (#1453)
    • Break inline object first in function arguments (#1453) (#1173)
    • Inline template literals as arrow body (#1485)