electron / fiddle-core

Run fiddles from anywhere, on any Electron release
MIT License
13 stars 16 forks source link

Expose Release Info From Versions #64

Closed dsanders11 closed 1 year ago

dsanders11 commented 1 year ago

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.

Example return value:

{
  "version": "24.0.0-nightly.20230203",
  "date": "2023-02-03",
  "node": "18.13.0",
  "v8": "11.1.269-electron.0",
  "uv": "1.44.2",
  "zlib": "1.2.13",
  "openssl": "1.1.1",
  "modules": "114",
  "chrome": "111.0.5560.0",
  "files": [
    "darwin-x64",
    "darwin-x64-symbols",
    "linux-ia32",
    "linux-ia32-symbols",
    "linux-x64",
    "linux-x64-symbols",
    "win32-ia32",
    "win32-ia32-symbols",
    "win32-x64",
    "win32-x64-symbols"
  ]
}
continuous-auth[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: