Does Electron have any type of easily accessible repository where it would list all or at least latest version for a given Electron major version? Node.js has https://nodejs.org/dist/index.json that can be easily parsed.
I am trying to figure out how to get the latest released version of Electron given a major version for example given 29 resolve to 29.4.6
#Electron version repository similar to https://nodejs.org/dist/index.json
44 messages · Page 1 of 1 (latest)
Do you mean this?
I mean in a parsable format like JSON
Just to give some further explanation: I am looking for a way to determine the latest version of Electron using a given major version. In my example for Node.js I can parse JSON and determine latest version of Node.js by giving it a major version for example I can resolve 20 to 20.18.0 as latest version (at least at the time of this convo)
I'm curious, why do you need this?
And I think you could try GitHub API, assuming it's free for these kind of things:
https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28
For build runners so I can build and then test a native module by using latest version
Using your link would only work for a repo that you own
These last links are brilliant, thank you!
It's the links in the docs 😄
Looks like I misunderstood the API
They are? I was trying to look everywhere and must have missed it 🤦
Actually now that I looked at the JSON output it only goes as far as Electron 32 😦
You are correct of course but it looks like it will be alot more work than the Node.js endpoint
Looks pretty easy to me
https://api.github.com/repos/electron/electron/releases?per_page=120
Yep you are of course correct I should have looked at docs closer
I have not even really read the docs, I just looked at the param name
I don't know the limitation of this API, the data seem heavy
Yes but I would not be parsing it in a browser so should be fine, I will experiment and see what it can do. Thanks again!
(I used an arbitary number, but I think the max per_page value is 100 )
to an extent but putting a larger number does not yield more results
yes but looks like there are more targs than releases so even if data is heavier in releases I am able to get more results
yep, will be a pain in the neck 😄