7595 Commits

Author SHA1 Message Date
Sven SAULEAU
84bae86ae2 [skip ci] update README
Add xtuc to members
2016-12-17 10:50:24 +01:00
Henry Zhu
96084983e6 Add Team section [skip ci] 2016-12-16 20:38:27 -05:00
Henry Zhu
77d9e3e5c4 v6.21.0 2016-12-16 16:55:53 -05:00
Henry Zhu
3c28b4e1ac remove old code/license [skip ci] 2016-12-16 16:54:08 -05:00
Henry Zhu
542e4e9ee1 update babel-types readme [skip ci] 2016-12-16 16:50:41 -05:00
Henry Zhu
a73115f401 update core [skip ci] 2016-12-16 16:49:58 -05:00
Henry Zhu
8442dbdf29 v6.21.0 changelog [skip ci] (#5010) 2016-12-16 16:43:18 -05:00
Dan Harper
d90aaf2c76 Print Flow optional & type annotations in function params with defaults (#4872)
Fixes #4863
2016-12-16 15:31:05 -05:00
Brian Ng
01bc43464e Ensure directives get printed in block statements (#4873) 2016-12-16 15:30:14 -05:00
Justin Ridgewell
2bbc36d25e JSXSpreadChildren, throw in transform-react-jsx (#4988) 2016-12-16 15:30:00 -05:00
Henry Zhu
670ee996c8 Merge pull request #4940 from appden/fix-react-constant-elements
Fix React constant element bugs
2016-12-16 15:29:05 -05:00
Christoph Pojer
003d03789f Merge pull request #4979 from davidaurelio/generator-raw-mappings
babel-generator: Expose raw mappings
2016-12-16 20:00:48 +00:00
Henry Zhu
bfe4faa0d9 fix tests 2016-12-16 11:50:57 -05:00
Justin Ridgewell
852348d700 Fix default parameter - rest parameter edge case (#3572)
When the rest parameter shared the same name as a default identifier
for a param, the loop would be hoisted outside the function!

```js
var a = 1;

for (var _len = arguments.length, a = Array(_len > 1 ? _len - 1 : 0),
_key = 1; _key < _len; _key++) {
  a[_key - 1] = arguments[_key];
}

function foo2() {
  var b = arguments.length <= 0 || arguments[0] === undefined ? a :
arguments[0];

  assert.equal(b, 1);
}
foo2(undefined, 2);
```

And if you tried to reference any index or `#length`, it’d blow up and
refuse to transpile.
2016-12-16 10:53:52 -05:00
Brian Ng
196cdd4dce Bail on sharing comments with siblings if key is a string (#5007) 2016-12-16 10:52:48 -05:00
Henry Zhu
69a9f6bf70 babel-helper-transform-fixture-test-runner: pass require as a global (#4999) 2016-12-16 10:51:37 -05:00
Henry Zhu
c1e2b0dddc internal: don't run watch with the test env (skip building with code coverage) [skip ci] (#5005) 2016-12-16 10:51:18 -05:00
Diogo Franco (Kovensky)
31b85a36dd Add fixture for known bug 2016-12-16 11:25:42 +09:00
Diogo Franco (Kovensky)
ccf2f56085 Don't try to visit ArrowFunctionExpression, they cannot be named
They will still be visited if the arrow functions are transformed to regular
functions.

Fixes #5004
2016-12-16 11:14:47 +09:00
David Aurelio
2907d663dc add comments 2016-12-16 01:12:50 +00:00
Henry Zhu
e06faa99da fix sizing [skip ci] 2016-12-14 10:31:23 -05:00
Henry Zhu
63f673593e typo [skip ci] 2016-12-14 10:30:43 -05:00
Henry Zhu
a025cf1890 changelog for v6.20.1 to v6.20.3 [skip ci] 2016-12-14 10:29:47 -05:00
Henry Zhu
d1160cabb1 mention repl/link [skip ci] 2016-12-14 09:09:39 -05:00
Henry Zhu
cd2a9b0418 add semver label [skip ci] 2016-12-14 09:07:54 -05:00
David Aurelio
4cb7e5009a Add missing property descriptor values 2016-12-14 10:18:18 +00:00
Yuta Hiroto
68148b8a05 Fix links in CONTRIBUTING.md [skip ci] (#4989) 2016-12-12 08:00:16 -05:00
Henry Zhu
0ed97ce941 make installing runtime/transform-runtime clearer [skip ci] (#4991) 2016-12-11 21:04:24 -05:00
Brian Ng
7b5e6f1e50 Add example to es2015-unicode-regex [skip ci] (#4983) 2016-12-09 11:55:19 -05:00
David Aurelio
7ea283eb82 babel-generator: Expose raw mappings
Exposes raw mappings when source map generation is enabled. To avoid the cost of source map generation for consumers of the raw mappings only, `.map` is changed to a getter that generates the source map lazily on first access.
2016-12-09 09:55:42 +00:00
Henry Zhu
71a9e3275d v6.20.3 2016-12-08 21:55:37 -05:00
Logan Smyth
5aa87aab8d Calculate the correct arity for async functions with destructuring - fixes #4977 (#4978) 2016-12-08 21:51:24 -05:00
Henry Zhu
d597678def v6.20.2 2016-12-08 20:15:21 -05:00
Henry Zhu
cfc1e5cb38 fix object spread (#4976) 2016-12-08 20:13:57 -05:00
Henry Zhu
10d75f6d8a fix clean lib 2016-12-08 19:45:26 -05:00
Henry Zhu
07d49ffabf update readme [skip ci] 2016-12-08 19:33:55 -05:00
Henry Zhu
2bb9ab04e3 v6.20.1 2016-12-08 19:32:27 -05:00
Henry Zhu
88bc28c414 Fix nested object spread (#4974) 2016-12-08 19:30:50 -05:00
Henry Zhu
608e77e389 v6.20.0 2016-12-08 18:25:39 -05:00
Henry Zhu
16a05166b2 v6.20.0 changelog [skip ci] (#4971)
* v6.20.0 changelog [skip ci]
* remove old license since rewrite [skip ci]
2016-12-08 18:17:33 -05:00
Brian Ng
db04f99124 Raise limit on code size before compacting (#4965) 2016-12-08 18:08:56 -05:00
Ben Newman
16c84fb353 Use regenerator-transform to implement babel-plugin-transform-regenerator (#4881)
* Use regenerator-transform to implement babel-plugin-transform-regenerator.

Though I believe this is safe to merge, you may want to wait to merge it
until https://github.com/facebook/regenerator/pull/259 is merged. That
pull request also provides more explanation of why I think moving the
implementation of Regenerator back to its original repository is a good
idea. I'm happy to compromise on anything necessary to make this happen.

Note that the regenerator-transform version is pegged to an exact version
(0.9.7). Past experience has taught me that releasing new versions of
Regenerator is almost impossible if client projects are allowed to pull in
new patch versions automatically. I will happily submit a pull request
whenever a new version is released.

* Remove never-used babel-plugin-transform-regenerator/.test directory.

* regenerator-transform to 0.9.8
2016-12-08 15:17:03 -05:00
Boopathi Rajaa
73ff13f326 Add getBindingIdentifierPaths/getOuterBindingIdentifierPaths (#4876) 2016-12-08 12:43:14 -05:00
Justin Ridgewell
32aa1f75d6 Hoist generateDeclaredUidIdentifier helper function (#4934) 2016-12-08 12:42:22 -05:00
Denis Pushkarev
492e79f76d update regenerator-runtime in babel-polypill (#4966) 2016-12-08 10:58:22 -05:00
Henry Zhu
f8f78f50e5 Temp fix for make watch [skip ci] (#4967) 2016-12-08 10:42:31 -05:00
Ben Newman
26b4e0909e Add (and fix) failing test of function parameter bindings in a catch block (#4880)
* Add failing test of function parameter bindings in a catch block.

This test can be run in isolation via the following command:

  TEST_GREP='block-scoping.*function in catch' make test-only

This test fails because BlockScoping#getLetReferences accidentally
considers the parameters of the function declaration as let bindings in
the catch scope. When the name of the catch parameter is the same as one
of the function's parameter names, the function declaration will be
unnecessarily wrapped to isolate its parameters from the outer scope.

While the extra wrapping may not seem harmful in this case, this behavior
is a symptom of a deeper problem that causes very subtle bugs in transform
code involving catch parameters and function declarations. This test case
was just the simplest example I could find to demonstrate the problem.

I have a proposed fix for this problem that I will push as soon as the
tests fail for this commit.

* Make BlockScoping#getLetReferences ignore function parameters.
2016-12-08 10:16:48 -05:00
Ben Newman
44fe114939 Upgrade regenerator-runtime to version 0.10.0. (#4877)
This changes the behavior of `runtime.awrap` to match the output of https://github.com/leebyron/async-to-gen.

See this commit for further explanation of why this change is a good idea: e62a7e5008
2016-12-08 10:13:53 -05:00
wtgtybhertgeghgtwtg
d1c640ea61 Add /.test and /src to babel-plugin-transform-regenerator .npmignore. (#4961) [skip ci] 2016-12-08 10:12:29 -05:00
Logan Smyth
80dfdd2a43 Only base async fn arity on non-default/non-rest params - fixes #4891 (#4901) 2016-12-08 09:48:15 -05:00