FrontPanel Platform API - v6.1.0
    Preparing search index...

    Class SemanticVersion

    Index

    Constructors

    • Parameters

      • major: number
      • minor: number
      • patch: number

      Returns SemanticVersion

    Properties

    major: number
    minor: number
    patch: number

    Methods

    • Compares this version to another using semantic-version precedence (major, then minor, then patch).

      Parameters

      Returns -1 | 0 | 1

      -1 when this version is lower, 0 when equal, 1 when higher.

    • Parameters

      Returns boolean

    • Whether this version is greater than or equal to other. Intended for runtime feature guards in apps, e.g. window.FrontPanelAPI.version.isAtLeast(new SemanticVersion(6, 1, 0)).

      Parameters

      Returns boolean

    • Returns string

    • Parses a "major.minor" or "major.minor.patch" version string (an omitted patch component defaults to 0). Any pre-release/build suffix (e.g. "6.1.0-beta.1") is ignored. Returns null when the string is not a valid version.

      Parameters

      • value: string

      Returns SemanticVersion | null