Repository navigation
feat: compile Router match projection in Strong mode - #2102
Merged
domgan-oai merged 1 commit intoOct 15, 2026
Merged
domgan-oai merged 1 commit into
domgan-oai merged 1 commit into
Conversation
domgan-oai
marked this pull request as ready for review
October 15, 2026 19:45
Contributor
Benchmark report🟢 No byte growth, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)No changes across 93 measured values. Public-import reachability bundles (bytes)No changes across 120 measured values. |
11 of 12 tasks
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.
Summary
The website’s compiled Router entry reached one compatibility module that mixed match projection with live navigation and error side effects. Compile the match tree and shared default error UI in Strong mode, keeping provider/transition and pending/error/scroll lifecycles in explicit compatibility owners. The route hierarchy, synchronous
onCatch, rethrow to parent, and match-identity recovery remain intact. Related to #2059; this does not close it.Validation
pnpm format:check(repository-wide; changed files passedformat:files:check)pnpm typecheck(repository-wide; Router source/public API and website source programs passed)pnpm test(repository-wide; root Vitest config needs unrelated dependencies absent from the scoped local install)targeted tests: 106 Router conformance, 10 SSR, and 3 React differential cases passed. The added lifecycle cases passed unchanged against main
9bceb816a; disabling error reset/reporting made the relevant negative controls fail.pnpm syncpassed.Actual website development and production browser comparison against the same main SHA: decoder → catalog/filter → another decoder, direct invalid-code 404, authored recovery link → interactive homepage, Back/Forward, and Docs navigation matched. Only the two deliberate direct entries requested documents; other navigation and recovery were client-side. The normal production build passed; server-rendered decoder content and hydration transport matched, and the hydrated controls worked.
perf-review: binding-source scan found 0 candidates. Per-match projection (compiled/Matches.tsrx:23,54,62,101) retains the existing store selectors and hierarchy; provider acknowledgement (compiled/RouterProvider.tsrx:49) is unchanged. The live transaction read moved into the existing pending owner (compiled/MatchLifecycle.tsrx:20), without a wrapper, new task, DOM read/write, hot-record field, or new per-item allocation. Focused production Vite integration emittedcomponentSlotVoidat all 10 detected relocated component call sites. Complete website public JavaScript: 615 files, 19,405,558 → 19,405,775 raw bytes (+217), 4,355,712 → 4,355,894 summed per-file level-9 gzip bytes (+182); this is not an initial-route payload or speed measurement. Browser latency and a standalone core-compiler fixture were not measured.concise-code: binding source +222/−188 lines (core runtime +0/−0). Three new internal source modules separate shared Strong error UI, Strong match projection, and the two compatibility ownership layers; the compiled public entry retains its exports. Keeping everything in one file cannot mark projection Strong; moving synchronous reporting into an effect changes callback/rethrow timing; another wrapper would add a component boundary. Independent final review found no actionable complexity issue.Current-head CI: all 27 jobs passed (54,426 general tests passed, 2 skipped; 105 website; 620 Chromium), including parity, examples, publication, lint/types, and bundle checks. Benchmark: all 64 work counters, 93 bundle values, and 120 reachability values unchanged; all 20 timings had no resolved verdict. Bugbot passed with no inline findings.
Risk / follow-ups
The dependency frontier remains open: the original Router
compiled/Matches.tsrxboundary becomescompiled/RouterProvider.tsrxandcompiled/MatchLifecycle.tsrx; RouterlinkBinding.tsand Threeweb/events.tsremain. All 98 authored website modules analyze with zero Strong diagnostics and no ReactCompat boundary, but this does not establish whole-package compliance or descriptor-free output.The website’s invalid-code entry is a direct request because it has no authored link to an invalid code; the recovery and subsequent navigation are client-side. The same existing Lynx teardown diagnostics appeared on main and candidate. A separate fixture navigating from a healthy route into the global uncaught-error boundary left
router.navigate()unresolved after five seconds on both revisions; initial global fallback and its details toggle work. Pristine upstream Router parity remains recorded-unverified. Local dependency setup used a frozen offline scoped install after the configured dependency firewall blocked an unrelated package; no registry bypass was used.Provenance
agent-authored)Codex task · host
com-79386Need help on this PR? Tag
@codesmith-botwith what you need.Note
Cursor Bugbot is generating a summary for commit 0d3284b. Configure here.