Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: prettier/prettier
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.3.0
Choose a base ref
...
head repository: prettier/prettier
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.3.1
Choose a head ref
  • 8 commits
  • 39 files changed
  • 5 contributors

Commits on May 2, 2017

  1. 1.3.0 docs

    vjeux committed May 2, 2017
    Configuration menu
    Copy the full SHA
    b481c57 View commit details
    Browse the repository at this point in the history
  2. add TSDecorator (#1488)

    despairblue authored and vjeux committed May 2, 2017
    Configuration menu
    Copy the full SHA
    5cf1659 View commit details
    Browse the repository at this point in the history
  3. fix #1484 (#1487)

    * don't print colon if there is no `typeAnnotation`
    * print prefix also for empty interfaces
    despairblue authored and vjeux committed May 2, 2017
    Configuration menu
    Copy the full SHA
    e8a80ca View commit details
    Browse the repository at this point in the history

Commits on May 3, 2017

  1. Implement TypeScript keywords, namespace functions and class heritage (

    …#1483)
    
    * feat(typescript): #1480: implement *Keyword, namespace function and class heritage
    
    * feat(typescript): add type params and modifiers to interfaces
    
    * chore(style): add squigly wings to if/else blocks
    
    * fix(typescript): remove hardline before declare
    azz authored and vjeux committed May 3, 2017
    Configuration menu
    Copy the full SHA
    59b348f View commit details
    Browse the repository at this point in the history
  2. Fix handling of new keyword and call signatures and improve type para…

    …meter formatting (#1491)
    
    * fix(typescript): fix handling of new keyword
    
    * fix(typescript): fix handling of call signatures
    
    * feat(typescript): share type parameter formatting with flow
    azz authored and vjeux committed May 3, 2017
    Configuration menu
    Copy the full SHA
    aeeaffc View commit details
    Browse the repository at this point in the history
  3. Drop htmlEscapeInsideAngleBracket function in favour of raw/extra.raw…

    … from Flow/Babylon parsers (#1165)
    
    * Make slice simpler.
    
    * Drop htmlEscapeInsideAngleBracket function.
    
    Use child.extra.raw (Babylon) and child.raw (Flow) to get the value instead.
    
    * Remove unused htmlEscapeInsideAngleBracket function.
    
    * Update test cases accordingly.
    
    * Fix merge conflict.
    
    * Update tests via `npm test -- -u`.
    
    * Fix multiple consecutive spaces preservation in printJSXChildren.
    
    * Update tests accordingly.
    yamafaktory authored and vjeux committed May 3, 2017
    Configuration menu
    Copy the full SHA
    9e345c8 View commit details
    Browse the repository at this point in the history
  4. Respect template inline-ness (#1497)

    In 1.3.0, we shipped a change that makes template literal always inlined as single arguments of a function. The problem with template literals is that they whitespace is significant so we can't change it. There are two cases:
    
    ```js
    call(`
      template
      template
    `);
    ```
    
    and
    
    ```js
    call(
      `template
       template`
    );
    ```
    
    If you always make the same decision to inline, you're going to be wrong for the other use case. The solution that I found that works is to figure out if there's a `\n` before the backtick `` ` ``. If that's the case, then don't inline, otherwise do. We're trying to avoid looking at the source as much as possible but this is one example where we actually don't have a choice if we want to keep the output sane.
    
    1.3.0 made the jest codebase significantly worse because of this. The issue is that once things have been moved, this heuristic won't be able to undo it. So people need to have this fix applied before they run 1.3.0, otherwise it's going to damage their codebase unless they manually change everything back, which is a pain. So I'm going to land this as a hotfix in 1.3.1.
    
    Fixes #1492
    vjeux authored May 3, 2017
    Configuration menu
    Copy the full SHA
    8613046 View commit details
    Browse the repository at this point in the history
  5. 1.3.1 (hotfix)

    vjeux committed May 3, 2017
    Configuration menu
    Copy the full SHA
    515a565 View commit details
    Browse the repository at this point in the history
Loading