Skip to content

docs(readme): correct runtime dependency count from 3 to 4 - #2430

Merged
carlos-alm merged 1 commit into
mainfrom
docs/runtime-dependency-count
Aug 10, 2026
Merged

carlos-alm merged 1 commit into
mainfrom
docs/runtime-dependency-count

Conversation

@carlos-alm

Copy link
Copy Markdown
Contributor

Summary

The README claimed 3 runtime dependencies in two places. package.json declares 4.

smol-toml was added in #2376 to parse Cargo.toml for [[bin]]/[[example]]/[[test]]/[[bench]] targets with an explicit path = "..." — without it, findRustCrateRoot misattributed those files and misresolved every crate::/self::/super:: import in them (closing documented limitation #2217). It picked up a second consumer a day later in #2410, which parses pyproject.toml for Python import roots (tool.pytest.ini_options.pythonpath, tool.setuptools.package-dir, tool.poetry.packages).

Neither PR updated the README. This corrects both spots and lists the dependency alongside the other three.

Deliberately narrow: this PR only fixes our own count. It does not touch the metric definition, the footnotes, or any competitor's cell.

Why the dependency was kept

Reviewed during this change rather than assumed:

  • No stdlib option. Node has no built-in TOML parser at any supported version — verified on Node 24.18.1 (util.parseTOML is undefined, no builtin module matches).
  • Cannot be a devDependency. The build is plain tsc with no bundler, so the import survives into dist/ as a real module resolution.
  • It is the most popular option available, not a fringe pick: 28.2M weekly downloads vs 15.0M (toml), 6.7M (@iarna/toml, no release since 2020), 380K (@ltd/j-toml, LGPL-3.0), 27K (js-toml, pulls in xregexp + chevrotain).
  • Zero transitive dependencies, BSD-3-Clause, ~206 KB — adds one node to the install tree, not a subtree.
  • Contained blast radius. Two call sites, both try/catch best-effort: malformed TOML yields no results rather than failing resolution. Replaceable without a migration if it ever goes stale.

Type of change

  • Bug fix (fix:)
  • New feature (feat:)
  • Breaking change (feat!: or fix!:)
  • Refactoring (refactor:)
  • Documentation (docs:)
  • Tests (test:)
  • Maintenance (chore:, ci:, build:)

Testing checklist

  • I ran npm test and all tests pass
  • I ran npm run lint with no errors
  • I added/updated tests for my changes (if applicable)

Not run locally — flagging rather than silently skipping. No node_modules in this worktree or the main checkout, and installing triggers a full WASM grammar rebuild via prepare. CI is the gate.

Verified by inspection instead:

  • tests/unit/docs-check-flags.test.ts is the only test asserting on README.md; it scans for ---prefixed codegraph check flags. This diff adds no -- tokens (only single-hyphen names like smol-toml), so it is unaffected.
  • Biome lint is scoped to src/ and tests/ per biome.json — a README-only diff is out of scope.
  • The edited comparison-table row still has 7 cells; the dependency table still has 4 columns.

Breaking changes

N/A

Related issues

Refs #2417 — no CI guard keeps these counts in sync with package.json, which is why this drifted within a day of the dependency landing.

smol-toml landed in #2376 to parse Cargo.toml for Rust crate:: target path
overrides, and picked up a second consumer in #2410 (pyproject.toml import
roots). Neither PR updated the README, so both the comparison table cell and
the Lightweight Footprint heading still claimed 3.

Adds smol-toml to the dependency table alongside the other three.

Refs #2417
@github-actions

Copy link
Copy Markdown
Contributor

Heads up: this PR references #2417 without a closing keyword (Closes #N / Fixes #N). If this PR fully resolves #2417, update the description so the issue auto-closes on merge — otherwise disregard this comment.

@greptile-apps

greptile-apps Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Corrects the documented direct runtime dependency count from three to four.

  • Adds smol-toml to the runtime dependency table.
  • Documents its Rust Cargo.toml and Python pyproject.toml parsing roles.

Confidence Score: 5/5

The documentation-only change appears safe to merge.

The README now accurately reflects the four direct runtime dependencies declared by the package and correctly describes both uses of smol-toml.

Important Files Changed

Filename Overview
README.md The revised counts, dependency list, descriptions, and Markdown table structures are consistent with the package manifest and runtime usage.

Reviews (1): Last reviewed commit: "docs(readme): correct runtime dependency..." | Re-trigger Greptile

@carlos-alm
carlos-alm merged commit 3b8dcea into main Aug 10, 2026
26 checks passed
@carlos-alm
carlos-alm deleted the docs/runtime-dependency-count branch August 10, 2026 07:26
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant