Update Dependencies
- See what's outdated:
npm outdated 2>/dev/null || bun outdated 2>/dev/null
- Categorize updates:
- Patch (1.0.1 → 1.0.2): bug fixes, safe to update
- Minor (1.0.0 → 1.1.0): new features, backward compatible, usually safe
- Major (1.0.0 → 2.0.0): breaking changes, needs analysis
- For major updates, check changelogs:
- Read the package's CHANGELOG or GitHub releases
- Identify breaking changes that affect this project
- Check if there are codemods available
- Apply updates in batches:
# Safe updates first
npm update 2>/dev/null || bun update
# Major updates individually after analysis
npm install package@latest
- After each batch: run tests to catch regressions.
npm test 2>/dev/null || bun test
- Report: N updated, N skipped (reason), N failed tests (which package caused it).
Use this skill with your AI agent:
Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.