antfu-upgrade-deps
Installation
SKILL.md
Upgrade Dependencies
Bump every dependency the project allows to its latest version with taze, migrate the code for each major version, and ship it as one reviewable PR. The bar: after the PR, the project's consumers see no change unless the user approved it.
Workflow
- Prepare. Start from a clean working tree on the up-to-date default branch, then create a branch (e.g.
chore/upgrade-deps). Detect the package manager from the lockfile and thepackageManagerfield. Note the check scripts in the rootpackage.json(lint,typecheck,test,build) and what CI runs in.github/workflows. - Collect the ignore list. Read
pnpm-workspace.yamlforupdateConfig.ignoreDependenciesandupdate.ignoreDeps(names or globs), plusexcludeintaze.config.*/.tazerc. These dependencies stay at their current versions, including in catalogs.taze@21+applies all of them itself, along withminimumReleaseAge; with an older taze, pass each entry as-x <name>. - Survey. Run
npx taze@latest major -r --json(drop-rfor a single-package repo). Check that no ignored dependency shows up in the output. Split the result into non-major bumps and major bumps. Treat0.xminor bumps (0.3to0.4) as major. Done when every outdated dependency is in one of the two lists or the ignore list. - Research each major. For every major bump, read the changelog from the current version to the target: GitHub releases,
CHANGELOG.md, and the migration guide if one exists. List each breaking change, then search the repo for the affected APIs, options, and config. Done when every breaking change is marked "affects us" (with the file paths) or "does not affect us" (with the reason). - Judge the user-side impact. A major is user-facing when consumers of this project would notice it:
- It is in
dependenciesorpeerDependenciesof a published package, and its types, exports, or behavior pass through this package's public API. - It raises the Node.js
enginesfloor, drops CJS or a platform, or changes the output format (build tools, bundlers). - Migrating it requires changing this project's own public API, options, or defaults.
- It is in