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

fix(compiler): one purity seeding, empty defaultBehavior, live mutation view, nested server-fn order, opaque digests

- `#__NO_SIDE_EFFECTS__` on a callee the module declares counts whatever the
  order of declaration and call (function declarations are hoisted) and in
  Tier 0 too: one seeding (`seedNoSideEffectDeclarations`) before any statement
  is classified; units.ts no longer marks callees as it goes.
- `codeSplittingOptions.defaultBehavior: []` splits nothing unless
  `splitBehavior` or the route says so, as on main.
- The mutation model takes the output's liveness filter (R1): a write inside
  code the environment erases imposes nothing; reach.ts and the route planner
  read the env's live view (no spurious `eager-export:reassigned` on the client
  for a server-only write).
- Server-fn sites are planned in source order, so a nested site inside a
  stubbed handler is dead there whichever import binding declares it.
- An opaque package's facts keep a null summary after `getTarget` (its digest
  never changes); `getTarget` never answers a read in flight.
- The fallback-rounds bound is the region count after the first round (regions
  accumulate across rounds; the guard could not fire before).
- Prose: README, eager-exports.ts and the warning state one rule for what
  chunks copy and what they import.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-28 22:53:50 +01:00
commit 64261766ea
No known key found for this signature in database
23 changed files with 700 additions and 221 deletions