W3cubDocs

/Sass

Version

Compatibility:
Dart Sass
since 1.74.0
Node Sass

A semantic version of the compiler.

Hierarchy

  • Version

Constructors

Properties

Methods

Constructors

  • Constructs a new version.

    All components must be non-negative integers.

    Parameters

    • major: number

      The major version.

    • minor: number

      The minor version.

    • patch: number

      The patch version.

    Returns Version

Properties

major: number
minor: number
patch: number

Methods

  • Parses a version from a string.

    This throws an error if a valid version can't be parsed.

    Parameters

    • version: string

      A string in the form "major.minor.patch".

    Returns Version

© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/classes/Version