Check a pnpm-lock.yaml for freshly published versions
Drop pnpm-lock.yaml. Lockfile formats 5 to 9 are read, and peer-dependency variants of one version count once. pnpm lockfiles do not record the registry, so every package name in them, private ones included, is sent to registry.npmjs.org.
Why check pnpm-lock.yaml before you merge it?
pnpm-lock.yaml often changes by hundreds of lines in an automated update pull request, and nobody reads them all. Checking it before you merge shows the handful of versions that are only hours or days old, so you can decide whether to wait for them to settle instead of shipping them the day they were published.
Questions
Which pnpm lockfile formats work?
Formats 5, 6 and 9 (pnpm 7 to 10), with or without peer suffixes in the package keys. Tarball, git and directory resolutions are listed as not looked up.
Does pnpm have a setting for this?
Recent pnpm releases have a minimumReleaseAge setting that refuses versions younger than a set age. This page is a check you can run on any lockfile, including ones made before that setting was on.
Are private package names sent to npm?
Yes. pnpm-lock.yaml does not record which registry a package came from, so every registry package name in it is sent to registry.npmjs.org, including private scoped names such as @acme/internal-auth. Only tarball, git and directory resolutions stay unsent. Check a pnpm lockfile with private packages only if that is acceptable.