Between Command

Compare dependency changes between two commits, branches, or tags. cli-between.png

Usage

whatsdiff between <from> <to> [options]

Arguments

  • <from> - Starting commit
  • <to> - Ending commit

Examples

Compare Between Commits

whatsdiff between abc123 def456

Example Output

$ whatsdiff between v1.0.0 v2.0.0

composer.lock between v1.0.0 and v2.0.0

  ↑↑ laravel/framework    v11.0.0  →  v12.0.0  (15 releases)
  ↑↑ symfony/console      v6.4.0   →  v7.0.0   (8 releases)
   + laravel/sanctum      ^4.0
   + livewire/livewire    ^3.0
   × deprecated/package   ^1.0

What It Does

The between command:

  1. Checks out the <from> reference and reads the lock files
  2. Checks out the <to> reference and reads the lock files
  3. Compares the two states
  4. Shows all packages that changed between the two points

This is particularly useful for:

  • Code reviews: see what dependencies changed in a PR
  • Release notes: understand dependency updates between versions
  • Debugging: identify what dependency have changed between two states

Related Commands

  • Use analyse to check changes in working directory
  • Use check to verify a specific package