Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Updating Dependencies?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jacobley-updating-dependencies)
---
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)).