Get breaking changes between package versions
get_breaking_changesIdentify breaking changes between two versions of an npm package by comparing TypeScript type declarations. Get removed exports, changed signatures, and migration notes to safely upgrade dependencies.
Instructions
Structured breaking-change diff between two versions of an npm package, computed from its TypeScript type declarations: removed exports, changed signatures, removed/changed class or interface members, plus new exports. Each entry has before/after signatures and a short migration note. The response includes a confidence score: 0.9 when both versions ship bundled types, 0.8 when DefinitelyTyped @types/* declarations were used. Use this before writing or upgrading code that targets a dependency version you are not certain about — e.g. when the installed version is newer than the API surface you know. The first request for a version pair may take up to a couple of minutes while the diff is computed; results are cached after that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | exact semver of the version to compare against; omit to use the latest published version | |
| from | Yes | exact semver of the version you know or currently have installed, e.g. "3.24.0" (from a lockfile); ranges like "^3.0.0" are not accepted | |
| package | Yes | npm package name, e.g. "zod" or "@scope/pkg" |