Amjad Masad
4b2a660ee0
Merge pull request #3323 from divmain/master
...
Source-map support for multiple input source files
2016-03-07 11:57:59 -08:00
Dale Bustad
288b3ba559
Attach filename property to node.loc when provided.
2016-03-07 02:47:28 -08:00
Sam Goldman
a38a58bad8
Add support for Flow def-site variance syntax
...
This syntax allows you to specify whether a type variable can appear in
a covariant or contravariant position, and is super useful for, say,
Promise.
Right now this is hacked in jankily, but in the next major release we
should stop using Identifier nodes for type parameters.
2016-03-06 14:44:09 -08:00
Henry Zhu
57ef6a2b6a
v6.6.5
2016-03-04 18:16:17 -05:00
Amjad Masad
2fbe28cc88
Remove remaining @flow annotations
2016-03-03 15:10:59 -08:00
Amjad Masad
12ee11a0a4
Revert "Remove Flow annotations and pragmas"
...
This reverts commit 4252244d06b225ab26a02d52c04f9940a3e4d6a2.
2016-03-03 15:03:55 -08:00
Amjad Masad
3667527d04
Revert "Remove flow"
...
This reverts commit 2827ff6b01dcce69e9d3c0402e96b52b3a2a47ee.
2016-03-03 14:49:20 -08:00
Henry Zhu
39a8f5b796
v6.6.4
2016-03-02 16:29:17 -05:00
Sam Goldman
2827ff6b01
Remove flow
2016-03-01 22:33:30 -08:00
Henry Zhu
f34e6518ff
v6.6.0
2016-02-29 16:12:12 -05:00
Sam Goldman
cd1af74ecc
Remove weird codemod artifact
2016-02-28 13:23:28 -10:00
Sam Goldman
4252244d06
Remove Flow annotations and pragmas
2016-02-28 13:18:57 -10:00
Logan Smyth
98c0c08808
Merge pull request #3355 from loganfsmyth/babylon-browserifiable
...
Clean up babylon bundle to allow it to be re-bundled - fixes T6930
2016-02-22 08:50:06 -08:00
Sebastian McKenzie
93e5c0e64b
Merge pull request #3361 from babel/klint
...
Switch to klint, fix some lint rules
2016-02-14 23:26:30 +00:00
Sebastian McKenzie
5b89849f43
Switch to klint, fix some lint rules
2016-02-14 23:25:14 +00:00
Logan Smyth
ce1423d560
Properly fail to parse >== and <== - fixes T2921
2016-02-13 10:08:05 -08:00
Logan Smyth
9e383b09b9
Clean up babylon bundle to allow it to be re-bundled - fixes T6930
2016-02-12 22:48:00 -08:00
Henry Zhu
b1bb39e733
v6.5.2
2016-02-12 11:29:58 -05:00
Henry Zhu
8568198238
Add class properties test with a generator method that results in a parse error
2016-02-11 13:03:36 -05:00
Logan Smyth
18fd06cf4a
Merge pull request #3332 from loganfsmyth/revert-prop-semi
...
Revert to standard ASI behavior for class properties
2016-02-10 22:40:44 -07:00
Logan Smyth
c67905ac93
Add tests for class property ASI.
2016-02-06 23:01:38 -08:00
Logan Smyth
63b328ce87
Revert "babylon: throw parse error if class properties do not have a semicolon (fixes T6873)"
...
This reverts commit 976edfc06740e434d1d5b136e28996a77f909403.
2016-02-06 18:36:31 -08:00
Logan Smyth
89ae1dc258
Revert "babylon: fix error location for class properties with a missing semicolon"
...
This reverts commit f31099f383b52cf4fe1786188f6421529dea865b.
2016-02-06 18:36:22 -08:00
Henry Zhu
f9f8ad6eff
v6.5.0
2016-02-06 19:06:41 -05:00
Amjad Masad
e24be1a051
Merge pull request #3305 from jviereck/T7052
...
Fix: Arrow functions with trailing comma + return type are throwing an error when parsing
2016-02-05 13:50:57 -08:00
Jeff Morrison
e6951e99f0
Add support for leading pipes in Flow type alias RHS syntax
2016-02-05 13:23:55 -05:00
Henry Zhu
c2d7e95e1a
add some more flow types
2016-02-04 11:07:03 -05:00
Julian Viereck
624a811885
Fix and tests
2016-01-31 01:22:31 +01:00
Henry Zhu
e152e7044e
v6.4.5
2016-01-19 18:02:31 -05:00
Bradley Farias
b628fee856
fix flow for babylon
2016-01-19 13:01:26 -06:00
Chris Cowan
af363c8da5
Make babylon ignore duplicate plugins.
2016-01-15 19:29:21 -08:00
Chris Cowan
aa9b3ec2a8
Make Babylon correctly handle "flow" being present multiple times in plugins.
2016-01-15 19:00:38 -08:00
Henry Zhu
7af1bd4354
v6.4.2
2016-01-06 21:26:43 -05:00
Henry Zhu
f31099f383
babylon: fix error location for class properties with a missing semicolon
2016-01-06 18:42:26 -05:00
Henry Zhu
8cac20d845
v6.4.0
2016-01-06 15:34:12 -05:00
Sebastian McKenzie
d2f5a409da
Merge pull request #3225 from hzoo/cp-semi
...
`babylon`: throw parse error if class properties do not have a semico…
2016-01-06 15:22:37 +00:00
Sam Goldman
aeeffe5cff
Guard export interface against isExportDefaultSpecifier
2016-01-05 17:28:21 -08:00
Sam Goldman
17d19a0056
Add export interface Flow syntax support
...
An interface export is just like a type export. In fact, it's a syntax affordance which makes the following equivalent:
```javascript
interface I_ { ... }
export type I = I_;
```
```javascript
export interface I { ... }
```
See facebook/flow#1145
2016-01-05 15:57:45 -08:00
Sam Goldman
26c97c4069
Add support for "declare interface" Flow syntax
...
This has been a feature in Flow for a long time (couldn't easily find a
specific commit adding this). Interfaces are basically undocumented, though, so
it's easy to see how this was missed.
2016-01-04 11:50:12 -08:00
Sam Goldman
e764346d5f
Add support for "declare type" Flow syntax
...
See facebook/flow#1105
2016-01-04 11:42:43 -08:00
Henry Zhu
976edfc067
babylon: throw parse error if class properties do not have a semicolon (fixes T6873)
2015-12-30 14:01:46 -05:00
Jesse McCarthy
424d059292
Don't make directive from parenthesized string.
2015-12-28 11:04:33 -05:00
Jesse McCarthy
00505ac171
Add non-directive fixture.
...
(Failing.)
2015-12-28 11:04:33 -05:00
Sebastian McKenzie
5ca1cf0506
Merge pull request #3203 from samwgoldman/flow-mixins-6.x
...
Add support for mixins to Babel 6.x
2015-12-27 21:04:40 +00:00
Sebastian McKenzie
6fe210d4bf
stop people from patching babylon by building it
2015-12-24 03:58:52 +00:00
Sam Goldman
123a9596ce
Add support for mixins to Babel 6.x
2015-12-23 16:09:12 -05:00
Sam Goldman
32c03222bf
Add support for this type to Babel 6.x
2015-12-23 13:54:57 -05:00
Amjad Masad
ae8b7ea352
v6.3.26
2015-12-22 23:11:59 -08:00
Amjad Masad
959021dc70
Merge pull request #3190 from hzoo/remove-await-star
...
Remove await* from babel-generator, add parsing error to babylon - (fixes T6688)
2015-12-22 22:57:23 -08:00
Henry Zhu
0037cf6b34
remove all property, fixup tests
2015-12-23 00:02:02 -05:00