Breaking Change Inventory Worksheet
A major version is a budget of breakage. Users will accept a certain amount of upgrade work if each item is listed, justified and easy to fix, and they lose patience when they discover breaking changes the changelog did not mention. This worksheet helps you account for every item before the major ships, so nothing reaches users as a surprise.
Instructions
- Open the worksheet as soon as you decide a major version is coming, not on release week. Add rows as breaking changes are merged.
- Fill every column for every row. An empty "migration" cell means the change is not ready to ship.
- Before release, sort the rows by the "users affected" column so the release notes lead with the changes most people will hit.
- Review the whole sheet with at least one person who did not write the changes; they will spot items that seem obvious to you and are not.
The inventory table
| # | What changes | Kind | Users affected | Warned in earlier version? | Migration step | Codemod or script? |
|---|---|---|---|---|---|---|
| 1 | ______ | removed / renamed / behaviour / type / runtime | many / some / few | yes (version __) / no | ______ | yes / no |
| 2 | ______ | ______ | ||||
| 3 | ______ | ______ | ||||
| 4 | ______ | ______ | ||||
| 5 | ______ | ______ |
Example rows (illustrative)
Here is how two rows might look for a hypothetical Package B going from 3.x to 4.0:
| # | What changes | Kind | Users affected | Warned? | Migration step |
|---|---|---|---|---|---|
| 1 | parse(str, true) boolean flag removed | removed | many | yes, warning since 3.6 | Use parse(str, { strict: true }) |
| 2 | Deep import package-b/lib/util no longer resolves | behaviour | some | no | Import normalize from the package root |
Row 2 is the kind that slips through. Adding an exports map makes undeclared files unreachable, which breaks everyone who imported them even though no code changed. The case study on exports breaking deep imports walks through exactly that scenario.
Questions to ask about each row
- Can it be avoided? Sometimes an adapter or a default keeps the old behaviour working for one more major. See remove versus deprecate.
- Was it warned? A change that users saw a runtime deprecation warning for is far less painful. If the answer is no, consider shipping a minor with the warning first.
- Is it hidden? Type-only changes, changed default values and stricter input validation do not show up as removed functions, yet they break builds. The roundup of accidental breaking changes lists common hidden kinds.
- Can it be automated? A codemod or search-and-replace instruction turns a row from an afternoon of work into a minute.
When the sheet is complete, it becomes the skeleton of your migration guide; the major version migration guide tutorial shows how to expand it.