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 2022-01-10 to 2022-02-26 #716

Merged
merged 3 commits into from
Jul 7, 2022

Commits on Jul 6, 2022

  1. Port babel-parser changes from 2022-01-10 to 2022-02-26

    Instructions: https://github.com/alangpierce/sucrase/wiki/Porting-changes-from-Babel's-parser
    
    69246b6212 [babel 8] fix properties name for function-like TS nodes (#13709)
    🚫 AST only.
    
    bc0d1ef860 v7.16.8
    🚫 Release only.
    
    478a9709ab Improve errors location tracking (#14130)
    🚫 Change to error messaging details that were removed in Sucrase.
    
    4a737547e5 v7.16.10
    🚫 Release only.
    
    e5d29f6e40 fix: incorrect conciseBody lookahead (#14194)
    βœ… Bug doesn't appear in Sucrase, but I added a test anyway.
    
    5266605528 v7.16.12
    🚫 Release only.
    
    5861002b33 Reinterpret << when parsing TS type arguments (#14145)
    βœ… Ported following a very similar implementation.
    
    6b427ced22 Fuzz test location-related parser options (#14201)
    🚫 Babel-internal change testing location logic not present in Sucrase.
    
    96a8251def Add parser support for the "regexp unicode sets" proposal (#14086)
    βœ… No implementation necessary, but I added a quick test.
    
    f893b333a8 Add the `decoratorsAutoAccessors` parser plugin (#13681)
    βœ… Ported basic parsing for accessor properties.
    
    de5c7b1bce Parse destructuring private fields (#13931)
    βœ… Seems to be already working, and I added a test.
    
    🚫 d50c18dbc2 fix: usePrivateName usage
    Only affects Babel scope code, not relevant to Sucrase.
    
    🚫 b092bd0cb5 remove invalid test output
    Only affects Babel tests.
    
    df27d542ef proposal-pipe: Add support for `^^` and `@@` topics (#13973)
    🚫 Sucrase is holding off on pipeline topic parsing until the details are finalized. Tracked in #674.
    
    97a8bcb9cc Expose `.index` on Position to internally track nodes location (#14174)
    🚫 Only affects class not used in Sucrase.
    
    38c23cded4 v7.17.0
    🚫 Release only.
    
    19ede090eb parser: Update `babel-parser.d.ts` for 7v.17.0 features (#14266)
    🚫 Not relevant to Sucrase.
    
    f52c70c357 v7.17.3
    🚫 Release only.
    
    a53c2fa4a2 fix(ts): skip func-type param start on parsing (#14293)
    🚫 Bug not present in Sucrase.
    
    5749c16dc2 [tsx] raise error on single arrow type argument without comma (#14135)
    🚫 Only affects error handling.
    alangpierce committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    4ff4166 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2022

  1. Configuration menu
    Copy the full SHA
    74e11d8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    268be2a View commit details
    Browse the repository at this point in the history