Andy
2541ab5fda
Simplify PrivateName and ClassPrivateProperty types ( #532 )
...
* Simplify PrivateName and ClassPrivateProperty types
* ClassPrivateProperty is not a ClassMemberBase; can't be static, can't be computed
2017-05-22 13:42:32 -04:00
Diego Ferreiro Val
01da62283c
Modify grammar to support Private Fields proposal: ( #260 )
...
* Modify grammar to support Private Fields proposal:
- Adding optional plugin `classPrivateProperties`
- Adding PrivateName type identifier
- Adding ClassPrivateProperty to ClassBody
- Allow PrivateName in MemberExpression
- Allow PrivateName as a reference
- Adding tests
* Remove unnecesary liberal parameter
* Guarding for plugin dependecy for future versioning
* update spec.md [skip ci]
* move comment [skip ci]
* remove unused param [skip ci]
* Refactor PrivateName to contain Identifier in name property
2017-05-22 11:33:48 -04:00
Brian Ng
eaf8d4589a
1.5.1
2017-05-22 09:30:25 -05:00
Brian Ng
6ad103b756
Update changelog for v1.5.1 [skip ci]
2017-05-22 09:29:08 -05:00
Brian Ng
fa69bfc755
Compile with loose mode ( #332 )
2017-05-22 10:19:55 -04:00
Brian Ng
c6eab0c206
Merge pull request #5758 from STRML/test-react-constant-elements-unreferenced-param
...
Add regression test for transform-react-constant-elements (#5552 )
2017-05-21 13:38:52 -05:00
Samuel Reed
83232bb4ff
Add regression test for transform-react-constant-elements ( #5552 )
2017-05-21 11:47:35 -05:00
Justin Ridgewell
5b261849e0
Merge pull request #5755 from u9lyfish/patch-1
...
Fix broken tables in README.md
2017-05-20 16:57:53 -04:00
Brian Ng
0fcfcc5bf2
1.5.0
2017-05-20 14:19:39 -05:00
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