Class: SemanticVersion

SemanticVersion

A class used to parse and compare strings that follow the Semantic Versioning Specification (https://semver.org).

new SemanticVersion(version)

sdk/core/lib/semantic-version.js, line 38
Name Type Description
version string

The semantic versioning string

Members

major

The major version number.

minor

The minor version number.

patch

The patch version number.

Methods

equals(other){boolean}

sdk/core/lib/semantic-version.js, line 67

Checks whether two semantic versions are the same.

Name Type Description
other SemanticVersion
Returns:
Type Description
boolean

isMoreRecentThan(other){boolean}

sdk/core/lib/semantic-version.js, line 76

Checks whether this version is more recent than other.

Name Type Description
other SemanticVersion

The version to be compared.

Returns:
Type Description
boolean