Skip to content

Choose a versioning scheme

This guide shows how to pick the versioning scheme of a scope and set it up.

Scheme Version Next version from Fits
SemVer 1.2.3 The highest level of the changes Libraries and packages others depend on
CalVer 2026.01.01.0 The date of the release Apps and services
Terminal window
npm i -D @unirelman/plugin-semver
unirelman.config.ts
import { createSemverPlugin } from "@unirelman/plugin-semver";
// ...
plugins: [
// ...
createSemverPlugin(),
],

The current version of each scope is a SemVer version, such as "version": "1.0.0" in package.json. See the SemVer plugin reference.

Terminal window
npm i -D @unirelman/plugin-calver
unirelman.config.ts
import { createCalverPlugin } from "@unirelman/plugin-calver";
// ...
plugins: [
// ...
createCalverPlugin(),
],

The current version of each scope is a calendar version from the start, such as "version": "2026.01.01.0" in package.json. To version by month, such as 2026.01.0:

unirelman.config.ts
createCalverPlugin({ granularity: "month" });

The npm registry accepts SemVer versions only. Mark calendar-versioned packages as private, so the npm plugin manages their version and skips them when publishing:

package.json
{
"private": true
}

See the CalVer plugin reference.