Repository navigation
fix(react): match confirmed useRef and missing JSX findings - #65
Merged
Merged
Conversation
Signed-off-by: Lucas Braum <[email protected]>
lucasbraum
marked this pull request as ready for review
October 10, 2026 18:09
Merged
lucasbraum
pushed a commit
that referenced
this pull request
Oct 11, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action to publish automatically](https://github.com/changesets/action#with-publishing). If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Patch Changes - [#66](#66) [`c5611f4`](c5611f4) Thanks [@lucasbraum](https://github.com/lucasbraum)! - Include every advertised peer upgrade in the preflight's Next command, including blockers pulled along as companions, and replay the complete proposed upgrade set. Group blocker output by package with all rejected peers and preserve them in structured JSON on preflight failures and fix reports. - [#65](#65) [`35fe251`](35fe251) Thanks [@lucasbraum](https://github.com/lucasbraum)! - Match compiler-confirmed React `useRef` symbol findings so zero-argument calls receive the existing initial-value fix. Route missing global `JSX` namespace diagnostics (TS2503) to the React 19 agent guidance without rewriting them automatically. - [#68](#68) [`4ed45ee`](4ed45ee) Thanks [@lucasbraum](https://github.com/lucasbraum)! - Keep already-compatible peer companions at their installed versions, share the lowest compatible peer resolver with preflight, and reject planned downgrades before writing manifests or installing. Keep preflight versions authoritative throughout fix. Bound spinner text to terminal width, summarize install companions by count, and disable animation when stdout is piped. Handle npm's unavoidable reverse-peer re-resolution only when the upgrade stays within every previously declared range, keeps the major version, and never downgrades. List admitted packages and their ranges in the fix report and PR body, while preserving resolutions for other consumers and accounting for identical nested copies. Preserve grouped peer blockers and the complete Next command in JSON when the packaged CLI runs planning in its worker thread. Co-authored-by: uptide-release[bot] <338861287+uptide-release[bot]@users.noreply.github.com>
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.
Pack
Fix React 18 → 19 rule matching from the classification in #64. Compiler-confirmed
useRefsignature findings retain the exported symbol path (".":useRef), so the existing TS2554-only matcher left zero-argument calls manual. The rule now recognizes that path while retaining its diagnostic-message guard. Missing global JSX namespace diagnostics (TS2503) now receive the existing agent instructions, with no automatic rewrite.Sources
Rules and behavior notes
use-ref-argument: accepts TS2554 or the confirmeduseRefsymbol plus the required-argument diagnostic; preserves the existingundefinedinitialization rewrite.global-jsx-namespace: accepts TS2503 only for the missing JSX namespace, preserves existing JSX diagnostic coverage, and supplies agent guidance.Ground-truth repositories
Unchanged. No alanagoyal sites were added: its upgrade is not a completed migration.
excalidraw/excalidraw@9ee0b8ffcbd3664a47748a93262860321a203821— 73 expected findings.tldraw/tldraw@5957867a9c5c205a0b0c3665be443138b8014a79— 60 expected findings.uptide pack testoutputReact's breaking precision remains 100%, with 68.99% recall unchanged (89 true positives, 0 false positives, 40 false negatives).
use-ref-argumentrule recall improves 80% → 100% (4/5 → 5/5); those locations were already detected, so overall site recall stays unchanged. Overall, including non-breaking findings, precision remains 92.93% and recall remains 69.70%. The existing verification record still matches; no ground truth or verification file was changed.Commands:
pnpm -s uptide pack test react --jsonon the unchanged matcher baseline, thenpnpm -s uptide pack test --jsonon this commit: every pack passed. The latter reruns React plus AI, Stripe, Vitest and Zod against their existing public ground truth.pnpm -s uptide pack test --fixtures-only --json: all five packs passed.pnpm lintandpnpm typecheck: passed.TMPDIR=/private/tmp pnpm test --env-mode=loose: 1,043 core + 357 CLI tests passed; 15 opt-in network tests skipped. The macOS temporary path must be canonical, and Turbo must pass it through; the default invocation hit an unrelated/tmpversus/private/tmpassertion.public:checkcannot read the CI-only denylist; the local document-name scan passed.React pack test output
Every pack passed.
Checklist
meta.sourcespnpm lintandpnpm typecheck