Daniel Tschinder
3932830535
Parse non-octals with leading zeros in non strict mode correctly ( #9114 )
...
* Parse non-octals with leading zeros in non strict mode correctly
* Better error message
2018-12-03 00:04:37 -08:00
Daniel Tschinder
07eaa3c63f
Ignore empty fixture directories and fix fixtures in the parser ( #9113 )
...
* Ignore fixture directories that do not contain input or exec
* Fix parser test fixtures structures for some imported esprima tests.
* Warn on test folders that are not empty and do not contain testfiles
2018-12-02 22:55:06 -08:00
Nicolò Ribaudo
61f2aed5b0
Disallow await inside arrow functions ( #9074 )
...
* Disallow await inside arrow functions
* Update test262 whitelist
2018-11-26 12:43:04 +01:00
Nicolò Ribaudo
856edbf95f
[flow] Allow type casts in array patterns inside arrow parameters ( #9069 )
2018-11-24 12:23:49 +01:00
Daniel Tschinder
d2971a1959
Fix compatibility between typescript and jsx plugins in interface declarations ( #9058 )
2018-11-21 15:58:50 -08:00
Brian Ng
4f16a12c03
Fix bug with parsing TS generic async arrow function ( #9055 )
2018-11-21 15:34:09 -06:00
Brian Ng
e7f0c065cf
Bump some deps ( #9056 )
2018-11-21 15:21:36 -06:00
Grigory Moroz
445b14148e
Better error for disallowed trailing commas/parameters after rest elements ( #9046 )
...
* handle disordered rest parameter in function expressions
* remove spaces [lint]
* polish function parameters validation
* add test with arrow function and comma after rest parameter [babel-parser]
2018-11-21 07:49:36 +01:00
Daniel Tschinder
a2afb974be
Fix parsing typescript function types with destructuring ( #9035 )
...
* Fix parsing typescript function types with destructuring
* Use integer instead of actual stack
2018-11-19 13:55:58 -08:00
Nicolò Ribaudo
4e1d6e7ff4
v7.1.6
2018-11-13 22:10:06 +01:00
Brian Ng
4f206b2416
prettier@1.15.1 ( #9001 )
2018-11-09 15:25:13 -06:00
Daniel Tschinder
343f776ca5
Rename primitive types to reserved types ( #8984 )
2018-11-07 16:50:36 -06:00
Daniel Tschinder
5d5cd8612f
Fix several edge cases with context expression state ( #8972 )
...
* Fix several edge cases with context expression state
* Fix review comments
* Remove unused field
2018-11-06 19:37:24 -08:00
Henry Zhu
afe67a7035
v7.1.5
2018-11-06 17:21:22 -05:00
Nicolò Ribaudo
2fa1984635
Fix await in function name and parameters ( #7727 )
...
* Disallow await in function parameters
* Fix await as function name
* Update test whitelists
2018-11-06 08:30:06 +01:00
Retsam
2194842d11
Typescript: Validate tuple type element positions ( #8828 )
...
* feat: validate the positions of rest elements and optional elements in tuple types
Adds a validation step to the parser which raises syntax errors if a rest param is not at the end of a tuple, or if a mandatory param follows an optional parameter
* Fix spread after optional case; add test case
2018-11-05 23:19:34 -08:00
Daniel Tschinder
e3b2c1afff
fix: Do not allow TypeCastExpressions w/o parens ( #8956 )
2018-11-05 15:34:24 -08:00
Nicolò Ribaudo
24c4901ff5
Remove Babylon plugins for features already merged to the ECMAScript spec ( #8448 )
...
These are now enabled by default:
- objectRestSpread (2018)
- asyncGenerators (2018)
- optionalCatchBInding (2019)
- jsonStrings (2019)
TODO (after this commit):
- [ ] Deprecate the `@babel/plugin-syntax-*` packages.
- [ ] Deprecate the `@babel/plugin-proposal-*` packages.
- [ ] Create the `@babel/plugin-transform-*` packages.
2018-11-05 23:48:06 +01:00
Jordan Brown
f216a7b06f
[flow] Add support for parsing _ as implicit instantiation in call/new ( #8883 )
...
* [flow] Add support for parsing as implicit instantiation in call/new
* Update flow tests and fix underscore being a reserved type
* Rebase onto flow-test
* Fix flow commit hash
2018-11-05 10:45:40 -08:00
Daniel Tschinder
cd81b079ee
Allow function types in type params within arrow return types ( #8954 )
2018-11-01 09:10:46 -05:00
Jordan Brown
e4929e11f6
[flow] Explicit inexact objects with ... ( #8884 )
2018-10-29 15:09:17 -05:00
Byron Luk
929567523c
Fixes #8865 ( #8866 )
2018-10-12 09:28:15 -05:00
Henry Zhu
8ee857e268
v7.1.3
2018-10-11 11:52:19 -04:00
Brian Ng
ce1a6526e5
flow-bin@0.82.0 ( #8832 )
2018-10-10 12:29:23 -05:00
Retsam
d2c75c2d38
fix: corrects handling of newline after async with paren-less arrow function ( #8830 )
...
If async is followed by a newline, then a paren-less arrow function should be parsed as two expressions
2018-10-09 23:25:31 +02:00
Retsam
08454ece46
Typescript - Tuples can include rest elements ( #8805 )
2018-10-08 11:32:31 -05:00
Bruno Macabeus
850bc1d3dd
class private methods and properties: should not allow spaces between # and identifier ( #8756 )
2018-10-02 19:31:06 -07:00
Brian Ng
2575312d1f
Fix parsing of slash after class expression ( #8804 )
2018-10-02 20:45:53 -05:00
Retsam
a5b5ed928d
Typescript - Tuple elements can be optional ( #8720 )
2018-10-02 11:29:51 -05:00
Nicolò Ribaudo
3c87401714
[decorators] [typescript] Parse type parameters ( #8767 )
...
* [decorators] [typescript] Parse type parameters
* Add test for invalid code
2018-10-01 22:04:19 +02:00
Matthew Robertson
07862e7272
Fix perf issue in typescript parser plugin ( #8792 )
2018-10-01 12:59:16 -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
Brian Ng
38cf318f61
Bump lint-related deps ( #8765 )
2018-09-24 18:09:54 -05:00
Henry Zhu
fad74959f8
v7.1.0
2018-09-17 15:29:37 -04:00
Brian Ng
9b4b436e1f
Fix parsing of newline between 'async' and 'function' ( #8698 )
2018-09-16 22:09:23 -05:00
Brian Ng
380f2a0297
Fix typescript parsing typed object shorthand methods ( #8677 )
2018-09-14 10:20:59 -05:00
Logan Smyth
79b2af5997
Format fixture JSON with Prettier. ( #8658 )
2018-09-09 17:57:52 -07:00
Brian Ng
58017044a3
Bump flow to 0.80 and fix sourceType error ( #8630 )
2018-09-05 09:00:53 -05:00
Sven Sauleau
07fae82a8a
fix(types): missing unambiguous sourceType ( #8610 )
2018-09-04 10:03:48 -05:00
Sven Sauleau
fc9becfdf2
Merge pull request #8170 from AviVahl/master
...
@babel/parser: expose a TypeScript definition file from package
2018-09-03 08:15:56 +02:00
Sven Sauleau
6893b7e7d2
fix: [skip ci] consistent naming
2018-09-03 08:09:26 +02:00
Nicolò Ribaudo
9d244ae66b
More helpful error message for missing decoratorsBeforeExport in parser ( #8576 )
2018-08-29 09:02:18 -05:00
Henry Zhu
04d09cc754
add access public to all packages [skip ci] ( #8573 )
...
If people copy paste to make an new package they might miss this and we will get a publish error later so figured we should add it to all.
2018-08-29 09:54:53 -04: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
Justin Ridgewell
edbffda091
Cleanup getLineInfo ( #8540 )
...
Removes an ignore control comment
2018-08-26 13:27:06 -04:00
Justin Ridgewell
72ee1816a4
Update to ES6 String methods ( #8541 )
2018-08-26 13:26:51 -04:00
Justin Ridgewell
524d847763
Flatten TokenType class hierarchy ( #8537 )
...
`KeywordTokenType` and `BinopTokenType` were just meant to be factory
helpers, there's no reason for a class hierarchy.
2018-08-25 20:02:32 -04:00