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-03-15 to 2021-04-28 #636

Merged
merged 2 commits into from
Jul 7, 2021

Commits on Jul 6, 2021

  1. Port babel-parser changes from 2021-03-15 to 2021-04-28

    Instructions: https://github.com/alangpierce/sucrase/wiki/Porting-changes-from-Babel's-parser
    
    4b674ea031 v7.13.11
    🚫 Release only.
    
    beb7cf8b24 Sort error keys with ESLint (#13020)
    🚫 Babel-internal change.
    
    edb11baabf v7.13.12
    🚫 Release only.
    
    4f727139ec fix(ts): Allow parenthesized "assert and assign" (#12933)
    🚫 Seems to work fine in Sucrase.
    
    0067fd9e02 Disallow await before exponential (#12441)
    🚫 Validation only.
    
    2f8203f190 v7.13.13
    🚫 Release only.
    
    8efbac4a5d fix: the LHS in for-of loop should not start with let (#13049)
    🚫 Validation only.
    
    a647b9ea6b Convert `@babel/core` to TypeScript (#12929)
    🚫 Babel-internal.
    
    7fe3ebf4db fix: raise `SyntaxError` for unparenthesized assert and assign (#13099)
    🚫 Validation only.
    
    42e630e8a2 Allow trailing comma after rest parameter in TSDeclareFunction (#13101)
    🚫 Seems to work fine in Sucrase.
    
    e50f6f7eef v7.13.15
    🚫 Release only.
    
    368bf893fa [ts] raise `SyntaxError` for `declare` before getter/setter (#13143)
    🚫 Validation only.
    
    d94a8e50ed v7.13.16
    🚫 Release only.
    
    10f4d08efb refactor: avoid parsing logic on locations (#13200)
    🚫 Refactor not relevant to Sucrase.
    
    0ee98139a6 Introduce parser error codes (#13033)
    🚫 Error handling not relevant to Sucrase.
    
    eac0259ce2 Support TS 4.3 static index signature in classes (#13096)
    βœ… Ported and updated parser to mark all modifiers as type tokens.
    
    f8aa32f767 Support parsing Flow's Indexed Access Types (#13053)
    βœ… Straightforward port.
    
    bf14a106ad Support TS 4.3 `override` syntax in class (#13097)
    βœ… Ported non-validation parts and implemented the feature in the transformer as well.
    
    2521c666f7 Add internal ESLint rule for consistent parser error messages (#13130)
    🚫 Error messaging only.
    
    7484b51e56 Support TS 4.3 `get`/`set` type members (#13089)
    βœ… Ported, though the implementation needed some changes to avoid depending on the AST.
    
    c949660b34 babel-parser: Deep freeze for `makeErrorTemplates` (#13142)
    🚫 Babel internal.
    alangpierce committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    fdccc2a View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. Fix typo

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