Port babel-parser changes from 2023-03-20 to 2023-06-15 #798
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
032203ea18 chore: Update TS 5.0.2 (#15502)
🚫 Babel-internal change.
656403b49f refactor: introduce
lookaheadInLineCharCode
(#15510)🚫 I considered porting this refactor for
await using
, but decided against it.202e4fa60b v7.21.4
🚫 Release only.
35c09db4f3 perf: Improve the code quality of
@babe/parser
for ts (#15540)🚫 Code changes are minor and generally don't affect Sucrase.
bc7f795024 fix: Remove
mixins
andimplements
forDeclareInterface
andInterfaceDeclaration
(#15539)🚫 AST-only.
0a1cfc0ed6 Babel 8 misc changes (#15068)
🚫 Comment-only change not affecting Sucrase.
86df74531d v7.21.5
🚫 Release only.
29426297d6 Remove
using await
restriction in explicitResourceManagement (#15602)🚫 Only affects error handling, not relevant to Sucrase.
8fd99c8f48 v7.21.8
🚫 Release only.
2b70257372 chore: Enable rule
no-import-type-side-effects
(#15627)🚫 Babel-internal change.
c5f68eb62e rescan gt token at the end of type args parsing (#15631)
✅ Added test and implemented fix similarly. Fixes #797.
0ad567f913 v7.21.9
🚫 Release only.
920b78c0c2 Enable regexp unicode sets parsing by default (#15638)
🚫 Doesn't affect Sucrase.
56a6c85aca Parse
await using
declarations (#15520)✅ Implemented using a simpler backtracking method for now.
4b5ebdc9b3 Add support for the updated import attributes proposal (#15536)
✅ Implemented with a small tweak to Sucrase implementation.
7e5e7bf2f8 Unify parsing of import/export modifiers (type/typeof/module) (#15630)
🚫 Skipped for now, since it's prep work for later import syntax changes and I want to wait for that to settle a little more.
560b8ac523 [ts] Support
import ... =
andexport =
in scripts (#15497)🚫 Sucrase already supported this behavior.
389ecb08ed v7.22.0
🚫 Release only.
325fe683d8 v7.22.3
🚫 Release only.
35116224d2 Mark
assert
attributes withextra.deprecatedAssertSyntax
(#15667)🚫 AST only.
eb4aa876b2 v7.22.4
🚫 Release only.
ecc819bf75 [babel 8] Require Node.js
^16.20.0 || ^18.16.0 || >=20.0.0
(#15585)🚫 Babel-internal change.
72006cb657 Use Prettier v3.0.0-alpha.12 (#15617)
🚫 Babel-internal change.
08564ea230 v7.22.5
🚫 Release only.
be8fccd6f3 chore: Run
readmes.js
in CI (#15690)🚫 Babel-internal change.
980b63c829 Use more optional chaining (#15703)
🚫 Babel-internal.