antrophiclove
← Kütüphaneye dön
Kurulum
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/modernize-deps/raw -o .claude/commands/modernize-deps.md

Hedef dosya: .claude/commands/modernize-deps.md

Modernize Dependencies Command

Update and modernize project dependencies

Instructions

Follow this approach to modernize dependencies: $ARGUMENTS

  1. Dependency Audit

    # Check outdated packages
    npm outdated
    pip list --outdated
    composer outdated
    
    # Security audit
    npm audit
    pip-audit
    
  2. Update Strategy

    • Start with patch updates (1.2.3 → 1.2.4)
    • Then minor updates (1.2.3 → 1.3.0)
    • Finally major updates (1.2.3 → 2.0.0)
    • Test thoroughly between each step
  3. Automated Updates

    # Safe updates
    npm update
    pip install -U package-name
    
    # Interactive updates
    npx npm-check-updates -i
    
  4. Breaking Changes Review

    • Read changelogs and migration guides
    • Identify deprecated APIs
    • Plan code changes needed
    • Update tests and documentation
  5. Testing and Validation

    npm test
    npm run build
    npm run lint
    
  6. Documentation Updates

    • Update README.md
    • Revise installation instructions
    • Update API documentation
    • Note breaking changes

Remember to update dependencies incrementally, test thoroughly, and maintain backward compatibility where possible.