Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Node 4.0.0-rc.1 not detected #42

Closed
mgol opened this issue Sep 5, 2015 · 7 comments
Closed

Node 4.0.0-rc.1 not detected #42

mgol opened this issue Sep 5, 2015 · 7 comments

Comments

@mgol
Copy link
Contributor

mgol commented Sep 5, 2015

Node.js >=4 pre-releases are kept in different directories than the release ones. For example Node.js 4.0.0-rc.1 is kept under https://nodejs.org/download/rc/. This makes http://semver.io/node.json not detect it and still claim 0.12.7 is the latest version, including unstable ones.

@mgol
Copy link
Contributor Author

mgol commented Sep 5, 2015

It seems the currently used http://nodejs.org/dist/ is mostly kept as legacy, everything is under https://nodejs.org/download/release/ now. Also, note that the latter URL is https-only.

@Binarytales
Copy link

I've created a pull request that aims to resolve this issue #43

@hunterloftis
Copy link
Contributor

Closing stale issues, please ping me to reopen if this is still a problem.

@mgol
Copy link
Contributor Author

mgol commented Jan 31, 2017

This is still an issue. There's no support for pre-releases of Node.js 4 & newer in semver.io.

@hunterloftis
Copy link
Contributor

Any thoughts on an API change that would make sense for exposing pre-releases?

@hunterloftis hunterloftis reopened this Jan 31, 2017
@mgol
Copy link
Contributor Author

mgol commented Jan 31, 2017

The current way of getting the Node version list is not ideal: it downloads the legacy https://nodejs.org/dist/ page, parses the HTML and converts it to a list - way too hacky. A proper solution would be to change that to reading https://nodejs.org/download/release/index.json and getting the list out of it (filtering out unstable versions as they are still there for Node.js 0.x). Unstable versions should then be composed from the filtered ones in https://nodejs.org/download/release/index.json and all entries in https://nodejs.org/download/rc/index.json. If betas get their home in the future (I don't see anything beta-related at https://nodejs.org/download/ and I don't think supporting nightlies is needed) this would just be a question of reading one more file.

As for the semver.io side of things, I'd expect https://semver.io/node.json to return all the version in the all field and the latest of them in the unstable field.

@edmorley
Copy link
Member

edmorley commented Aug 4, 2022

This project + the semver.io site which runs it has been deprecated for some time, and due to be switched off soon - so it should no longer be used.

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants