Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port babel-parser changes from 2021-02-18 to 2021-03-14 #635

Merged
merged 2 commits into from
Jul 6, 2021

Commits on Jul 6, 2021

  1. Port babel-parser changes from 2021-02-18 to 2021-03-14

    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 entree.
    
    c827193d9c v7.13.0
    🚫 Release only.
    
    c30039029a Don't enable class features by default in `estree` (#12867)
    🚫 Sucrase doesn't support entree.
    
    e940b8c4b9 v7.13.4
    🚫 Release only.
    
    b62fc3d44f babel-parser(flow): Set `this` property to `null` 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.
    alangpierce committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    3f970d9 View commit details
    Browse the repository at this point in the history
  2. Tweak docs

    alangpierce committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    d11d908 View commit details
    Browse the repository at this point in the history