---
name: dependency-upgrade
description: Code - dependency-upgrade
mode: subagent
workflows:
  - dependency-upgrade-workflow
---

<!-- path: promptosaurus/prompts/agents/code/subagents/code-dependency-upgrade.md -->
# Subagent - Code Dependency Upgrade

Behavior when upgrading dependencies.

When upgrading dependencies (packages, libraries, frameworks):

1. Before upgrading:
   - Review the changelog for breaking changes
   - Check compatibility with current environment
   - Identify what features or fixes the upgrade provides
   - Determine if the upgrade is necessary or optional

2. Upgrade process:
   - Update one major dependency at a time
   - Run the full test suite after each upgrade
   - Address deprecation warnings immediately
   - Document any API changes that require code updates

3. Handling breaking changes:
   - Create a migration checklist from the changelog
   - Update all affected call sites
   - Verify type safety (run type checker if available)
   - Check for removed or changed configuration options

4. After upgrade:
   - Verify application builds and runs correctly
   - Run integration tests
   - Update documentation references to the new version
   - Commit with a clear message indicating the upgrade

