Copyright 2025

The Valley of Code

A Flavio Copes project

Bumping Node.js dependencies
Bumping Node.js dependencies

I usually run ncu to upgrade package.json dependencies to the latest versions.

Sometimes however I want to update to the latest version of a major version, for example I’m on 1.2 and I don’t want to jump to 2.3, I want to stick to 1.3 for example, if it exists.

By default, ncu upgrades the package to the latest version available.

We have the option to only upgrade to minor versions (ignoring major new versions, with breaking changes) with ncu --target minor (or ncu -t minor).

Upgrade only patch versions with ncu -t patch.

I recently also found out about taze. A similar tool.

Use it as taze minor to bump to latest minor changes within the same major version.

Or if you prefer, taze major will check all changes and bump to the latest stable changes including majors.

Patch updates, use taze patch.


Join my AI Workshop !

The Web Development BOOTCAMP cohort starts in February 2026