Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.57 KB

0000-show-updated-packages-only.md

File metadata and controls

53 lines (36 loc) · 1.57 KB
  • Start Date: 2017-02-10
  • RFC PR: (leave this empty)
  • Yarn Issue: (leave this empty)

Summary

Show only updated packages on yarn upgrade with the new version.

Motivation

When updating I want to know which of "my" packages have been updated (not dependencies of my dependencies) so that I can verify a package has been updated to the expected version. This makes it easy to spot incorrect version constraints you define within your package.json.

Detailed design

Instead of just showing all dependencies the following should be shown.

success Saved lockfile.    
success Saved 774 new dependencies.    

Updated direct dependencies:    
├─ @webcomponents/[email protected]    
├─ @webcomponents/[email protected]    
├─ @webcomponents/[email protected]    

All updated dependencies:    
├─ @webcomponents/[email protected]    
├─ @webcomponents/[email protected]    
├─ @webcomponents/[email protected]    
├─ [email protected]    
├─ [email protected]    
├─ [email protected]    
├─ [email protected]    
├─ [email protected]    
├─ [email protected]    

How We Teach This

The new section should be shown when running upgrade. Nothing else should be needed.

Drawbacks

Your dependencies will be shown twice, or a flag needs to be introduces or the current view (showing all packages is not available / needs a flag).

Alternatives

  • add a flag like --only-deps to only show my dependencies
  • or add a flag like --all to show the current version

Unresolved questions