Versioning your components

When a minor change is a breaking change

E
• 1 minute
Versioning your components

Semantic versioning is easy to agree on and hard to apply, because the question is never the number — it is whether the change counts as breaking to the people using it.

Consumers define breaking

Removing a property is breaking. Changing its default value is also breaking, and teams discover this after the upgrade. Anything that changes rendered output without an opt-in deserves scrutiny.

Version the contract, not the file

If two releases produce the same markup, the same options and the same defaults, they are the same component for everyone who installed it — regardless of what changed internally.

  • Internal refactors: patch.
  • New optional options: minor.
  • Changed defaults or removed options: major.

Document the migration in the release

A version bump without a migration note turns a routine upgrade into an afternoon of archaeology. Two lines — what changed, and what to do — are usually enough.

The goal of a version number is not precision. It is letting someone decide in three seconds whether to look closer.

Keep a changelog you would read

Write the entry for the person upgrading at 5pm on a Friday. If it would not answer their question in that state, it is not finished.