Skip to main content

Versioning

The version number shows whether an upgrade is safe to take without reading the changelog first. This page describes what each of the three numbers means, during beta and from 1.0.

Beta releases (0.x)​

The package is in beta. Before 1.0, the minor number carries breaking changes and the major number stays at 0.

ReleaseExampleContains
Patch0.3.0 → 0.3.1Bug fixes, new components and new props. No breaking change
Minor0.3.x → 0.4.0At least one breaking change
Major0.x → 1.0.0The API is declared stable

Stable releases (1.0 and later)​

The package follows semantic versioning.

ReleaseExampleContains
Patch1.2.0 → 1.2.1Bug fixes only
Minor1.2.x → 1.3.0New components, props or tokens. No breaking change
Major1.x → 2.0.0At least one breaking change

Breaking changes​

A change is breaking if an application that worked on the old version can fail to build, or behave differently, on the new one without changes to its own code:

  • a component, prop, export or theme key is removed or renamed
  • a prop accepts fewer values than before
  • a peer dependency requires a newer minimum version

A release with one breaking change is a breaking release, whatever else it contains.

Upgrading​

npm's caret range follows the same rules. An application picks up only non-breaking releases automatically.

In package.jsonPicks up automaticallyNeeds a deliberate upgrade
^0.3.00.3.x0.4.0 and later
^1.2.01.x2.0.0 and later

Read the changelog before you upgrade across a breaking release. It ships in the package as CHANGELOG.md and lists each removal and rename, with what to write instead.

Bash
npm install @multiconsult-group-products/design-system@latest