mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
feat(router-utils): language operations are no effect for placement (rule L)
The unit model judges top-level effects with ModuleAnalysis.effectPurity: member reads, spreads, in/instanceof, calls and new of standard globals and the methods of what they return or of a literal, with pure arguments (callbacks judged the same way, imported ones are effects). Deletion (raw facts' effects, function-scope orphans) is unchanged. Tests whose premise was a member read or new URL as an effect now use an unknown call or constructor; two augmentation rows flip to extracted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
61d09e31a0
commit
ea2530705f
6 changed files with 326 additions and 37 deletions
Loading…
Add table
Add a link
Reference in a new issue