docs: function parseVersion(v) {
    const [
      , // Full match of no interest.
      major = null,
      sub = null,
      minor = null,
    ] = /^v?(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-.*)?$/.exec(v);
    if (major === null || sub === null || minor === null) {
      const err = new Error(`Invalid version string (${v})!`);
      logger.error(err);
      throw err;
    }
  
    return {
      major,
      sub,
      minor,
    };
  }