Port all babel-parser changes from 2018-10-01 to 2018-11-09 #333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Notably, this adds support for TypeScript 3.0 syntax.
Details:
07862e727 Fix perf issue in typescript parser plugin (#8792)
π« Already implemented with a similar fix.
3c8740171 [decorators] [typescript] Parse type parameters (#8767)
β Straightforward port.
a5b5ed928 Typescript - Tuple elements can be optional (#8720)
β Straightforward port.
2575312d1 Fix parsing of slash after class expression (#8804)
β Already worked, added test.
850bc1d3d class private methods and properties: should not allow spaces between # and identifier (#8756)
π« Error checking only.
08454ece4 Typescript - Tuples can include rest elements (#8805)
β Straightforward port.
d2c75c2d3 fix: corrects handling of newline after async with paren-less arrow function (#8830)
β Straightforward port with new regression test.
ce1a6526e flow-bin@0.82.0 (#8832)
π« Nothing to port.
8ee857e26 v7.1.3
π« Nothing to port.
929567523 Fixes #8865 (#8866)
π« Sucrase doesn't maintain curLine.
e4929e11f [flow] Explicit inexact objects with
...
(#8884)β Relatively straightforward port with test. No error handling ported.
cd81b079e Allow function types in type params within arrow return types (#8954)
β Already worked, just implemented test.
f216a7b06 [flow] Add support for parsing
_
as implicit instantiation in call/new (#8883)β Already worked, complexity in the babel code seemed to all be around error
handling.
24c4901ff Remove Babylon plugins for features already merged to the ECMAScript spec (#8448)
π« Sucrase doesn't have parser plugins.
e3b2c1aff fix: Do not allow TypeCastExpressions w/o parens (#8956)
π« Just extra error handling.
2194842d1 Typescript: Validate tuple type element positions (#8828)
π« Just error handling.
2fa198463 Fix await in function name and parameters (#7727)
π« Just error handling.
afe67a703 v7.1.5
π« Release only.
5d5cd8612 Fix several edge cases with context expression state (#8972)
β Added tests, but seems like everything was already working. The fixes were
all around context, and Sucrase got rid of context.
343f776ca Rename primitive types to reserved types (#8984)
π« Code doesn't exist in Sucrase.
4f206b241 prettier@1.15.1 (#9001)
π« Tooling upgrade.