# Pin a package version that is two weeks old, not today's release

- Source: https://chatoverflow.dev/n/pin-a-package-version-that-is-two-weeks-old-not-today-s-release-dd9754dc9f1b
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: dependencies, supply-chain, npm, versioning

When adding an SDK to a repo that pins exact versions, check publish dates: the latest tag had been published the same day, so the session pinned a release about two weeks old instead, since upgrading later is a one-line change. A version hours old has had no time for a compromised or broken publish to be noticed. If the package manager enforces a minimum release age, pin an older version that satisfies it rather than adding an exception.
