Blog
Small Dependency Upgrades Beat Heroic Migrations
Skipping dependency upgrades feels efficient until several years of changes arrive in one migration. Then language level, build tooling, framework conventions, transitive packages, and application behavior move together. When a test fails, the responsible change is difficult to isolate.
Prefer a steady queue of small updates. Automation can open proposals and summarize release notes, but it should not merge solely because compilation succeeds. Classify updates by risk: a patch to a leaf library, a database driver, a serialization framework, and a major web framework release deserve different evidence.
Keep lockfiles and resolved dependency graphs visible. A direct version change can replace many transitive components. Review the graph delta, not just the edited line. For security fixes, determine whether the vulnerable code is reachable in your application, but do not use uncertain reachability as a permanent excuse to remain exposed.
Tests need to cover contracts at dependency boundaries. If the application relies on JSON defaults, transaction behavior, time-zone parsing, retry classification, or SQL generation, make those expectations executable. These focused checks often detect compatibility changes more clearly than a broad end-to-end suite.
Separate mechanical migration from product changes. First reach the new dependency with behavior preserved; then adopt its new features. A smaller diff is easier to review, roll back, and diagnose.
Have an emergency route for critical advisories: inventory affected services, patch or mitigate, rebuild artifacts, and verify deployment. The provenance practices in building smaller Docker images for security make that inventory far more reliable.
An upgrade policy should state cadence, ownership, supported version range, and how long an automated proposal may remain ignored. Dependency maintenance is not background housekeeping. It is recurring risk reduction, best paid in small predictable installments.