outdated

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Outdated and Stale Dependencies

过时与陈旧依赖项

Find packages that need attention.
查找需要关注的包。

Commands

命令

Find packages with newer versions available (queries ecosyste.ms):
bash
git-pkgs outdated
Find packages that haven't been changed in the longest time:
bash
git-pkgs stale
Options:
  • --ecosystem=ECO
    - filter by ecosystem
  • --json
    - JSON output
查找有可用更新版本的包(查询ecosyste.ms):
bash
git-pkgs outdated
查找最长时间未变更的包:
bash
git-pkgs stale
选项:
  • --ecosystem=ECO
    - 按生态系统筛选
  • --json
    - JSON格式输出

Interpreting results

结果解读

Not every outdated package needs updating. Prioritize by:
  1. Security patches - update immediately, check with
    git-pkgs vulns scan
  2. Major versions behind - plan a migration, check changelogs for breaking changes
  3. Minor/patch behind - update in batches, verify tests pass
  4. Stale but working - stable packages don't need commits; only flag if they have known issues
并非所有过时包都需要更新。按以下优先级处理:
  1. 安全补丁 - 立即更新,使用
    git-pkgs vulns scan
    检查
  2. 落后多个主版本 - 规划迁移,查看变更日志了解破坏性变更
  3. 落后次要/补丁版本 - 批量更新,验证测试通过
  4. 陈旧但可用 - 稳定包无需提交更新;仅当存在已知问题时才标记

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
  • 依赖项维护周期中
  • 开始新功能开发前(减少冲突风险)
  • 规划重大升级时
  • 审查项目整体健康状况时