923 Commits

Author SHA1 Message Date
Sebastian McKenzie
592193321d fix defaults on type annotated arrow function params - fixes #2493 2015-11-05 09:49:03 +00:00
Sebastian McKenzie
f4fe578a6c add node existence check to NodePath#has - fixes #2800 2015-11-04 23:38:14 +00:00
Sebastian McKenzie
1bfb7039e9 protect against replacing a class expression with itself when attempting to infer a new function name - fixes #2803 2015-11-04 23:34:33 +00:00
Sebastian McKenzie
1796b1926c Merge pull request #2798 from amasad/fix-2782
Fix recursion in async-to-generator transforms
2015-11-04 19:19:15 +00:00
Sebastian McKenzie
5aa1b29ef8 Merge pull request #2793 from amasad/fix-2789
Convert arrow functions when remaping to generator. Fixes #2789
2015-11-04 19:18:50 +00:00
Sebastian McKenzie
9680bf6a68 Merge pull request #2811 from hzoo/i-2808
transformation-react-inline-elements: ensure invalid identifier JSX attribute keys are quoted - fixes #2808
2015-11-04 19:16:32 +00:00
Junle
763d1d1f51 Fix the typo: preset -> presets. 2015-11-05 02:10:59 +08:00
Henry Zhu
f01d2054d4 transformation-react-inline-elements: ensure invalid identifier JSX attribute keys are quoted - fixes #2808 2015-11-04 08:47:09 -05:00
Amjad Masad
2220167903 Fix recursion in async-to-generator transforms
We're naming the inner generator function in the name of the
original async function. This means when people have recursive
await calls it refers to the generator version. Which is fine
if we had a `yield *` (delegate). However, if not it leads to
returning an unresolved generator object.

We can either capture all recursive calls and add a delegate, which
becomes really hard with expressions. I choose to have the name
reserved to the exposed function `retFunction`.

Fixes #2782
2015-11-03 17:05:41 -08:00
Sebastian McKenzie
bcfe582fef remove json files in favor of just plain js files 2015-11-04 00:00:08 +00:00
Amjad Masad
e33ad7d2fb Convert arrow functions when remaping to generator. Fixes #2789 2015-11-03 14:58:31 -08:00
Sebastian McKenzie
9eee677321 Merge pull request #2790 from moretti/issue-2613
Preserve indentation in template literals, fixes #2613
2015-11-03 20:13:09 +00:00
Sebastian McKenzie
0e76a5ace1 fix existential type param parsing 2015-11-03 20:04:55 +00:00
Sebastian McKenzie
4ad8a1dc83 fix es2015-instanceof and es2015-typeof-symbol packages and add README 2015-11-03 19:36:51 +00:00
Sebastian McKenzie
a9ac3b0c94 move instanceof functionality to separate plugin - fixes #2745 2015-11-03 19:22:51 +00:00
Sebastian McKenzie
1c3b4aa410 add npm check to babel-doctor 2015-11-03 19:13:46 +00:00
Paolo Moretti
232bf76b4d preserve original indentation in template literals, fixes #2613 2015-11-03 18:05:26 +00:00
Paolo Moretti
f5bbd09b49 add fixtures for #2613 2015-11-03 18:05:22 +00:00
Sebastian McKenzie
dd76272fb1 fix source map merging - closes #2522, fixes #2336 2015-11-03 14:24:36 +00:00
Sebastian McKenzie
7dc1b4e7e9 add ExistentialTypeParam - fixes #2587 2015-11-03 13:48:03 +00:00
Sebastian McKenzie
49cbd27441 simplify Parser::semicolon method 2015-11-03 11:46:11 +00:00
Sebastian McKenzie
b486dfb675 add lineBreak test to tt.name.updateContext - fixes #2591 2015-11-03 11:46:01 +00:00
Sebastian McKenzie
d8b17a9eaa add support for async generator concise methods - fixes #2603 2015-11-03 11:19:04 +00:00
Sebastian McKenzie
72b6e42b34 fix object rest/spread in arrow function params - fixes #2631 2015-11-03 11:14:12 +00:00
Sebastian McKenzie
8ffc7012cc autoclear cache when it gets too big - fixes #2678 2015-11-03 10:57:32 +00:00
Sebastian McKenzie
cdeff2fbb1 simplify parentheses logic and properly parenthesise unaries - fixes #2711 2015-11-03 10:49:24 +00:00
Sebastian McKenzie
1e725f4806 add babel-browser package - fixes #2635, closes #2721 2015-11-03 10:43:43 +00:00
Sebastian McKenzie
a7f35e39f8 v6.1.1 2015-11-03 10:21:51 +00:00
Sebastian McKenzie
9110cbfbc8 stop looking for configs in babel-doctor when we get to the root 2015-11-03 10:20:57 +00:00
Sebastian McKenzie
c004777efa v6.1.0 2015-11-03 10:06:50 +00:00
Sebastian McKenzie
a31d211e2e remove unused imports 2015-11-03 10:05:39 +00:00
Sebastian McKenzie
5ee8f7568b add babel-doctor 2015-11-03 10:04:20 +00:00
Sebastian McKenzie
751c53b728 v6.0.20 2015-11-03 04:21:25 +00:00
Sebastian McKenzie
59ecfecb9e fix indentation and skip check for references that are inside the function we're checking execution status against 2015-11-03 04:17:38 +00:00
Sebastian McKenzie
91c463c0f7 fix react inline elements plugin when creating properties out of jsx expression containers - fixes #2766 2015-11-03 03:34:46 +00:00
Sebastian McKenzie
c1cceef128 make class constructor call transform ignore derived classes and fix transforming of classes in export default position - fixes #2700 2015-11-03 03:31:05 +00:00
Sebastian McKenzie
072fffcbdf v6.0.19 2015-11-03 03:14:31 +00:00
Sebastian McKenzie
8ec3e16794 fix remaining outer binding identifier issues 2015-11-03 03:13:39 +00:00
Sebastian McKenzie
64a9a6027e refactor t.getOuterBindingIdentifiers to only return the id if it's a function declaration 2015-11-03 03:05:57 +00:00
Sebastian McKenzie
e72d4508de only use outer bindings when registering a binding to prevent retreiving function params - fixes #2615 2015-11-03 03:00:27 +00:00
Sebastian McKenzie
a639bffcd6 clean up auxiliaryComment 2015-11-03 02:46:00 +00:00
Sebastian McKenzie
56e9805657 v6.0.18 2015-11-03 01:23:11 +00:00
Sebastian McKenzie
85dd7ec40e add error for too many builder method args 2015-11-03 01:20:17 +00:00
Sebastian McKenzie
06afafa8ff remove comprehension support from t.getBindingIdentifiers 2015-11-03 01:20:04 +00:00
Sebastian McKenzie
336be752f8 remove state arg from pre and post plugin hooks 2015-11-03 01:19:52 +00:00
Sebastian McKenzie
e62a00df50 rename NumberLiteral to NumericLiteral and RegexLiteral to RegExpLiteral 2015-11-03 01:19:35 +00:00
Sebastian McKenzie
9bc95258e6 v6.0.17 2015-11-02 19:53:45 +00:00
Sebastian McKenzie
aeaa4e1d32 fix op declaration in simplify comparison operator plugin 2015-11-02 19:47:18 +00:00
Sebastian McKenzie
83dca691d2 remove use strict directive 2015-11-02 19:47:09 +00:00
Sebastian McKenzie
d2b67d5048 remove buggy traceur test 2015-11-02 19:40:27 +00:00