npm-check-updates 18.2: Update package.json Dependencies to Latest Versions

Back
This is an AI-generated summary. for details.
npm-check-updates 18.2: Update package.json Dependencies to Latest Versions

npm-check-updates (ncu) is a command-line tool that upgrades your project's package.json dependencies to the latest versions, ignoring the specified version ranges. It maintains existing semantic versioning policies, ensuring that upgrades are consistent with the project's versioning strategy. The tool is compatible with various package managers, including npm, yarn, pnpm, deno, and bun. It offers both CLI and module usage, providing flexibility for different development workflows.

Key features include:

  • Interactive Mode: Allows users to choose which packages to update one by one.
  • Cooldown Feature: Introduced in version 18.2, this feature helps protect against supply chain attacks by requiring package versions to be published at least a specified number of days before considering them for upgrade.

The tool also supports filtering packages, rejecting specific versions, and upgrading only to the highest patch version without bumping the minor or major versions.

Read the full article