Repository navigation
Use TypeScript 7.1 APIs and remove TypeScript 6 - #106311
Draft
roryabraham wants to merge 13 commits into
Draft
roryabraham wants to merge 13 commits into
roryabraham wants to merge 13 commits into
Conversation
38 tasks
LOCAL WIP only; not ready to merge, push, or open as a PR. Use the native async API and dispose compiler/source leases. Move scanner tests to Bun. The beta sync API crashes under Bun at stdout._handle.fd. Latest full scanner run: 14/16 Bun cases pass. Malformed-TypeScript and directory cases time out in the full run, although isolated error-path tests pass. These failures remain unresolved. Bun/Jest project typechecks, changed-file lint/spelling, formatting, and staged self-review pass. No claim of complete TS6 removal.
Contributor
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Bun promise matchers can stall native compiler RPC callbacks. Await scans directly, preserving all assertions and the five-second performance threshold. The native scanner suite passes all 16 cases in three consecutive runs. Full App typecheck, changed-file lint/spelling, formatting, and real CLI smoke checks pass. Staged self-review used because nested reviewer agents are unavailable.
Keep hosted rule implementations and fixture scope analysis without a\nJavaScript TypeScript compiler. Preserve existing lint diagnostics and\nremove the seven compiler-routing patches.
Run compiler utilities through the native API and keep hosted lint checks without loading the retired compiler. Generated syntax-only rule snapshots preserve pinned upstream behavior and licenses.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Explanation of Change
Use TypeScript 7.1's native API throughout the compiler utilities and remove
@typescript/typescript6. Preserve existing lint checks with generated upstream syntax-only rule snapshots.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/701267
PROPOSAL:
Tests
// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review"
// Please describe what tests you performed that validates your changed worked.
Offline tests
Not applicable: tooling and type annotations only.
QA Steps
// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review".
// Please describe what QA needs to do to validate your changes and what areas do they need to test for regressions.
AI Tests
Clean install, six typecheck projects, full lint, spelling, formatting and patch checks pass; 889 Bun tests and 623 lint-rule tests pass. Generated rule snapshots retain upstream formatting and comments. Independent staged review passed.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari