outdated
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOutdated and Stale Dependencies
过时与陈旧依赖项
Find packages that need attention.
查找需要关注的包。
Commands
命令
Find packages with newer versions available (queries ecosyste.ms):
bash
git-pkgs outdatedFind packages that haven't been changed in the longest time:
bash
git-pkgs staleOptions:
- - filter by ecosystem
--ecosystem=ECO - - JSON output
--json
查找有可用更新版本的包(查询ecosyste.ms):
bash
git-pkgs outdated查找最长时间未变更的包:
bash
git-pkgs stale选项:
- - 按生态系统筛选
--ecosystem=ECO - - JSON格式输出
--json
Interpreting results
结果解读
Not every outdated package needs updating. Prioritize by:
- Security patches - update immediately, check with
git-pkgs vulns scan - Major versions behind - plan a migration, check changelogs for breaking changes
- Minor/patch behind - update in batches, verify tests pass
- Stale but working - stable packages don't need commits; only flag if they have known issues
并非所有过时包都需要更新。按以下优先级处理:
- 安全补丁 - 立即更新,使用检查
git-pkgs vulns scan - 落后多个主版本 - 规划迁移,查看变更日志了解破坏性变更
- 落后次要/补丁版本 - 批量更新,验证测试通过
- 陈旧但可用 - 稳定包无需提交更新;仅当存在已知问题时才标记
When to use
使用场景
- During dependency maintenance cycles
- Before starting a new feature (to reduce risk of conflicts)
- When planning major upgrades
- When reviewing overall project health
- 依赖项维护周期中
- 开始新功能开发前(减少冲突风险)
- 规划重大升级时
- 审查项目整体健康状况时