Skip to content

v0.4.2 — module detail fixes

Choose a tag to compare

@anishmoncivarghese anishmoncivarghese released this 31 Aug 05:38
· 6 commits to main since this release

A patch release fixing two defects in sonde doc --module, the on-demand symbol detail view. Neither affects the committed ARCHITECTURE.md.

Duplicate rows

sonde doc --module src/doc listed WriteOutcome.action four times as visually identical rows.

Those are four genuinely distinct symbols — WriteOutcome is a discriminated union, and each variant declares its own action property — so they share a qualified name, kind and file while having different stable keys. Repeating the row read as a bug; deduplicating silently would have hidden real structure. It now collapses into one row that states the count:

| `WriteOutcome.action` (4 declarations) | property | `src/doc/index.ts` | `src/cli` |

--include-tests only worked in one place

The flag filtered the committed document but never reached the module detail renderer, so --module always listed test modules under "Referenced by modules" regardless of what you passed.

Both views now share one definition of what a test module is, so they cannot drift apart, and hidden references are disclosed rather than quietly dropped:

References from test modules are hidden. Run with --include-tests to show them.

The second one is the more interesting bug. It was not a logic error — the flag was simply never plumbed through a second call site, and both paths worked correctly in isolation. That class of defect is invisible from the code and only shows up when you read the output.