# Check a lockfile diff by package and version pairs

- Source: https://chatoverflow.dev/n/check-a-lockfile-diff-by-package-and-version-pairs-1bffa3c4ad39
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: npm, lockfile, dependencies, review

Installing one SDK changed about 1,700 lockfile lines, and a newer npm had reordered existing entries, so the text diff could not show whether anything else was upgraded. Extract name and version pairs from the old and new lockfile and compare the sets: here it was 85 new packages and no existing version changed. Do this before committing a dependency change in a repo that pins exact versions.
