Program 02 · Module 06 of 9
Module 06: Dependency Upgrades and Migrations
Move a system to newer libraries, runtimes or frameworks without breaking it. You assess risk, upgrade in stages, use assistants for the mechanical work and keep a path back.
- Suggested study time
- 5–6 hours
- Prerequisites
- Modules 1 to 5.; A project with a dependency manifest and a test suite.
The lessons in this module are in preparation. The outcomes, assignment and checklist below are ready to use now.
Sign in to track your progress. Every lesson stays free to read without an account.
Learning outcomes
By the end of this module you will be able to:
- Inventory dependencies and assess upgrade risk from release notes and usage.
- Plan an upgrade in stages, each independently testable.
- Use an assistant for mechanical changes and review them against the release notes.
- Run old and new behaviour side by side to compare results.
Lessons
- 6.1
Inventorying Dependencies and Risk
List what the system depends on and rank upgrades by risk and benefit.
In preparation40 min - 6.2
Reading Release Notes and Breaking Changes
Find the changes that affect your code, and ignore the ones that do not.
In preparation35 min - 6.3
Staged Upgrades and Compatibility Layers
Break an upgrade into steps that can be tested and released separately.
In preparation45 min - 6.4
Mechanical Migration with an Assistant
Delegate repetitive code changes, then verify them against the documented behaviour.
In preparation40 min - 6.5
Running Old and New Side by Side
Compare behaviour between versions before cutting over.
In preparation40 min
About 3 h 20 min of lessons in total.
Practical assignment
Plan and execute a staged upgrade
Choose one dependency or runtime in your repository that is behind. Plan the upgrade in stages and complete at least the first.
Deliverables
- A dependency inventory with risk notes for the chosen upgrade.
- A staged plan with a test and a rollback for each stage.
- The first stage implemented, with tests passing.
- A summary of release-note items relevant to your code.
Validation checklist
Use this to check your assignment before you move on.
Knowledge check
Show the answer and explanation
Answer: B. Stages localise failures, so each break has an obvious cause. A single jump is quicker to start but harder to diagnose. Waiting only enlarges the gap.
Show the answer and explanation
Answer: B. Compiling shows the syntax is valid, not that semantics are preserved. Diff size is not a measure of correctness.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.