Nicolò Ribaudo
8659e1a88c
Remove old expected.{js,json} files ( #7187 )
2018-01-09 13:10:30 -06:00
Raja Sekar
0f42accb87
Renamed files
2018-01-09 15:36:42 +01:00
Henry Zhu
9ac326b075
remove es20xx prefixes from plugins and rename folders ( #6575 )
2017-10-28 20:43:15 -04:00
Henry Zhu
c41abd79a1
Rename all proposal plugins to -proposal- from -transform- ( #6570 )
2017-10-27 15:26:38 -04:00
Henry Zhu
691f90a774
Scoped: change test imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Logan Smyth
2b88e079ef
Only transform this/use strict if a module.
2017-09-20 10:19:35 -07:00
Mateusz Burzyński
c47258d68c
Annotating transformed classes with #__PURE__ comment ( #6209 )
2017-09-11 11:18:37 -04:00
Oliver Don
960151c876
Fix #4840 : Alias class prototype for methods in loose mode ( #5560 )
...
* Fix #4840 : Alias class prototype for methods in loose mode
* Cleanup
2017-08-26 21:15:45 -04:00
Noah Lemen
4fdd75695b
Update Class Fields to Stage 3 and change default behavior ( #6076 )
...
* add transform-class-properties to stage 3, set spec mode to default
* update readme with examples; use `buildUndefinedNode()`; change behavior to always define both static and nonstatic class properties regardless of spec/loose mode; update tests
2017-08-10 11:19:49 -04:00
jbrown215
4e9a25e34a
Flow opaque type aliases ( #5990 )
2017-08-02 16:30:19 -05:00
Henry Zhu
0f823beeb1
Newlines in fixtures ( #6044 )
...
* write newlines for fixtures
* rerun fixtures
2017-08-02 15:35:29 -04:00
Justin Ridgewell
78544417fc
Remove noop ( #5970 )
...
It’s ugly, but it gets the job done. And it unblocks my babel-type
changes.
2017-07-20 11:36:13 -04:00
Daniel Tschinder
b3372a572d
Remove whitespace generation ( #5833 )
...
* Remove whitespace generation and rely on default printing
Changes to printing:
* Add newline after last empty SwitchCase
* Add newlines around block comments if they are non-flow comments or contain newlines
* Fix a few more fixtures
2017-06-27 21:57:02 -05:00
Henry Zhu
cdca54aed3
remove possibleConstructorReturn in loose mode as well
2017-06-09 18:42:52 -04:00
Henry Zhu
123dce5fcd
Hardcode to double quotes, indent to 2 spaces ( #5824 )
2017-06-05 22:14:37 -05: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
Chau Nguyen
d710e6dd5b
[7.0] Drop flowUsesCommas option from babel-generator ( #5123 )
2017-01-19 22:24:13 -05:00
Sergey Rubanov
292c3ca206
Refactor test packages to use ES modules instead of CJS ( #5138 )
2017-01-16 11:25:04 -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
Dan Harper
9e17aaf043
retain return types on ObjectMethods in transform-es2015-shorthand-properties ( #4670 )
2016-10-04 21:32:43 -04:00
Dan Harper
7f772e94ce
retain method return types on transform-es2015-classes ( closes #4665 ) ( #4668 )
2016-10-04 18:22:29 -04:00
Dan Harper
0e02a18216
fix regression in transform-flow-comments for class properties ( #4623 )
2016-10-01 00:56:09 -04:00
Dan Harper
8709899b42
fix flow-strip-types/flow-comments removing entire ClassProperty ( #4587 )
2016-09-28 18:25:33 +02:00
Dan Harper
41f2bbc104
Flow: Fix generating arrow functions with param ( #4504 )
...
* transform-flow-comments, single arrow param support #4503
* further tests for printing single arrow func param flow code
* cleanup
2016-09-12 08:27:49 -04: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
Jeff Morrison
e6951e99f0
Add support for leading pipes in Flow type alias RHS syntax
2016-02-05 13:23:55 -05: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
Sam Goldman
ef60fed7d6
Add test ensuring declare statements are transformed to comments
2015-12-23 16:49:18 -05:00
Henry Zhu
33ce926c7f
rename flow-comments plugin
2015-12-15 20:14:47 -05:00