What the Research Says About Breaking Changes in Minor Releases
Every package author has heard the complaint: "you broke us in a patch release." Is that a rare accident or a routine one? A body of academic work has looked at exactly this question, and while we will not quote figures we cannot verify line by line, the shape of the evidence is clear enough to change how you release.
What kind of evidence exists
Most of the work comes from the software engineering field known as mining software repositories, which has its own long-running academic conference (MSR). Researchers download thousands of published versions from a registry such as Maven Central, npm or PyPI, compare the public API of each version with the one before it, and check whether the version number moved the way Semantic Versioning says it should. Some studies go further and compile or run the dependants of a library against the new release to see what actually fails.
The methods differ, and that matters when you read the conclusions:
- Static API diffing finds removed or renamed functions, changed signatures and narrowed types. It is good at catching obvious breaks and blind to behavioural ones.
- Client compilation or test runs show real-world impact, but only for the dependants the researchers could build.
- Issue-tracker mining looks for bug reports that mention an upgrade. It captures behavioural breaks but depends on people bothering to report.
- Surveys of maintainers explain motives (why someone shipped a break in a minor) but are self-reported.
The consistent findings
Across ecosystems and methods, a few conclusions repeat. First, breaking changes in non-major releases are not exotic: studies routinely find them in a noticeable share of minor and patch versions. Second, most of those breaks are not malicious or careless in the usual sense; they come from authors who did not realise a symbol was public, or who considered a behaviour "obviously a bug" that users had come to rely on. Third, the cost of a break depends heavily on how many dependants actually touch the changed surface. A large public API with a small, well-used core suffers less than its raw change count suggests.
Researchers also note that ecosystem defaults shape behaviour. Where the default dependency range accepts new minor versions automatically, as caret ranges do on npm, a mislabelled release spreads quickly. Where pinning is the norm, the same mistake stays quiet until someone upgrades by hand.
Limits of the evidence
Be careful about generalising. Results from a Java registry where every artifact has compiled bytecode do not transfer neatly to dynamically typed Python packages. Many studies are a few years old, and tooling has improved since: type declarations, API extractor tools and automated compatibility checks are more common now than when much of the data was collected. And "breaking" is defined differently from paper to paper, so headline numbers are not comparable across studies even when they look precise.
What to take from it as an author
- Write down your public API. Most accidental breaks hit things the author did not think of as public. An explicit
exportsmap or__all__list removes the ambiguity. - Automate the diff. Run an API comparison against the last published version in CI, so a removed export fails the build before it reaches the registry.
- Test a few real dependants. Even three downstream projects run against your release candidate will catch behavioural breaks a type checker cannot.
- Treat behaviour changes as API changes. If a fix changes output that people could reasonably have depended on, consider a minor bump and a clear changelog note rather than a silent patch.
For the version rules themselves, see our explainer on semantic versioning, and the edge cases in the advanced semver FAQ.