0
Fork 0
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:
Sheraff 2026-11-11 18:54:34 +01:00
commit ea2530705f
No known key found for this signature in database
6 changed files with 326 additions and 37 deletions