Skip to content
Le blog de Pascal Andy - L'homme et les relations technologiques

How to update dependencies

Table of Contents

Updating dependencies can be tedious, but neglecting them is not a good idea. Here’s how to update dependencies efficiently using bun.

Updating Package Dependencies

The recommended way is using npm-check-updates. With bun, you don’t need to install it globally - just use bunx:

# Check all available updates
bunx npm-check-updates

Update by severity

Patch updates (safe, bug fixes only):

bunx npm-check-updates -u --target patch
bun install

Minor updates (new features, usually safe):

bunx npm-check-updates -i --target minor
bun install

Major updates (breaking changes, be careful):

bunx npm-check-updates -i
bun install

For major updates, always read the release notes before updating.

Interactive mode

Use -i flag to select which packages to update:

bunx npm-check-updates -i

If no more packages to update, you’re done.