Notifio is two packages in one repository: a desktop app, and the Next.js server behind the site you download it from. Yesterday I updated every dependency in both, which is a commit that touches four files that matter:
16 16 app/package.json 20 20 server/package.json 805 941 app/pnpm-lock.yaml 1742 2538 server/pnpm-lock.yaml Thirty-six lines of manifest went in and thirty-six came out. Six thousand and twenty-six lines of lockfile changed. I have always read a lockfile diff the way you read a licence agreement, which is to say I scrolled to the end and committed it. This time I wanted to know what was actually in it.
Counting packages, not lines
A line diff of a lockfile is mostly noise, because one package version change touches its entry in packages:, its entry in snapshots: and every line that references it. So I compared the set of resolved package names before and after, using the lockfile's own packages: section from the commit before the update and the commit after:
ex() { git show "$1:$2" | awk '/^packages:/{p=1;next}/^snapshots:/{p=0}p&&/^ [^ ]/' \ | sed "s/:$//;s/^ //;s/'//g" | sort; } ex HEAD~2 server/pnpm-lock.yaml > before.txt ex HEAD~1 server/pnpm-lock.yaml > after.txt Then split each name@version on the last @ and compare. The result:
app server entries before 482 525 entries after 468 448 names before 430 458 names after 429 382 added names 3 32 removed names 4 108 version changed 158 221 untouched 268 129 I changed 16 direct dependencies in the app and 20 in the server, and 379 package names moved to a different version. That is about ten transitive packages for every line I edited. In the server, 129 of 458 names (28 per cent) were untouched by the update, and in the app 268 of 430 (62 per cent) were. The difference is mostly one family. The app's tree is Electron's build toolchain, which changes slowly. The server's is Next, Sentry and an AWS client, which do not.
The shrinking
The server lock lost 77 entries even though I only moved versions up. I expected it to grow. The removed names say where it went:
removed names, by scope @smithy 35 (unscoped) 26 @aws-sdk 17 @sentry 13 @aws-crypto 7 @opentelemetry 7 Counting only the three AWS scopes, the before and after are 83 entries and 24:
before after @aws-sdk 33 18 @smithy 43 6 @aws-crypto 7 0 total 83 24 That is 59 of the 77 net entries. Three-quarters of the shrinkage in the whole server lockfile came from one family, and the family arrives because of two lines in package.json:
"@aws-sdk/client-s3": "3.1179.0", "@aws-sdk/s3-request-presigner": "3.1179.0", Both were 3.826.0 the day before. I have not read the SDK changelog for that span, so I cannot tell you why, but the lockfile is unambiguous that the newer client resolves to a much smaller tree than the old one did. The @aws-crypto scope, seven packages, vanished completely.
Those two packages are imported in exactly one file, server/src/app/api/download/[platform]/route.ts, which is the endpoint behind the buttons on the download page. It uses S3Client, GetObjectCommand and getSignedUrl to hand you a link that stops working shortly afterwards. So the biggest single change in this update, by package count, came from three symbols in one route handler. I wrote about that handler's behaviour in Three download buttons, no user agent sniffing, and that post could not have told you the dependency cost. This one can.
The names that went away with Sentry
The second-largest removal is @sentry at 13. Among them is @sentry/cli, plus its eight platform binary packages. My reading is that the new @sentry/nextjs major resolves its build tooling differently (the lock now has an @sentry/bundler-plugins entry and no @sentry/webpack-plugin), but I have not confirmed that from their changelog. I did not choose any of it. A major version bump of one direct dependency changed which tools sit in my install, and the only evidence is a lockfile.
What the lockfile cannot tell you
A lockfile diff shows which versions changed. It does not show which of the 379 changes deserve a read of the release notes, and I did not read 379 sets of release notes. What the package-level diff did was tell me where to look: the three direct majors (Next 16.2 to 16.4, Sentry 10 to 11, React 19.2 to 19.3) and the one family that disappeared. Everything else is a patch bump somewhere under a build tool.
The cheap end-to-end check on a site like this is to open it. Home, pricing and help all answer 200 as I write this, and the failures a dependency update causes in a marketing site are mostly visible ones. It is a weak check and I would not rely on it for the payment path, which is what the test suite is for.
A better habit than scrolling
Two numbers are worth taking from every update commit before you merge it:
- Names added and removed. If the lock got bigger or smaller by more than you changed, find the family. It is nearly always one direct dependency, and nearly always one you only import in a single place.
- Scopes you did not recognise. Here that was
@oxc-parser: 19 platform packages that arrived withoxc-parser, each of which is only ever installed on its own operating system and CPU.
The scope list in the table is a nine-line script away, and it turned "I updated the dependencies" into "the AWS client's tree fell from 83 entries to 24, and the Sentry CLI left without asking". If you want to see what is on the other end of all this, the site is at notifio.app, and the one page that imports the AWS client is the one with the buttons.