Port babel-parser changes from 2021-02-18 to 2021-03-14 #635
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.
Instructions: https://github.com/alangpierce/sucrase/wiki/Porting-changes-from-Babel's-parser
2f755ef052 v7.12.17
🚫 Release only.
16e9f1c8e5 Support Flow
this
parameter annotations (#12234)🚫 Seems to be working already.
5b99b8f221 Flow Enums with unknown members support (#12193)
🚫 For now, Flow enums won't be supported in Sucrase.
e4588bed22 Support TypeScript 4.2 abstract constructor signatures (#12628)
✅ Ported with a similar implementation, but made a new enum value instead of passing a flag.
9c567baa9b Parse JS Module Blocks proposal (#12469)
✅ Added basic parsing support, though the transformer doesn't yet do anything special. Filed #634 as follow-up.
03d7911be6 Implement class features in estree (#12370)
🚫 Sucrase doesn't support estree.
c827193d9c v7.13.0
🚫 Release only.
c30039029a Don't enable class features by default in
estree
(#12867)🚫 Sucrase doesn't support estree.
e940b8c4b9 v7.13.4
🚫 Release only.
b62fc3d44f babel-parser(flow): Set
this
property tonull
for FunctionTypeAnnotation without parens (#12930)🚫 AST only.
efdca01409 fix: add tokens when tokens: true is passed to parseExpression (#12939)
🚫 Only applies to Babel-specific API.
2c0e8d0008 v7.13.9
🚫 Release only.
b416847b61 (ts) Raise syntax error for abstract methods with a body (#12687)
🚫 Validation only.
d04842a700 Avoid using CJS globals in internal source files (#12963)
🚫 Babel change not relevant for Sucrase.
d1d404b9a3 v7.13.10
🚫 Release only.
1a05b81387 Support multiple static blocks (#12738)
🚫 Only affects validation, multiple static blocks were already supported.
0988c471e9 Parse type imports in TSImportEqualsDeclaration (#12962)
✅ Implemented independently using similar logic as in Babel.