Sam Pepose
3ee06187d5
Fixed incorrect newlines with Flow object types ( #3548 )
2016-06-23 20:38:05 -04:00
Jordan Klassen
dc1f40540d
Upgrade to lodash 4 ( #3315 )
...
* Upgrade to lodash 4
* Fix incorrect require in babel-runtime/scripts
* Replace cloneDeep with cloneDeepWith where applicable
2016-05-13 17:15:14 -04:00
Logan Smyth
eb455dff85
Pre-expand type aliases for fast lookup.
2016-04-19 19:36:10 -07:00
Logan Smyth
256c0100cb
Wrap parens around default exports starting with function/class - fixes T7136
2016-03-12 15:31:16 -08:00
Amjad Masad
2fbe28cc88
Remove remaining @flow annotations
2016-03-03 15:10:59 -08:00
Amjad Masad
12ee11a0a4
Revert "Remove Flow annotations and pragmas"
...
This reverts commit 4252244d06b225ab26a02d52c04f9940a3e4d6a2.
2016-03-03 15:03:55 -08:00
Henry Zhu
1271d2cd52
Merge pull request #3380 from babel/unary-arrow
...
Fix: Add parens for unary arrow function
2016-02-29 12:18:12 -05:00
Henry Zhu
ec3c183668
Fix: Add parens for unary arrow function
...
Fixes T7157
2016-02-28 21:56:22 -05:00
Sam Goldman
5167d001c5
Remove @noflow as well
2016-02-28 13:25:36 -10:00
Sam Goldman
4252244d06
Remove Flow annotations and pragmas
2016-02-28 13:18:57 -10:00
Amjad Masad
bcc32da0d9
Merge pull request #3316 from forivall/babel-generator-simplify-node
...
Simplify babel-generator/node/index.js
2016-02-04 14:10:16 -08:00
Henry Zhu
f8036c7230
Merge pull request #3311 from babel/object-body
...
[T7047] Consider arrow functions when parenthesizing object expressions
2016-02-04 14:44:22 -05:00
Henry Zhu
c2d7e95e1a
add some more flow types
2016-02-04 11:07:03 -05:00
Jordan Klassen
8fd329a2f4
Remove "Node" class from generator, just use module
...
The Node class was unused as a class
2016-02-03 16:51:10 -08:00
Amjad Masad
3d3b30eb45
[T7047]Consider arrow functions when parenthesizing object expressions
2016-02-02 16:26:31 -08:00
Amjad Masad
139503e86f
Parenthesize await/yield expression in binary expr
2016-01-06 17:35:39 -08:00
Amjad Masad
6abee425d3
Revert "babel-types: add Binary alias to AssignmentExpression definition (fixes T6887)"
...
This was causing problems with parenthesizing assignment expression
This reverts commit b5cf529d6b342b3dd8dd49c50cc9cd5fed4fc5a7.
2016-01-06 15:59:39 -08:00
Amjad Masad
e79c625091
Merge pull request #3229 from hzoo/T6913
...
Add a check for parentheses for AwaitExpressions (fixes T6913)
2016-01-06 14:22:54 -06:00
Henry Zhu
cf41c321af
Don't overparenthesize, add yield tests
2016-01-05 18:12:25 -05:00
Henry Zhu
ab2135bc9f
Add a check for parentheses for AwaitExpressions (fixes T6913)
2016-01-04 08:31:07 -05:00
Henry Zhu
b5cf529d6b
babel-types: add Binary alias to AssignmentExpression definition (fixes T6887)
2016-01-01 14:44:28 -05:00
Amjad Masad
ed5a057e4e
Fix various print inefficiencies/bugs
2015-12-27 01:24:19 -08:00
Amjad Masad
10c9d26983
Also use for object expressions
2015-12-24 15:01:46 -08:00
Amjad Masad
0d8e5a9e86
Fix over-parenthesizing of function expressions
2015-12-24 14:55:51 -08:00
Amjad Masad
135e1e56ca
Merge pull request #3182 from babel/arrow-fn
...
Parenthesize arrow function when part of logical or binary expression
2015-12-18 00:11:24 -08:00
Amjad Masad
4aaaeb9ccf
decouple arrow functions from function exprs
2015-12-17 23:31:52 -08:00
Amjad Masad
c889ef4058
Parenthesize arrow function when part of logical or binary expression
2015-12-17 23:18:43 -08:00
Marshall Roch
8b55f4dfc2
Upgrade to flow 0.20.0
2015-12-17 12:49:48 -08:00
voideanvalue
2ac8e836f5
[babel-generator] fix unhandled new-precedence edge case
2015-12-16 12:51:13 -08:00
Amjad Masad
07df8515b9
Parenthesize object expression when it could end up at the start of an expression T6811
2015-12-11 18:04:16 -08:00
Amjad Masad
19daae6d96
Don't print on throw statements with sequence exprs
2015-12-07 02:48:11 -08:00
Daniel Lo Nigro
0076204f80
Fix Flow.
...
Removed `@flow` annotation from files that don't actually pass Flow check at the moment. These will be added back file by file once the files are properly converted to use Flow.
Closes #3064
2015-11-15 21:30:22 -08:00
Sebastian McKenzie
cdeff2fbb1
simplify parentheses logic and properly parenthesise unaries - fixes #2711
2015-11-03 10:49:24 +00:00
Sebastian McKenzie
370b7913b4
add ArrowFunctionExpression parentheses logic
2015-10-30 22:51:02 +00:00
Sebastian McKenzie
ae7d5367f1
6.0.0
...
I'm extremely stupid and didn't commit as I go. To anyone reading this
I'm extremely sorry. A lot of these changes are very broad and I plan on
releasing Babel 6.0.0 today live on stage at Ember Camp London so I'm
afraid I couldn't wait. If you're ever in London I'll buy you a beer
(or assorted beverage!) to make up for it, also I'll kiss your feet and
give you a back massage, maybe.
2015-10-29 17:51:24 +00:00
Sebastian McKenzie
f88cc9d509
clean up babel-generator - closes #2210
2015-10-05 16:37:37 +01:00
Sebastian McKenzie
227ed5638a
add flow type annotations
2015-09-23 16:10:44 +01:00
Sebastian McKenzie
c99a179401
var -> let
2015-09-18 18:45:55 +01:00
Sebastian McKenzie
f33c96c276
make export default anoynmous class/function statements - fixes #2205
2015-09-01 05:34:11 +01:00
Sebastian McKenzie
15f73b4fc3
remove noisy comments/documentation
2015-09-01 04:56:03 +01:00
Sebastian McKenzie
3ef9bffcc2
split up babel core into multiple modules
2015-08-11 17:40:59 +01:00