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

  1. 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 the packageManager field. Note the check scripts in the root package.json (lint, typecheck, test, build) and what CI runs in .github/workflows.
  2. Collect the ignore list. Read pnpm-workspace.yaml for updateConfig.ignoreDependencies and update.ignoreDeps (names or globs), plus exclude in taze.config.* / .tazerc. These dependencies stay at their current versions, including in catalogs. taze@21+ applies all of them itself, along with minimumReleaseAge; with an older taze, pass each entry as -x <name>.
  3. Survey. Run npx taze@latest major -r --json (drop -r for a single-package repo). Check that no ignored dependency shows up in the output. Split the result into non-major bumps and major bumps. Treat 0.x minor bumps (0.3 to 0.4) as major. Done when every outdated dependency is in one of the two lists or the ignore list.
  4. 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).
  5. Judge the user-side impact. A major is user-facing when consumers of this project would notice it:
    • It is in dependencies or peerDependencies of a published package, and its types, exports, or behavior pass through this package's public API.
    • It raises the Node.js engines floor, 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.
Installs
43
Repository
antfu/skills
GitHub Stars
6.1K
First Seen
4 days ago