Amjad Masad
fdac02fa26
Merge pull request #3184 from babel/workaround-inference
...
Test and workaround inference bugs
2015-12-18 15:33:42 -08:00
Henry Zhu
b79ff75c31
v6.3.23
2015-12-18 10:18:12 -05:00
Henry Zhu
ed6daa794f
Merge pull request #3169 from hzoo/rename-flow-comments
...
rename flow-comments plugin to transform-flow-comments
2015-12-18 10:07:30 -05:00
Amjad Masad
57b2ccdb66
Test and workaround inference bugs
2015-12-18 03:15:27 -08:00
Amjad Masad
31032ee7ad
v6.3.21
2015-12-18 00:23:03 -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
Amjad Masad
4c693085a6
Merge pull request #3180 from babel/needsblock
...
Handle nested if statements with alternates in printer
2015-12-17 23:06:05 -08:00
Amjad Masad
9de3a3cbb9
Merge pull request #3176 from jmm/T6779-func-name-method
...
Don't transform method definition in transform-es2015-function-name (T6779)
2015-12-17 22:54:39 -08:00
Amjad Masad
cda9fd291f
Merge pull request #3143 from fabiomcosta/improved_rest_transform_optimisations
...
[babel-plugin-transform-es2015-parameters][T6774] more opportunities for optimizations
2015-12-17 22:50:28 -08:00
Amjad Masad
47b686b6fa
Handle nested if statements with alternates in printer
...
Previously we saw a bug that when we have nested if statements
and an alternate then the generated code may confuse which
if statement the alternate belongs to.
e.g.
```
if (foo) if (bar) bar(); else baz();
```
But this was handled by looking at the consequent
and if it's an if we add a block. However we didn't
handle situations where it's not an if but the last
recursive statement is an if:
```
if (foo) while (bar) if (baz) baz(); else shoosh()
```
This handles it by recurring until we get the last
statement.
2015-12-17 22:41:55 -08:00
Marshall Roch
8b55f4dfc2
Upgrade to flow 0.20.0
2015-12-17 12:49:48 -08:00
Henry Zhu
c0e322d74a
Merge pull request #3177 from steveluscher/patch-1
...
Clarify description of `comments` config.
2015-12-17 14:18:37 -05:00
Steven Luscher
b6dabff82e
Correct type annotation for shouldPrintComment
...
I think this is supposed to be a `Function` that returns a `boolean`.
2015-12-17 10:50:59 -08:00
Fabio M. Costa
3868d36e31
[babel-plugin-transform-es2015-parameters] more oportunities for optimisations
2015-12-17 10:50:56 -08:00
Steven Luscher
603bb64db0
Clarify description of comments config.
...
It doesn't mean anything for “strip/output” to be “on.”
2015-12-17 10:36:10 -08:00
Sebastian McKenzie
16ae7c2d9a
Merge pull request #3171 from babel/inference-recursion
...
Inference recursion
2015-12-17 14:44:29 +00:00
Sebastian McKenzie
a8a58aaa07
Fix infinite recursion bug
2015-12-17 14:44:18 +00:00
voideanvalue
2ac8e836f5
[babel-generator] fix unhandled new-precedence edge case
2015-12-16 12:51:13 -08:00
Amjad Masad
c451222d6e
v6.3.20
2015-12-16 12:24:45 -08:00
Amjad Masad
4bb7dbabb0
Merge pull request #3170 from babel/fix-numeric-member-expr
...
Fix invalid codegen for number member expr
2015-12-16 12:21:42 -08:00
Amjad Masad
178da2f59b
var
2015-12-16 12:20:49 -08:00
Henry Zhu
6fd294057e
Merge pull request #3172 from babel/thejameskyle/T6805
...
Add Expression alias to BindExpression
2015-12-16 09:48:54 -05:00
Henry Zhu
ed016aef9e
add functionBind to babylon plugins readme
2015-12-16 09:47:08 -05:00
James Kyle
2141406c86
Add Expression alias to BindExpression
2015-12-15 23:37:29 -08:00
Amjad Masad
12fac9cadf
Inference recursion bug
2015-12-15 19:56:27 -08:00
Amjad Masad
320cede9be
Fix invalid codegen for number member expr
2015-12-15 17:47:46 -08:00
Henry Zhu
33ce926c7f
rename flow-comments plugin
2015-12-15 20:14:47 -05:00
Amjad Masad
9303517bab
v6.3.19
2015-12-14 14:11:36 -08:00
Amjad Masad
2a41f499bd
Merge pull request #3167 from babel/binary-expr
...
Use the leftMost from the right to check if we need spaces in BinaryExpressions
2015-12-14 14:05:05 -08:00
Amjad Masad
f2c8f2ac5c
Merge pull request #3157 from hzoo/port-flow-comments
...
move babel-plugin-flow-comments from babel-plugins repo and convert to use babel 6
2015-12-14 13:43:09 -08:00
Amjad Masad
007ef5cdbb
Use the leftMost from the right to check if we need spaces in BinaryExpressions
2015-12-14 13:36:52 -08:00
Logan Smyth
7b25b33ac6
Merge pull request #3161 from loganfsmyth/function-rename-6781
...
Only rename outer function bindings on conflict - fixes T6781
2015-12-13 23:44:43 -08:00
Logan Smyth
36717cbf81
Merge pull request #3142 from loganfsmyth/runtime-typeof-error-T6644
...
Add custom transform for babel-runtime builds to avoid circular deps - fixes T6644
2015-12-13 23:44:13 -08:00
Amjad Masad
d649b2e36e
v6.3.18
2015-12-13 23:01:37 -08:00
Logan Smyth
afcfba2075
Only rename outer function bindings on conflict - fixes T6781
2015-12-13 15:35:28 -08:00
Vyacheslav Slinko
925774ed86
Typo: t.numbericLiteral -> t.numericLiteral
2015-12-13 17:03:19 +03: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
Henry Zhu
1a545f2761
move babel-plugin-flow-comments from babel-plugins repo and convert to use babel 6
2015-12-11 10:59:08 -05:00
Jesse McCarthy
9674ef4b27
Make traverseNeedsParent message clearer.
2015-12-11 09:44:57 -05:00
Sebastian McKenzie
e9fa841ae6
Merge pull request #2833 from vhf/rest-arguments-use
...
Have es2015 rest transform safely use `arguments`
2015-12-12 01:35:57 +11:00
Sebastian McKenzie
d8445e0e78
Merge pull request #2933 from ForbesLindesay/babel-types-docs
...
Generate documentation for babel-types
2015-12-12 01:33:48 +11:00
Sebastian McKenzie
0278f5a2ba
Merge pull request #3107 from MakeNowJust/fix/t6675-2
...
Fixed T6675
2015-12-12 01:30:05 +11:00
Amjad Masad
1fbbdd61e3
v6.3.17
2015-12-10 17:20:27 -08:00
Henry Zhu
caa7fc0853
Merge pull request #3150 from babel/thejameskyle-patch-1
...
Do not prefer global when installing babel-cli
2015-12-10 16:42:29 -05:00
Amjad Masad
d2e7e6a54d
Merge pull request #3152 from babel/minified-format
...
Add minified format option
2015-12-10 16:28:48 -05:00
Henry Zhu
055374ba18
Merge pull request #3151 from babel/object-property-pure
...
Support ObjectProperty in purity check
2015-12-09 22:02:38 -05:00
Amjad Masad
cbc37bfb2c
do-while takes a statement
...
see http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements
2015-12-09 18:37:02 -08:00
Amjad Masad
cb03a98b65
Add minified format option
...
As a follow up from #3145 we agreed to add a new format that is a
superset of the compact format option. Do things that are considered
dangerous. e.g. not printing semicolons, or print literal values
as opposed to raw values.
2015-12-09 17:34:23 -08:00