Skip to content
Back to skills

Updating Dependencies

ASecurity

Updating catalog dependencies to latest minor/patch versions

  • 9 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 5, 2026
code-qualityrustgodocker

Works with

  • cli

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add JacobLey/leyman --skill updating-dependencies --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Updating Dependencies?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Updating Dependencies
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jacobley-updating-dependencies/badge)](https://www.skillsdirectory.com/skills/jacobley-updating-dependencies)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: updating-dependencies
description: Updating catalog dependencies to latest minor/patch versions
---

# Updating Dependencies

All external versions live in the default `catalog:` in `pnpm-workspace.yaml`, except a few named `catalogs:`. Changing a version there changes it for every package.

By default only apply **minor/patch** updates. Only bump a **major** version when the user asked for that specific package, since it may be held back on purpose.

## Steps

1. **Find updates:** `pnpm outdated -r --format json`.
2. **Classify:** an update is minor/patch when the latest major equals the current major. For `0.x`, `0.7 → 0.8` counts as minor.
3. **Edit `catalog:`** in `pnpm-workspace.yaml` to `^<new-version>`. Leave the named `catalogs:` alone unless the package is already listed there.
   - The `eslint-rules` catalog keeps `~`, so `@leyman/eslint-config`'s consumers get a plugin's new rules only through its releases. A patch there is routine. A minor can add rules, all on as errors: run `eslint` across the workspace, decide each new rule (keep it on and fix the code, or turn it off with the reason, as in the [linting skill](../linting-formatting/SKILL.md)), and give eslint-config a `minor` changeset if a rule stays on.
4. **Changeset:** for each updated entry whose `dependencyType` is not `devDependencies`, collect its `dependentPackages[].name`, skipping private packages. Write one changeset (see [versioning](../versioning/SKILL.md)) with:
   - `minor` for packages where it is a `peerDependency` or `optionalDependency`
   - `patch` where it is a regular `dependency`

   Summary: `Update dependencies: <package@version, ...>`.
5. **Patches:** a package in `patchedDependencies` (in `pnpm-workspace.yaml`) is patched at one exact version, and `pnpm i` fails once that version is no longer installed. If the new release has the fix, delete the patch file and its entry. If not, recreate the patch for the new version (`pnpm patch <package>@<version>`, apply the same change, `pnpm patch-commit <dir>`), and delete the old one.
6. **Install:** `pnpm i`, then `pnpm outdated -r`. Only skipped majors (or nothing, for a requested major) should remain.
7. **Test:** `test-only`, then `test-and-fix` (adds lint + auto-fix). For a major bump, finish with `test-ci`.

Report any test or lint failures to the user instead of working around them. Small fixes are fine to propose, but anything needing a refactor is the user's call.

## Crates

Crates are outside `catalog:` and pnpm's `minimumReleaseAge`, and Cargo has no setting that holds a release back, so hold the 7-day rule by hand: check each release date on crates.io, then `cargo update --package <crate> --precise <version>`. Commit `Cargo.lock`, which every build reads with `--locked`.

`wasm-bindgen` moves together: its exact version in `tools/constant-consistent-hash/rust/Cargo.toml`, and `wasm-bindgen-cli` in `.devcontainer/Dockerfile` and `dagger/main.go` (see the [devcontainer skill](../devcontainer/SKILL.md#version-parity-devcontainer--dagger)).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.