#Electron version repository similar to https://nodejs.org/dist/index.json

44 messages · Page 1 of 1 (latest)

severe quail
#

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

severe quail
#

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)

waxen hollow
#

I'm curious, why do you need this?

severe quail
#

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

severe quail
#

These last links are brilliant, thank you!

waxen hollow
#

It's the links in the docs 😄

severe quail
#

Looks like I misunderstood the API

severe quail
waxen hollow
#

Ah, I meant in the GitHub docs

#

But I'm glad if it's what you were looking for

severe quail
#

Actually now that I looked at the JSON output it only goes as far as Electron 32 😦

waxen hollow
#

hmm no

severe quail
#

I mean earlier versions

#

So if I am loking for 31, 30, 29 etc

waxen hollow
#

look at the API

#

there is pagination

#

default per_page is 30

severe quail
#

You are correct of course but it looks like it will be alot more work than the Node.js endpoint

waxen hollow
severe quail
#

Yep you are of course correct I should have looked at docs closer

waxen hollow
#

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

severe quail
#

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!

waxen hollow
#

(I used an arbitary number, but I think the max per_page value is 100 )

severe quail
#

oh, I will test some more

#

Does not look like tags support ?per_page

waxen hollow
#

yes it does

severe quail
#

to an extent but putting a larger number does not yield more results

waxen hollow
#

max 100

#

as I said

#

you gotta use page if you want the rest

severe quail
#

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

severe quail