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.
| Release | Example | Contains |
|---|---|---|
| Patch | 0.3.0 → 0.3.1 | Bug fixes, new components and new props. No breaking change |
| Minor | 0.3.x → 0.4.0 | At least one breaking change |
| Major | 0.x → 1.0.0 | The API is declared stable |
Stable releases (1.0 and later)
The package follows semantic versioning.
| Release | Example | Contains |
|---|---|---|
| Patch | 1.2.0 → 1.2.1 | Bug fixes only |
| Minor | 1.2.x → 1.3.0 | New components, props or tokens. No breaking change |
| Major | 1.x → 2.0.0 | At 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.json | Picks up automatically | Needs a deliberate upgrade |
|---|---|---|
| ^0.3.0 | 0.3.x | 0.4.0 and later |
| ^1.2.0 | 1.x | 2.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.
npm install @multiconsult-group-products/design-system@latest