mcpField

Dependency Upgrade One-by-One

FeaturedOn demand
DependenciesUp to 15 rounds

About Dependency Upgrade One-by-One

This manually started loop runs for at most 15 rounds. Each round picks one outdated package from npm outdated, upgrades it and fixes any fallout, then runs npm test && npm run build to confirm everything still works.

Key features

  1. 01One package per round, which keeps problems easy to trace
  2. 02Tests and build run after every upgrade
  3. 03Capped at 15 rounds, and the user can stop at any time
  4. 04Supports Cursor

Use cases

  1. 01Clearing a backlog of critical outdated dependencies
  2. 02Handling required upgrades before a release
  3. 03Upgrading in small batches to avoid one risky large change
Goal
Critical outdated dependencies are upgraded and the tests stay green.
Exit when
Stop when npm outdated shows no critical packages left, or when the user stops the loop.
Between iterations run
npm outdated && npm test && npm run build

Launch prompt

Paste into Cursor. The agent repeats the steps below until the exit condition is met.

prompt.md
Start the "Dependency Upgrade One-by-One" loop.
Goal: Critical outdated dependencies are upgraded and the tests stay green.
Max iterations: 15.
Step 1: Pick one package — Run npm outdated and choose one critical outdated package from the output. If no critical package remains, the loop ends. `npm outdated`
Step 2: Upgrade and fix — Upgrade the chosen package and resolve any breaking changes, then run npm test && npm run build. The round counts as done only if both pass; otherwise keep fixing. `npm test && npm run build`
Between iterations run: `npm outdated && npm test && npm run build`
Exit when: Stop when npm outdated shows no critical packages left, or when the user stops the loop.

Steps

Each round runs in order; if the exit condition isn’t met, another round starts, up to 15.

01
Pick one package

Run npm outdated and choose one critical outdated package from the output. If no critical package remains, the loop ends.

$npm outdated
02
Upgrade and fix

Upgrade the chosen package and resolve any breaking changes, then run npm test && npm run build. The round counts as done only if both pass; otherwise keep fixing.

$npm test && npm run build
Not met → next roundExits when met

Supported agents

Coding agents that can run this loop directly.

Cursor
Claude Code

Comments

Markdown supported