11661 Commits

Author SHA1 Message Date
Brian Ng
3b4c36f9e4 Update changelog for v1.5 [skip ci] 2017-05-20 14:07:32 -05:00
Brian Ng
08d397af14 Merge pull request #321 from babel/backport-string-versions
Backport support for target versions as strings
2017-05-20 14:05:24 -05:00
Artem Yavorsky
842d0540a4 Backport: use preset-env and remove flow-strip-types (#324)
* es2015 -> env.

* Remove transform-flow-strip-types plugin.
2017-05-20 14:04:48 -05:00
u9lyfish@gmail.com
58c686378d Fix broken tables in README.md 2017-05-20 23:44:51 +08:00
James Lal
6928695735 Flow comments import export (#5675)
* Add failing test for `export type .. from ...; `

* Add support for flow comment : `export ... from '...'`
2017-05-20 09:10:39 -04:00
Brian Ng
9a92933589 Fix incorrect property ordering with obj rest spread on nested (#5750) 2017-05-20 09:08:23 -04:00
Artem Yavorsky
9b9318493e Merge branch 'master' into backport-string-versions 2017-05-20 13:04:01 +03:00
Artem Yavorsky
a3654478df Merge pull request #329 from babel/bump-electron
Bump electron-to-chromium to 1.3.11
2017-05-20 12:59:33 +03:00
Justin Ridgewell
943fa8aa73 Merge pull request #5753 from jridgewell/7.0
Hoist toSequenceExpression's convert helper (#5693)
2017-05-19 21:54:06 -04:00
Justin Ridgewell
58216f5022 Hoist toSequenceExpression's convert helper (#5693) 2017-05-19 17:35:05 -04:00
Brian Ng
a4e6f90d06 Use ensureDirSync in smoke test 2017-05-19 16:28:30 -05:00
Brian Ng
0781f711d0 Support target versions as strings (#231) 2017-05-19 16:28:30 -05:00
Brian Ng
72591a0ebd Bump electron-to-chromium 2017-05-19 16:26:47 -05:00
Justin Ridgewell
5f866f2d92 Hoist toSequenceExpression's convert helper (#5693)
* Hoist toSequenceExpression's convert helper

* Adds tests

* lint

* dev-depend on babel-generator
2017-05-19 17:03:33 -04:00
Justin Ridgewell
8cd4a62c02 Transform do-expressions on exit (#5694)
* Transform do-expressions on exit

This allows other transforms (notably, block scoping) to do their magic
first, possibly saving closures.

Also fixes a bug with declaring duplicate bindings (de-opts now).

* Use strict in exec test

* lint
2017-05-19 16:58:15 -04:00
Buu Nguyen
c474fd48e1 Fix issue semi-colon gets inserted unnecessarily (#5749)
* Fix issue semi-colon gets inserted unnecessarily

* Simplify if condition a bit
2017-05-19 16:54:51 -04:00
Brian Ng
37c8da674a Bump prettier (#289) 2017-05-19 15:40:19 -05:00
Brian Ng
2788a914f6 Add process to test sandbox (#5410) 2017-05-19 15:13:23 -04:00
Justin Ridgewell
09229db794 Cleanup template-literals transform (#5748)
Avoid `Array#shift`s and prefer `const`s when possible.
2017-05-19 14:57:15 -04:00
Brian Ng
a52d34023c Add spec option example for transform-es2015-arrow-functions [skip ci] (#5698) 2017-05-19 14:56:56 -04:00
Mauro Bringolf
8facda4505 Added more types to API signatures (#5733) [skip ci] 2017-05-19 14:53:43 -04:00
Mauro Bringolf
943b7371a1 Completed return types for all NodePath family methods (#5739) [skip ci] 2017-05-19 14:52:13 -04:00
Kevin Gibbons
6c4acecf00 Fix #437: only prohibit 'export type from "module" ' when flow is enabled (#438)
* Only prohibit 'export type' when flow is enabled

* Fix lint
2017-05-19 10:05:44 +02:00
Artem Yavorsky
ddd6d66bc6 Remove old comments. 2017-05-18 16:45:33 +03:00
Artem Yavorsky
d320d0c587 Fix stderr file reading. 2017-05-18 16:43:37 +03:00
Artem Yavorsky
4d96adaf3c Update stderr for usage with import. 2017-05-18 16:43:09 +03:00
Artem Yavorsky
b0ff26985f Add test for stderr. 2017-05-18 16:20:25 +03:00
Artem Yavorsky
84c38182ad Add usage with import ‘babel-polyfill’ fixture. 2017-05-18 16:20:17 +03:00
Brian Ng
dcef4012a0 Disallow SpreadElement inside dynamic import (#529)
* Disallow SpreadElement inside dynamic import

* tweak error message
2017-05-17 12:07:09 -04:00
Brian Ng
14e9fbf345 Tweak version mappings to match compat-table updates (#323) 2017-05-17 10:26:23 -05:00
James Browning
23ff45fcfa Spec fix as BindExpression only have a single object/callee not an Array (#436) [skip ci]
* Fixed spec.md to reflect that BindExpressions only have a single node not an array for their properties

* Added semicolons to BindExpression props
2017-05-17 10:25:10 -04:00
Max Schaefer
b08fdf87e8 Fix handling of anonymous parameters in flowParseObjectTypeMethodish. (#526)
By analogy with `flowParseFunctionTypeParams` (cf. commit 407c97c9c2fe453fc2ae940c3d3b11c90d9dbc8e).
2017-05-16 22:53:13 +02:00
Karl Cheng
0667160b11 Fix optimisation of shadowed rest parameters
The arguments of a function would be unnecessarily copied if there was
a nested function that had a parameter with the same identifier as the
rest parameter for the outer function. This checks the scope of the
parameter is correct before deoptimising.

Fixes: https://github.com/babel/babel/issues/5656
Refs: https://github.com/babel/babel/issues/2091
2017-05-16 22:39:13 +10:00
Artem Yavorsky
e1cb75989f Add flow (#269) 2017-05-15 08:59:48 -05:00
greenkeeper[bot]
4ef964e066 Update cross-env to the latest version 🚀 (#520)
* chore(package): update cross-env to version 5.0.0

* Update yarn.lock
2017-05-14 20:03:20 +02:00
Andy
aa78011666 Fix type check errors (#521) 2017-05-14 19:59:56 +02:00
Andy
d95b5fb83d Remove unused parameters from parseParenAndDistinguishExpression (#522) 2017-05-14 19:59:03 +02:00
Mauro Bringolf
ce6f67216e Add test cases for bad options in babel-preset-es2015 (#5720)
* Added testcases for bad 'spec' or 'module' option

* Corrected typo in test description
2017-05-14 16:21:37 +02:00
Sven SAULEAU
486563152c Merge pull request #5729 from Daniel15/patch-1
Lowercase "business model" in badge
2017-05-12 11:31:16 +02:00
Daniel Lo Nigro
11539e219b Lowercase "business model" in badge
For consistency with the other badges

Also removed a stray quotation mark.
2017-05-11 21:48:26 -07:00
Logan Smyth
086cdfc705 Add more compat logic for Rest/SpreadElement for 6.x vs 7.x 2017-05-11 18:24:34 -07:00
Andy
a738870472 Type-check ExpressionParser (#488)
* Type-check ExpressionParser

* Improve test coverage
2017-05-11 16:30:21 +02:00
Andy
7a8b64c0d3 Type-check StatementParser (#489) 2017-05-11 16:28:12 +02:00
Daniel Tschinder
f6020aecbf Convert argument of SpreadElement correctly to assignable (#518) 2017-05-11 00:45:08 +02:00
Daniel Tschinder
d605a9a4de Fix flow errors (#517) 2017-05-11 00:04:43 +02:00
Andy
1773ca7457 Type-check State (#492) 2017-05-10 21:55:09 +02:00
greenkeeper[bot]
8862c96237 Update flow-bin to the latest version 🚀 (#497)
* chore(package): update flow-bin to version 0.45.0

https://greenkeeper.io/

* Update yarn.lock
2017-05-10 21:50:30 +02:00
Andy
1f113fd650 Fix FunctionDeclaration spec: Id may be null (#503)
* Fix FunctionDeclaration spec: Id may be null

* Use OptFunctionDeclaration and OptFunctionExpression
2017-05-10 21:29:05 +02:00
Alex Rattray
4e776bf00b Better error message for anonymous class declarations (#509) 2017-05-10 21:26:38 +02:00
Brian Ng
ea22361673 Bump browserslist. (#319) 2017-05-10 13:59:05 -05:00