Safe dependency upgrade automation for pi.dev extensions — dry-run, rollback, and changelog integration.
pi install npm:@realvendex/pi-dep-upgradepi-dep-upgrade provides safe, automated dependency upgrades for pi.dev extensions. It's the natural companion to pi-dep-audit — audit finds outdated/vulnerable deps, upgrade fixes them.
Key features:
- Dry-run mode — preview what would change before applying
- Automatic backup — snapshots package.json + lockfile before every upgrade
- One-click rollback — restore to pre-upgrade state if something breaks
- Risk classification — semver-aware risk levels (low/medium/high)
- Selective upgrades — upgrade specific packages or sweep all
Execute safe dependency upgrades with automatic backup.
Parameters:
packageNames(string[], optional) — Specific packages to upgrade. If omitted, upgrades all.dryRun(boolean, optional) — Preview changes without applying. Default: false.includeDev(boolean, optional) — Include devDependencies. Default: true.
Example:
Use the dep_upgrade tool with dryRun=true to preview all available upgrades
Preview dependency upgrades without applying any changes.
Parameters:
packageNames(string[], optional) — Specific packages to check.includeDev(boolean, optional) — Include devDependencies. Default: true.
Example:
Use the dep_upgrade_dry_run tool to see what dependencies can be upgraded
Roll back failed dependency upgrades by restoring a pre-upgrade snapshot.
Parameters:
backupId(string, optional) — Specific backup ID to restore. If omitted, restores the most recent.
Example:
Use the dep_upgrade_rollback tool to restore the last backup
pi-dep-upgrade is designed to work seamlessly with pi-dep-audit:
- Audit first: Use
dep_outdatedfrom pi-dep-audit to identify outdated dependencies - Preview: Use
dep_upgrade_dry_runto see what would change - Upgrade: Use
dep_upgradeto apply the changes safely - Rollback if needed: Use
dep_upgrade_rollbackif something goes wrong
MIT