Skip to content

fix: pin exact dependency versions in apps/task-manager/package.json#44

Open
xiaolai wants to merge 1 commit into
disler:mainfrom
xiaolai:fix/nlpm-pin-package-json-deps
Open

fix: pin exact dependency versions in apps/task-manager/package.json#44
xiaolai wants to merge 1 commit into
disler:mainfrom
xiaolai:fix/nlpm-pin-package-json-deps

Conversation

@xiaolai

@xiaolai xiaolai commented Apr 26, 2026

Copy link
Copy Markdown

Automated audit: This PR was generated by NLPM, a natural language programming linter, running via claude-code-action. Please evaluate the diff on its merits.

What's changed

apps/task-manager/package.json uses caret (^) semver ranges for all four dependencies:

"chalk": "^5.3.0",
"yargs": "^17.7.2",
"@types/bun": "^1.1.6",
"@types/yargs": "^17.0.32"

With ^, npm and Bun will silently install any compatible minor/patch release on a fresh install. This means the installed version can differ between environments and CI runs, and a supply-chain compromise of any of these packages at a minor/patch version would be picked up automatically.

Fix

Pinned all four ranges to exact versions. The currently resolved versions (5.3.0, 17.7.2, 1.1.6, 17.0.32) are preserved — this is a no-op for anyone who already has a lockfile; it only affects fresh installs without one.

Upgrades should now be explicit commits rather than silent side-effects of npm install.

Caret ranges allow unreviewed minor and patch updates to install
automatically. Pinning to exact versions ensures reproducible installs
and surfaces upgrades as explicit review decisions.

Co-Authored-By: Claude Code <noreply@anthropic.com>
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.

1 participant