-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Comparing changes
Open a pull request
base repository: prettier/prettier
base: 0.19.0
head repository: prettier/prettier
compare: 0.20.0
- 20 commits
- 56 files changed
- 6 contributors
Commits on Feb 23, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 71a1ca8 - Browse repository at this point
Copy the full SHA 71a1ca8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c4654b - Browse repository at this point
Copy the full SHA 7c4654bView commit details -
Fix extra parens for update expressions (#796)
* Remove parens around UpdateExpression when parent is CallExpression. * Add new test case.
Configuration menu - View commit details
-
Copy full SHA for c8c1875 - Browse repository at this point
Copy the full SHA c8c1875View commit details
Commits on Feb 24, 2017
-
```js // test.js var prettier = require('./'); prettier.format('a=1'); ``` ```js node test.js // doesn't crash ```Configuration menu - View commit details
-
Copy full SHA for 2111f11 - Browse repository at this point
Copy the full SHA 2111f11View commit details -
Configuration menu - View commit details
-
Copy full SHA for cea2548 - Browse repository at this point
Copy the full SHA cea2548View commit details -
Fix function declaration params comments (#802)
* Add new handleFunctionDeclarationComments function. * Add dangling comments printing for function params. * Add new test case. * Update tests. * Refactor handleFunctionDeclarationComments to only addDanglingComment when no params. * Remove unecessary helper function, only attach dangling comments when no params. * Reset flow tests, no more regression.
Configuration menu - View commit details
-
Copy full SHA for b32ace8 - Browse repository at this point
Copy the full SHA b32ace8View commit details -
This fixes the bug with comments swapped between `/*` and `//` Fixes #755
Configuration menu - View commit details
-
Copy full SHA for 1b9234a - Browse repository at this point
Copy the full SHA 1b9234aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a447c0 - Browse repository at this point
Copy the full SHA 9a447c0View commit details
Commits on Feb 25, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 04f09dd - Browse repository at this point
Copy the full SHA 04f09ddView commit details
Commits on Feb 27, 2017
-
The code that supported `do` was likely from some recast time and didn't work anymore.
Configuration menu - View commit details
-
Copy full SHA for 443a5d6 - Browse repository at this point
Copy the full SHA 443a5d6View commit details -
Do not put parenthesis around not named default export (#819)
We need to add parenthesis around function expressions if they are named otherwise the name leak, but if the function is not named then it's just superfluous. The conditional change is due to a bad use of switch case where it would fall through the next one. We don't want parenthesis there.
Configuration menu - View commit details
-
Copy full SHA for 08b8a5f - Browse repository at this point
Copy the full SHA 08b8a5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a59e2c6 - Browse repository at this point
Copy the full SHA a59e2c6View commit details -
Fix trailing commas in docs (#825)
I also added support for parser dropdown and stop minifying the bundle so that the flow parser actually works. Fixes #816
Configuration menu - View commit details
-
Copy full SHA for edf2bde - Browse repository at this point
Copy the full SHA edf2bdeView commit details -
Put short body of arrow functions on the same line (#829)
By adding a group, we can avoid adding a newline if the expression fits in a single line. Fixes #800
Configuration menu - View commit details
-
Copy full SHA for 4540f47 - Browse repository at this point
Copy the full SHA 4540f47View commit details
Commits on Feb 28, 2017
-
Preserve new lines for comments after
=(#830)The `hasLeadingOwnLineComment` helper is going to be useful for other places where we just used `n.comments` as a proxy for it. Fixes #660
Configuration menu - View commit details
-
Copy full SHA for c17bcab - Browse repository at this point
Copy the full SHA c17bcabView commit details -
Fix indentation of a merged group (#828)
Printing a merged group indented was actually not the right fix. The right fix was to print them in a single line. It used to have this behavior when I was mutating the first group but now that I don't anymore I need to reproduce this condition. Fixes #823
Configuration menu - View commit details
-
Copy full SHA for 2ea1dbc - Browse repository at this point
Copy the full SHA 2ea1dbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6148266 - Browse repository at this point
Copy the full SHA 6148266View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2534067 - Browse repository at this point
Copy the full SHA 2534067View commit details -
Allow breaking for logical expressions in member chains (#827)
I'm not really sure what a general rule is for those, but starting with LogicalExpressions should be good. Outside of identifiers, function calls and logical expressions, there aren't a lot of things you'd put there in real code anyway. Fixes #822
Configuration menu - View commit details
-
Copy full SHA for d6e3815 - Browse repository at this point
Copy the full SHA d6e3815View commit details -
Configuration menu - View commit details
-
Copy full SHA for e09bdd4 - Browse repository at this point
Copy the full SHA e09bdd4View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.19.0...0.20.0