6504 Commits

Author SHA1 Message Date
kpdecker
9b79fbcdf5 Avoid emitting duplicate source map entries 2015-12-18 00:57:48 -06: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
Henry Zhu
0749e2dd92 Merge pull request #3179 from mroch/flow_0_20_0
Upgrade to flow 0.20.0
2015-12-17 16:05:32 -05: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
Henry Zhu
8ea45fb0e0 Merge pull request #3178 from steveluscher/patch-2
Correct type annotation for `shouldPrintComment`
2015-12-17 14:17:35 -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
Amjad Masad
b802034a25 Merge pull request #3173 from voideanvalue/T6829
[babel-generator] fix unhandled new-precedence edge case
2015-12-16 13:32:18 -08:00
voideanvalue
2ac8e836f5 [babel-generator] fix unhandled new-precedence edge case 2015-12-16 12:51:13 -08:00
Henry Zhu
fa96d15793 add 6.3.20 changelog 2015-12-16 15:32:32 -05: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
Henry Zhu
59f5e7f218 v6.3.19 changelog 2015-12-14 17:27:07 -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
22424f457d v6.3.18 changelog 2015-12-13 23:15:06 -08:00
Amjad Masad
d649b2e36e v6.3.18 2015-12-13 23:01:37 -08:00
Logan Smyth
ee6f470d77 Requeue generators for re-traversal so we pick up regeneratorRuntime - fixes T6676 2015-12-13 16:15:02 -08:00
Logan Smyth
afcfba2075 Only rename outer function bindings on conflict - fixes T6781 2015-12-13 15:35:28 -08:00
Henry Zhu
9c88b8797e Merge pull request #3160 from vslinko-forks/numbericLiteral
Typo: t.numbericLiteral -> t.numericLiteral
2015-12-13 11:44:39 -05:00
Vyacheslav Slinko
925774ed86 Typo: t.numbericLiteral -> t.numericLiteral 2015-12-13 17:03:19 +03:00
Amjad Masad
4e82edb6d0 Merge pull request #3158 from babel/paren-object
Parenthesize object expression when it may end up at the start of an expression
2015-12-12 20:43:46 -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
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
740604f268 Merge pull request #3123 from jmm/traverse-needs-parent-message
Make traverseNeedsParent message clearer.
2015-12-11 10:05:43 -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
Henry Zhu
53d548bb5b fix typo in 6.3.17 changelog 2015-12-10 22:03:40 -05:00
Amjad Masad
7892b7e6f3 Changelog for 6.3.17 2015-12-10 17:29:43 -08: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