-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Comparing changes
Open a pull request
base repository: prettier/prettier
base: 0.14.1
head repository: prettier/prettier
compare: 0.15.0
- 17 commits
- 132 files changed
- 8 contributors
Commits on Jan 31, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 57c8c99 - Browse repository at this point
Copy the full SHA 57c8c99View commit details -
Fix closing call expression commented out (#530)
* [Failing test] Comments in call expression ```js foo( // Hi ) ``` prints ```js foo // Hi(); ``` * add one more failing case * Don't group last args that has comments attached * Update snapshot
Configuration menu - View commit details
-
Copy full SHA for 045a351 - Browse repository at this point
Copy the full SHA 045a351View commit details -
Update
bracketSpacing
comment to say it's about {} (#529)Before e13bb7d `bracketSpacing` used to be about both `[]` and `{}` but now it's only about `{}`.
Configuration menu - View commit details
-
Copy full SHA for 3155acb - Browse repository at this point
Copy the full SHA 3155acbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea59718 - Browse repository at this point
Copy the full SHA ea59718View commit details -
Print \x and \u escapes in strings and regexes lowercase (#522)
* Print \x and \u escapes in strings and regexes lowercase Theoretically, we would want to do this for escapes int identifiers as well. However, neither flow nor babylon preserves escapes in identifiers. For example, `\u0061.\u{0061}` cannot be distinguished from `a.a`. Nobody uses such escapes in real code anyway. It could also be considered a feature that such escapes are converted to real unicode characters. * Update snapshots * Normalize escapes in template literals * Update snapshots
Configuration menu - View commit details
-
Copy full SHA for 7148184 - Browse repository at this point
Copy the full SHA 7148184View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5291e2 - Browse repository at this point
Copy the full SHA f5291e2View commit details -
Preserve next line with trailing comment (#535)
It turns that our hasNextLine logic needs to be tuned to skip all the trailing comments. The code is not pretty but it does the job. It looks like it fixes a bunch of things in the test cases :) I made sure that nested inline comments are NOT valid JavaScript ```js /* /* a */ */ Uncaught SyntaxError: Unexpected token * ``` so it is okay to do a dumb search for */ when you are in a comment
Configuration menu - View commit details
-
Copy full SHA for 8bc3c61 - Browse repository at this point
Copy the full SHA 8bc3c61View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3fa519 - Browse repository at this point
Copy the full SHA d3fa519View commit details -
Configuration menu - View commit details
-
Copy full SHA for 410e75d - Browse repository at this point
Copy the full SHA 410e75dView commit details -
Reimplement MemberExpression printing (#469)
There are currently three issues related to suboptimal rendering of MemberExpression chains. The previous implementation was trying to flatten only a single group at the same time, but it didn't work well because we didn't have the full context to be able to make decisions. In this implementation, I'm going through the entire chain at the same time and group it into logical units and make decisions based on this. It solves all the problems I can think of and if we need to tweak it in the future, it should be easy. Fixes #268 Fixes #212 Fixes #21
Configuration menu - View commit details
-
Copy full SHA for d0bc299 - Browse repository at this point
Copy the full SHA d0bc299View commit details
Commits on Feb 1, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 7587b5a - Browse repository at this point
Copy the full SHA 7587b5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c7837b - Browse repository at this point
Copy the full SHA 6c7837bView commit details -
Configuration menu - View commit details
-
Copy full SHA for be8f13d - Browse repository at this point
Copy the full SHA be8f13dView commit details
Commits on Feb 2, 2017
-
Make comments between if & else to look good (#544)
While trying to figure out how to handle both MemberExpression comments and IfStatement comments, I ended up doing this one as well... Sorry @yamafaktory :( The logic is a bit annoying but works. Fixes #487
Configuration menu - View commit details
-
Copy full SHA for e56fd38 - Browse repository at this point
Copy the full SHA e56fd38View commit details -
Whitelist UnaryExpression for parentless objects (#545)
It seems like unary are unlikely to need parenthesis Fixes #542
Configuration menu - View commit details
-
Copy full SHA for b6c9e42 - Browse repository at this point
Copy the full SHA b6c9e42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5042168 - Browse repository at this point
Copy the full SHA 5042168View commit details -
Configuration menu - View commit details
-
Copy full SHA for b040be2 - Browse repository at this point
Copy the full SHA b040be2View 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.14.1...0.15.0