0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

test(router-generator): apply ruling Q10, import statements are the generator's to edit

The user, on whether the generator may touch other import statements when it
adds a missing route constructor import: "I don't think we should specify
that. Let it." expectOnlyOwnedEdits no longer caps how many router package
imports change, nor keeps any import statement byte for byte. It still
checks the outcome: everything outside the import statements keeps its
bytes, and the imports bind the same names (imported and local name, source,
type/value meaning, attributes; side-effect imports stay), apart from the
route constructor's own binding.

Validated with a correct generator variant (temporary) that reprints every
import and merges same-source imports: the old helper failed 4 rows, the new
one passes. Records the ruling in RULINGS, SPEC J1.2 and the README (no
ruling pending).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-23 18:56:05 +02:00
commit b77150c04f
No known key found for this signature in database
5 changed files with 92 additions and 143 deletions