Skip to content

chore(deps): clear developer dependency audit findings (git-stunts/plumbing#23) - #38

Merged
flyingrobots merged 5 commits into
mainfrom
chore/23-dev-dependency-audit
Dec 1, 2026
Merged

flyingrobots merged 5 commits into
mainfrom
chore/23-dev-dependency-audit

Conversation

@flyingrobots

Copy link
Copy Markdown
Member

Closes #23

Plan

  1. Record the baseline complete audit (with and without dev dependencies) in a PR comment.
  2. Update the developer-tool dependencies that carry the findings (Vitest and its Vite/Rollup/PostCSS chain; ESLint and its glob/ajv/yaml chain), refreshing package-lock.json and bun.lock together.
  3. Keep runtime dependencies and the published engines floor unchanged; if a tool needs a newer Node for development, document that as a separate development-tool floor.
  4. Adapt tool configuration only where an upgrade requires it. No test assertion changes, no skipped tests.
  5. Gates: complete npm audit --package-lock-only exits 0 with no omitted groups; clean npm ci; lint clean; Node/Bun/Deno suites green in Docker.

Draft until all gates are green.

@flyingrobots

Copy link
Copy Markdown
Member Author

Baseline audit (main d31dbc3)

npm audit --package-lock-only --json: exit 1, 15 entries: 2 critical, 10 high, 3 moderate, 0 low.

npm audit --package-lock-only --omit=dev --json: exit 0, 0 findings (runtime dependency zod is clean).

Package Severity Direct Vulnerable range
@humanfs/node moderate false <0.16.8
@vitest/mocker moderate false <=4.1.11
ajv moderate false <6.14.0
brace-expansion high false <=1.1.20
flatted high false <=3.4.1
js-yaml high false 4.0.0 - 4.3.1
minimatch high false <=3.1.3
nanoid high false <=3.3.17
picomatch high false 4.0.0 - 4.0.3
postcss high false <=8.5.22
rollup high false 4.0.0 - 4.58.0
source-map-js high false 1.0.0 - 1.2.1
tinypool critical false <=2.1.1
vite high false 7.0.0 - 7.3.6
vitest critical true <=4.1.10

All findings are in developer dependencies: the Vitest 3 chain (vitest, @vitest/mocker, tinypool, vite, rollup, postcss, nanoid, source-map-js, picomatch) and the ESLint 9 chain (@humanfs/node, ajv, brace-expansion, flatted, js-yaml, minimatch).

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 4c0c07d6-1e1b-4a80-9ecd-eacb1d8362b4
Commits

Reviewing files that changed from the base of the PR and between 3f78812 and dcf751f.

Files ignored due to path filters: 2

  • bun.lock is excluded by !**/*.lock
  • package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 3

  • CHANGELOG.md
  • CONTRIBUTING.md
  • package.json

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • Updated development tooling to newer versions and added a development dependency. Runtime dependencies remain unchanged.
  • Documentation
    • Clarified the Node.js versions required for local development and tooling. These requirements are separate from the published package’s supported runtime versions.
    • Updated the unreleased changelog with the development-tool dependency changes and their resolved versions.

The pull request updates development-tool dependencies and adds globals as a development dependency. It documents the Node.js versions required for local development and distinguishes that requirement from the package’s published runtime requirements.

Changes: Developer Toolchain

Layer / File(s) Summary
Dependency versions and development requirements
package.json, CONTRIBUTING.md, CHANGELOG.md
The development dependency versions are updated, and globals is added. The contributing guide documents the development Node.js requirement. The changelog records the dependency updates, resolved versions, and audit findings, and states that runtime dependencies and the published engines floor are unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: Minimal · previous review 3f788 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive [#23] Coding requirements: (1) Complete audit exits 0 with no omitted groups. Not verified. The lockfiles package-lock.json and bun.lock are in ignored_files, so their contents cannot be reviewed.… Provide the reviewable lockfile evidence, or the npm audit --package-lock-only --json output for the reviewed head. Provide the Docker run logs for lint and the Node/Bun/Deno suites. State whether Vitest 4 or ESLint 10 changes any behavio…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the main change: developer dependency updates made to clear audit findings, with the issue reference. The changeset updates Vitest, ESLint, @eslint/js and adds globals, which supports …
Description check Passed The description states the closed issue and gives a plan covering the developer-tool dependency upgrades, lockfile refresh, unchanged runtime dependencies and engines floor, and the verification gates…
Out of Scope Changes check Passed All changed files in the summary relate to the linked issue. package.json changes only developer-tool dependency versions and adds globals, which eslint.config.js imports. CHANGELOG.md adds a …
Full details: Title check

Explanation

The title names the main change: developer dependency updates made to clear audit findings, with the issue reference. The changeset updates Vitest, ESLint, @eslint/js and adds globals, which supports the title's scope. The title is 79 characters, slightly long but readable.

Full details: Description check

Explanation

The description states the closed issue and gives a plan covering the developer-tool dependency upgrades, lockfile refresh, unchanged runtime dependencies and engines floor, and the verification gates. It matches the changeset, so the check passes.

Full details: Out of Scope Changes check

Explanation

All changed files in the summary relate to the linked issue. package.json changes only developer-tool dependency versions and adds globals, which eslint.config.js imports. CHANGELOG.md adds a Security entry that records the dependency updates and the audit findings they clear. CONTRIBUTING.md documents the development Node floor for ESLint 10, Vitest 4, and Vite 8. None of these changes touch runtime dependencies, runtime API declarations, or the published engines floor. The summary reports no changes to exported declarations. Config or test-file adaptations, if any, are not in the summary and were not assessed.

Full details: Linked Issues check

Explanation

[#23] Coding requirements: (1) Complete audit exits 0 with no omitted groups. Not verified. The lockfiles package-lock.json and bun.lock are in ignored_files, so their contents cannot be reviewed. (2) Clean locked installation with ordinary peer and lifecycle rules. Not verified. Depends on the same excluded lockfiles. (3) Lint and Node/Bun/Deno suites pass in Docker. Only reported by the author in the PR objectives. No independent evidence. (4) Bounded regressions for major overrides (Vitest 4, ESLint 10). The raw summary states no test files or assertions changed. It does not show any new regression tests. Whether a regression is required depends on whether these major upgrades change behavior the project relies on, which is not established. Reviewable evidence supports the manifest part: package.json sets vitest to ^4.1.12, eslint to ^10.16.0, @eslint/js to ^10.0.1, and adds globals ^17.14.0 as a devDependency. CHANGELOG.md and CONTRIBUTING.md document the development Node floor (^20.19.0 || ^22.13.0 || &gt;=24) separately from the published engines. Runtime dependencies are reported unchanged.

Resolution

Provide the reviewable lockfile evidence, or the npm audit --package-lock-only --json output for the reviewed head. Provide the Docker run logs for lint and the Node/Bun/Deno suites. State whether Vitest 4 or ESLint 10 changes any behavior the project relies on. If so, add bounded regression tests that cover that behavior.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

I’m a rabbit with a toolchain to greet,
New versions hop into place, neat and sweet.
globals joins the dev burrow today,
Node.js notes show the supported way.
I nibble the changelog, then hop away.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 71e1d1bd-cb7a-462f-abda-dc6e48642f6b
Commits

Reviewing files that changed from the base of the PR and between d31dbc3 and 3f78812.

Files ignored due to path filters: 2

  • bun.lock is excluded by !**/*.lock
  • package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 3

  • CHANGELOG.md
  • CONTRIBUTING.md
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

…findings

Vitest ^4.1.12 (Vite 8, no tinypool) and ESLint/@eslint/js 10 clear the
15 developer-dependency advisories. globals becomes a declared dev
dependency because eslint.config.js imports it and ESLint 10 no longer
pulls it in. bun.lock is resolved fresh by Bun 1.3.5 and matches
package-lock.json version for version.

Refs #23
@flyingrobots

Copy link
Copy Markdown
Member Author

Pushed 0f48109, 8e8b208

Dependencies (devDependencies only; zod and engines unchanged):

Package Before After Major
vitest ^3.0.0 (3.x) ^4.1.12 yes
eslint ^9.17.0 ^10.16.0 yes
@eslint/js ^9.17.0 ^10.0.1 yes
globals transitive via @eslint/eslintrc (14.0.0) ^17.14.0, declared new direct dep
prettier ^3.4.2 unchanged range; lock 3.7.4 -> 3.10.1 no

Why these choices:

  • Vitest 4.1.12 is the first 4.x outside the @vitest/mocker <=4.1.11 advisory and still supports Node 20, so the Node 20 test image keeps covering the published Node floor. Vitest 5 would need Node 22.12+ for development and was not needed.
  • ESLint 9.39.5 alone would also clear the audit, but npm marks ESLint 9 as no longer supported, so this moves to 10. Lint is clean under ESLint 10's recommended set with no config change.
  • eslint.config.js already imports globals; it was only present through ESLint 9's @eslint/eslintrc, which ESLint 10 dropped, so it is now declared.
  • No overrides, no ignore list, no threshold change.

Lockfiles: package-lock.json from npm; bun.lock resolved fresh by Bun 1.3.5 (the engines.bun floor, lockfile v1). Both lockfiles list the same package@version set, and Bun latest (1.4.5) accepts the lock with --frozen-lockfile unchanged. Refreshing the old bun.lock in place kept stale entries, including vulnerable picomatch@4.0.3, which is why it was resolved fresh.

Docs: CONTRIBUTING lists the development-tool Node floor ^20.19.0 || ^22.13.0 || >=24 (ESLint 10, Vitest 4, Vite 8) separately from the published engines. CHANGELOG Unreleased has a Security entry.

Gates

  • npm audit --package-lock-only --json: exit 0, 0 findings (all groups, default threshold).
  • npm ci (clean, lifecycle scripts enabled): exit 0.
  • npm run lint: clean.
  • npm test (Docker, COPY-based): Node 20.20.2 Vitest 4.1.12 43 files / 383 tests passed; Bun 1.4.5 383 pass / 0 fail; Deno 50 passed (417 steps) / 0 failed. No test files or assertions changed.

@flyingrobots

Copy link
Copy Markdown
Member Author

Pushed 3f78812: corrected starting-audit figures

This replaces the counts in the first comment. That comment was taken before a new cross-spawn advisory was published. Re-run of npm audit --package-lock-only --json against current origin/main (d31dbc3): exit 1, 16 affected packages (3 critical, 10 high, 3 moderate, 0 low), carrying 45 distinct advisories. --omit=dev: still exit 0, 0 findings.

The new entry is cross-spawn 7.0.6 (critical, GHSA-ghv9-86vm-4v8m, command injection on Windows when spawning batch files), reached through ESLint 9. This branch resolves cross-spawn 7.1.2.

Package Severity Direct Vulnerable range
@humanfs/node moderate false <0.16.8
@vitest/mocker moderate false <=4.1.11
ajv moderate false <6.14.0
brace-expansion high false <=1.1.20
cross-spawn critical false 7.0.0 - 7.0.6
flatted high false <=3.4.1
js-yaml high false 4.0.0 - 4.3.1
minimatch high false <=3.1.3
nanoid high false <=3.3.17
picomatch high false 4.0.0 - 4.0.3
postcss high false <=8.5.22
rollup high false 4.0.0 - 4.58.0
source-map-js high false 1.0.0 - 1.2.1
tinypool critical false <=2.1.1
vite high false 7.0.0 - 7.3.6
vitest critical true <=4.1.10

The CHANGELOG Security entry now gives these figures and counts affected packages, the unit npm reports, rather than advisories. The full audit on this branch is still exit 0, 0 findings. Pre-push gates: lint clean; Docker Node 383/383 (43 files), Bun 383 pass / 0 fail, Deno 50 passed (417 steps) / 0 failed.

@flyingrobots
flyingrobots marked this pull request as ready for review December 1, 2026 05:44
@flyingrobots

Copy link
Copy Markdown
Member Author

Codex review, round 1

Reviewed head: dcf751f (includes the merge of origin/main with #36).

No actionable findings in origin/main...HEAD at dcf751f4de83e1883073999b7a95f2b2ae57f6f7.

I ran the requested git diff origin/main...HEAD and git log origin/main..HEAD. The review covered only the five changed files, with the existing lint, test, Docker, and CI configuration inspected for upgrade effects.

  • Lockfiles: package-lock.json and bun.lock each contain 153 resolved packages. Every corresponding package version and integrity hash matches, including nested dependencies. Both root dependency declarations match package.json. The production dependency, zod, is unchanged.
  • Node compatibility: The documented development requirement, ^20.19.0 || ^22.13.0 || >=24, matches ESLint 10’s requirement and satisfies the locked Vitest and Vite versions. Keeping the published Node >=20.0.0 floor is consistent with this change because the upgraded tools are development dependencies. The existing CI Node 20, 22, and 24 selections and Node Docker image satisfy the development floor when resolved to current patches. ESLint migration requirements.
  • Lint and test configuration: npm run lint passed using the installed versions recorded in the lockfile. No lint rules, test scripts, Docker guards, or CI jobs were removed or disabled. I found no use of the removed Vitest options or mocking APIs that would require migration in the existing configuration and tests. The suite does not configure coverage, so Vitest 4’s changed coverage defaults do not weaken an existing coverage gate. Vitest 4 migration guide.
  • Licences and deprecations: No locked package has a deprecation marker. I found no Apache-2.0 licence conflict introduced by the upgrade. The new MPL-2.0 Lightning CSS packages are development dependencies; MPL-2.0 permits combination with Apache-licensed code subject to its own licence obligations. Mozilla’s MPL compatibility FAQ.
  • Documentation: CONTRIBUTING.md and the CHANGELOG consistently distinguish the higher development-tool requirement from the unchanged published runtime floor.

Validation limit: I attempted a complete npm audit --json --ignore-scripts, but registry DNS resolution failed with ENOTFOUND registry.npmjs.org. I therefore cannot independently confirm the CHANGELOG’s historical advisory counts or its current zero-findings claim. This is a verification limitation, not evidence of a defect.

I did not run the test suite or modify repository files.

VERDICT: APPROVE

Follow-up on the validation limit: the reviewer's sandbox had no registry access, so I ran npm audit --package-lock-only against dcf751f: found 0 vulnerabilities. This confirms the CHANGELOG's current zero-findings claim.

Push note: the first pre-push run of dcf751f had one Deno failure in test/deno/ScopedRunSignalOwnership.js:92 (the saved-remove SIGINT case from #36, code this PR does not touch). It passed 3/3 when run alone in Docker and the retried full three-runtime push passed (Node 415/415, Bun pass, Deno 62/62). It looks load-dependent and is reported to the coordinator rather than changed here.

@flyingrobots
flyingrobots merged commit 4a02379 into main Dec 1, 2026
3 checks passed
@flyingrobots
flyingrobots deleted the chore/23-dev-dependency-audit branch December 1, 2026 07:37
@coderabbitai coderabbitai Bot mentioned this pull request Dec 1, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clear the remaining developer dependency audit findings

1 participant