About dependency version comparator
Compare the dependencies of two package.json files and see which were added, removed or changed.
Good uses
- Reviewing what changed between two releases.
- Comparing a project with its template.
- Checking differences between branches.
Major jumps
A major version change may include breaking changes. Read the package's changelog before upgrading.
A worked example
Compare the package.json of two releases. The tool reports that react went from ^17.0.2 to ^18.2.0 (changed), left-pad was removed and zod was added. A major bump such as 17 to 18 deserves a look at the migration guide.
Use it for
- Reviewing what a pull request changes in dependencies.
- Spotting accidental upgrades.
- Comparing a project with its starter template.
Interpreting differences
A caret range changing from ^1.2.0 to ^1.4.0 only raises the minimum accepted version. A change to a new major version, such as ^2.0.0, can break your code and needs testing.
