findLatestRelease(versions, includePrereleases = false) {
    // Find the latest version string, if not found, throw NotFound.
    const versionStrings = versions
      .filter(
        version =>
          typeof version.version === 'string' ||
          version.version instanceof String,
      )
      .map(version => version.version)
    if (versionStrings.length < 1) {
      throw new NotFound({ prettyMessage: 'no released version found' })
    }

    let release = latest(versionStrings)
    if (!includePrereleases) {
      release = latest(versionStrings.filter(isStable)) || release
    }
    return versions.filter(version => version.version === release)[0]
  }
Find the object representation of the latest release.

@param {object[]} versions An array of object representing a version.
@param {boolean} includePrereleases Includes pre-release semver for the search.

@returns {object} The object of the latest version.
@throws {NotFound} Thrown if there is no item from the version array.