Skip to main content
cngx-src documentation

Version

Interface

projects/utils/version.ts

Import#

import { Version } from '@cngx/utils'

Description#

Parsed semantic version.

The fields are display-only string segments (badge rendering, log lines, about panels) - they are not comparable numerically or lexically across versions. Use a real semver library when you need ordering or range checks. Producer-owned: obtain instances via makeVersion rather than constructing literals - new display segments may be added.

Index#

Instance Properties#

Readonly
major#string
Readonly
minor#string
Readonly
patch#string
Readonly
prerelease#string
Readonly

Pre-release tag after the first - (e.g. 'rc.2'), or '' when none.