Repository navigation
docs(readme): correct runtime dependency count from 3 to 4 - #2430
Merged
Merged
Conversation
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
Contributor
Contributor
Greptile SummaryCorrects the documented direct runtime dependency count from three to four.
Confidence Score: 5/5The 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
Reviews (1): Last reviewed commit: "docs(readme): correct runtime dependency..." | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The README claimed 3 runtime dependencies in two places.
package.jsondeclares 4.smol-tomlwas added in #2376 to parseCargo.tomlfor[[bin]]/[[example]]/[[test]]/[[bench]]targets with an explicitpath = "..."— without it,findRustCrateRootmisattributed those files and misresolved everycrate::/self::/super::import in them (closing documented limitation #2217). It picked up a second consumer a day later in #2410, which parsespyproject.tomlfor 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:
util.parseTOMLisundefined, no builtin module matches).tscwith no bundler, so the import survives intodist/as a real module resolution.toml), 6.7M (@iarna/toml, no release since 2020), 380K (@ltd/j-toml, LGPL-3.0), 27K (js-toml, pulls inxregexp+chevrotain).try/catchbest-effort: malformed TOML yields no results rather than failing resolution. Replaceable without a migration if it ever goes stale.Type of change
fix:)feat:)feat!:orfix!:)refactor:)docs:)test:)chore:,ci:,build:)Testing checklist
npm testand all tests passnpm run lintwith no errorsNot run locally — flagging rather than silently skipping. No
node_modulesin this worktree or the main checkout, and installing triggers a full WASM grammar rebuild viaprepare. CI is the gate.Verified by inspection instead:
tests/unit/docs-check-flags.test.tsis the only test asserting onREADME.md; it scans for---prefixedcodegraph checkflags. This diff adds no--tokens (only single-hyphen names likesmol-toml), so it is unaffected.src/andtests/perbiome.json— a README-only diff is out of scope.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.