Extend BaseVersions with a getReleaseInfo(version: SemOrStr) method to expose release info from releases.json. BaseVersions.setVersions should handle an array of objects with the full release info, or just the version like it currently does, for convenience.
This would be used by electron/fiddle to get the Node.js version for typings and help close the loop on electron/fiddle#1222. All the info is already in electron/fiddle-core, so let's expose it from the releases cache so we don't have to fetch releases.json separately for that use case.
Extend
BaseVersions
with agetReleaseInfo(version: SemOrStr)
method to expose release info fromreleases.json
.BaseVersions.setVersions
should handle an array of objects with the full release info, or just the version like it currently does, for convenience.This would be used by
electron/fiddle
to get the Node.js version for typings and help close the loop on electron/fiddle#1222. All the info is already inelectron/fiddle-core
, so let's expose it from the releases cache so we don't have to fetchreleases.json
separately for that use case.Example return value: