Ilya Lesik
738060ebfa
Fix support for Flow's DeclareClass type parameters ( #9459 )
2019-02-06 08:18:07 -06:00
Nicolò Ribaudo
d896ce2b53
v7.3.2
2019-02-04 23:20:05 +01:00
gverni
65cbbc1ef8
Fix duplicate definition error in private class methods ( #9453 )
2019-02-04 09:19:04 -06:00
Yuri Karadzhov
854313a759
Correctly visit param decorators to prevent their imports being removed in typescript transform ( #8738 )
...
* Remove types on program exit in typescript transform
* Revert changes to typescript transform
* Correctly add visitors for param decorators
* Fix plugin for node 6
2019-01-24 15:07:56 -08:00
Brian Ng
d4e045ac24
Fix support for Flow's QualifiedTypeIdentifier ( #9396 )
2019-01-23 15:19:17 -06:00
Nicolò Ribaudo
f6ee26c3da
v7.3.0
2019-01-21 22:22:39 +01:00
unconfident
e9588061d7
Copy "optional" property when cloning Identifier node ( #9333 )
...
Fixes #9331
2019-01-17 17:12:16 -05:00
Nicolò Ribaudo
28b70e5910
Generate types for TSImportType
2019-01-11 11:46:15 +01:00
Henry Zhu
4c2f8d9337
@babel/generator: Add emit and builder for TSImportType ( #9309 )
2019-01-10 13:57:00 -05:00
Cameron Martin
778a61a3c2
[@babel/types] Moved generators related to babel-types into the babel-types package directory. ( #9245 )
2019-01-09 00:14:31 +01:00
David Laban
9803253363
flow type update: babel-types.isType(?string, string): boolean ( #9275 )
2019-01-07 08:53:01 -06:00
David Laban
3f9a1c08cc
Add tests for babel-types.isType ( #9243 )
2018-12-27 12:49:34 +01:00
Nicolò Ribaudo
c1499b13ac
v7.2.2
2018-12-15 10:59:56 +01:00
Thiago Arrais
731182eee4
Types for pipeline operator (smart proposal) ( #9122 )
2018-12-13 06:58:58 +01:00
Daniel Tschinder
ca2918ab13
Test local version of babel/types
2018-12-05 13:34:36 -08:00
Daniel Tschinder
d915f31bcb
Add tests for createTypeAnnotationBasedOnTypeof
2018-12-05 13:24:55 -08:00
Nicolò Ribaudo
282129ea66
v7.2.0
2018-12-03 20:00:35 +01:00
Tim McClure
0859535b62
Private class methods stage 3 ( #8654 )
...
* Add private method syntax support
* Add private method spec support
* Add private method loose support
* Throw error if static private method is used
* Add more isStatic & isMethod checks
* Remove `writable:false` from private method inits
`writable` is false by default.
* Add private method func obj equality check
* Throw if private accessor is used
* Add check for fields === private method loose mode
* Throw buildCodeFrameErrors instead of Errors
* Move obj destructuring inside for loop
* Remove "computed" from ClassPrivateMethod type def
2018-11-28 16:20:09 -08:00
Daniel Tschinder
4f2eacf615
chore: Fix warning when using prettier in code generators ( #9093 )
...
Also add more output to the generation
2018-11-27 19:34:11 -08:00
Nicolò Ribaudo
4e1d6e7ff4
v7.1.6
2018-11-13 22:10:06 +01:00
Greg Bergé
4fcee1751a
Fix cloneNode with typeAnnotation. ( #8997 )
...
Fixes #8996
2018-11-12 17:10:09 -08:00
Henry Zhu
afe67a7035
v7.1.5
2018-11-06 17:21:22 -05:00
Jordan Brown
e4929e11f6
[flow] Explicit inexact objects with ... ( #8884 )
2018-10-29 15:09:17 -05:00
Henry Zhu
8ee857e268
v7.1.3
2018-10-11 11:52:19 -04:00
Retsam
3951acbff5
chore: add generated files for #8805 ( #8826 )
2018-10-08 12:29:33 -05:00
Retsam
08454ece46
Typescript - Tuples can include rest elements ( #8805 )
2018-10-08 11:32:31 -05:00
Tim von Oldenburg
4b8cb75b74
types: allow jsxEmptyExpression inside jsxExpressionContainer ( #8791 )
2018-10-07 23:31:03 -04:00
Retsam
a5b5ed928d
Typescript - Tuple elements can be optional ( #8720 )
2018-10-02 11:29:51 -05:00
Henry Zhu
3f5b7554b8
v7.1.2
2018-09-28 18:19:38 -04:00
Henry Zhu
ead23d7112
v7.1.1
2018-09-28 16:02:43 -04:00
Pig Fang
f38be13113
TypeScript: reserve unknown as TSUnknownKeyword ( #8755 )
2018-09-25 12:19:32 -05:00
Henry Zhu
90fb82a535
v7.0.0
2018-08-27 17:41:21 -04:00
Henry Zhu
814c564c45
v7.0.0-rc.4
2018-08-27 12:42:00 -04:00
Henry Zhu
cada040bec
v7.0.0-rc.3
2018-08-24 14:06:00 -04:00
Rafael de Oleza
22bcfbe469
Fix path.scope.rename() to not change break clauses ( #8478 )
...
* Make labels on break and continue statements not referenced
* Add test for imports and labels with the same name
2018-08-23 14:20:57 -07:00
Henry Zhu
f1d774b34f
v7.0.0-rc.2
2018-08-21 15:22:07 -04:00
Henry Zhu
0a958861c9
v7.0.0-rc.1
2018-08-09 16:06:08 -04:00
Henry Zhu
8b1406127a
v7.0.0-rc.0
2018-08-09 11:56:00 -04:00
Henry Zhu
6695f5e2f7
v7.0.0-beta.56
2018-08-03 21:02:42 -04:00
Henry Zhu
adca165ee9
v7.0.0-beta.55
2018-07-28 18:06:42 -04:00
Andy
8ee24fdfc0
TypeScript: Support type arguments on tagged templates ( #7754 )
...
| Q | A
| ------------------------ | ---
| Fixed Issues? | #7747 (partly)
| Patch: Bug Fix? |
| Major: Breaking Change? |
| Minor: New Feature? | Yes
| Tests Added + Pass? | Yes
| Documentation PR |
| Any Dependency Changes? |
| License | MIT
@JamesHenry This changes the AST format. CC @DanielRosenwasser for review.
Supports parsing type arguments on tagged template calls.
Should wait on Microsoft/TypeScript#23430 to be merged so we're sure we have the final syntax.
2018-07-26 10:44:43 -05:00
Maximilian Berkmann
26cbbb569f
Bumped lodash to 4.17.10 ( #8377 )
2018-07-24 12:57:43 -04:00
Henry Zhu
84282f199b
v7.0.0-beta.54
2018-07-16 13:59:43 -04:00
Henry Zhu
b89234b1a2
v7.0.0-beta.53
2018-07-11 09:39:52 -04:00
Andy
301db1b921
TypeScript: Support type arguments on JSX opening and self-closing tags ( #7799 )
2018-07-10 17:19:42 -05:00
Tim Kendrick
e9184ed05e
[babel-types] Fix isNodesEquivalent() behavior for TemplateElements ( #8165 )
...
Fixes #8163
The `isNodesEquivalent()` algorithm incorrectly assumes that any object properties must themselves be AST nodes, which is not the case here, causing the error.
2018-07-06 08:45:25 -04:00
Henry Zhu
663c96db04
v7.0.0-beta.52
2018-07-05 20:59:03 -04:00
Rubén Norte
85b7154f91
Add visitor key for Flow typeArguments in call expressions ( #8273 )
...
| Q | A <!--(Can use an emoji 👍 ) -->
| ------------------------ | ---
| Fixed Issues? | Fixes #8272 <!-- remove the (`) quotes to link the issues -->
| Patch: Bug Fix? | Yes
| Major: Breaking Change? |
| Minor: New Feature? |
| Tests Added + Pass? | Yes
| Documentation PR | <!-- If so, add `[skip ci]` to your commit message to skip CI -->
| Any Dependency Changes? |
| License | MIT
The visitor for `typeArguments` in function calls wasn't set in the definition, so type annotations added there weren't visited.
This is required to fix https://github.com/babel/babel-eslint/issues/644
2018-07-05 14:58:15 -05:00
Rodolfo Rodriguez
c6a4108e57
Update READMEs for yarn ( #8215 ) [skip ci]
...
Closes https://github.com/babel/babel/pull/8255
2018-07-03 09:03:18 -04:00
Sven Sauleau
8f8b4e8e82
Switch new website in READMEs ( #8181 ) [skip ci]
2018-06-15 10:13:20 -04:00