fix(router-generator): preserve dots in virtual routes#7845
Conversation
Separate filesystem dot-delimited paths from explicit virtual paths and add regression coverage for layouts, routes, and physical prefixes. fixes #7761
|
View your CI Pipeline Execution ↗ for commit 4c425e0
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview1 package(s) bumped directly, 8 bumped as dependents. 🟩 Patch bumps
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (14)
📝 WalkthroughWalkthroughThe router generator now uses separate parsing for explicit virtual route paths, preserving literal dots in route paths and pathless layout IDs. Utility tests and generated route-tree fixtures cover dotted explicit paths and dotted layout filenames. ChangesVirtual route dot preservation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Bundle Size Benchmarks
Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better. |
Merging this PR will regress 3 benchmarks
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Memory | mem server error-paths redirect (solid) |
441.2 KB | 851.6 KB | -48.2% |
| ❌ | Memory | mem server aborted-requests (vue) |
447.5 KB | 466.2 KB | -4.02% |
| ❌ | Simulation | client-route-tree-scale navigation loop (react) |
74.2 ms | 77.1 ms | -3.79% |
| ⚡ | Memory | mem server error-paths not-found (solid) |
817.3 KB | 416.3 KB | +96.33% |
| ⚡ | Memory | mem server error-paths redirect (vue) |
836.4 KB | 527 KB | +58.72% |
| ⚡ | Memory | mem server peak-large-page (solid) |
849.6 KB | 759.8 KB | +11.81% |
| ⚡ | Memory | mem client loader-data-retention (solid) |
157.9 KB | 151.8 KB | +3.97% |
| ⚡ | Memory | mem client preload-churn (vue) |
689.8 KB | 666.5 KB | +3.49% |
| ⚡ | Simulation | ssr streaming deferred (react) |
73.2 ms | 71 ms | +3.11% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing fix-7761 (4c425e0) with main (604996d)
Separate filesystem dot-delimited paths from explicit virtual paths and add regression coverage for layouts, routes, and physical prefixes.
fixes #7761
Summary by CodeRabbit
Bug Fixes
Tests