Class: ServerVersion

ServerVersion()

The ServerVersion class represents a Nuxeo Server version.

It handles major, minor and hotfix version.

Limitations:

  • Ignore the -SNAPSHOT and -IXXXXXXXX_XXXX suffixes when parsing the server version
  • '9.10-SNAPSHOT' is considered equals to '9.10'
  • '9.10-20180101_1212' is considered equals to '9.10'

Constructor

new ServerVersion()

Source:

Methods

eq(version)

Returns whether this version is equal to the version param.

Parameters:
Name Type Description
version string | ServerVersion

The other version.

Source:

gt(version)

Returns whether this version is greater than the version param.

Parameters:
Name Type Description
version string | ServerVersion

The other version.

Source:

gte(version)

Returns whether this version is greater than or equal to the version param.

Parameters:
Name Type Description
version string | ServerVersion

The other version.

Source:

lt(version)

Returns whether this version is lesser than the version param.

Parameters:
Name Type Description
version string | ServerVersion

The other version.

Source:

lte(version)

Returns whether this version is lesser than or equal to the version param.

Parameters:
Name Type Description
version string | ServerVersion

The other version.

Source: