semver.scalingo.com
semver.scalingo.com is a plaintext and JSON webservice that tracks all available versions of:
It also supports Scalingo Stacks for nginx
, php
and composer
:
- nginx-scalingo-18
- nginx-scalingo-20
- php-scalingo-18
- php-scalingo-20
- composer-scalingo-18
- composer-scalingo-20
It uses that version info to resolve semver range queries.
This project if a fork of github.com/heroku/semver.io.
Scalingo Semver uses a simple and short module system to pull version data from a variety of sources. Pull requests are welcome!
Usage
Command-line
curl https://semver.scalingo.com/node/stable
0.10.33
curl https://semver.scalingo.com/node/unstable
0.11.14
curl https://semver.scalingo.com/node/resolve/0.8.x
0.8.28
curl https://semver.scalingo.com/nginx/stable
1.6.2
In the browser
There are CORS-friendly HTTP endpoints for each source with the whole kit and caboodle:
- semver.scalingo.com/node.json
- semver.scalingo.com/iojs.json
- semver.scalingo.com/npm.json
- semver.scalingo.com/yarn.json
- semver.scalingo.com/nginx.json
- semver.scalingo.com/mongodb.json
- semver.scalingo.com/php.json
The response is something like:
{
"stable": "0.10.22",
"unstable": "0.11.8",
"all": [
"0.8.6",
"...",
"0.11.9"
]
}
Ranges
semver.scalingo.com supports any range that node-semver can parse.
For example:
- /node/resolve/0.10.x
- /node/resolve/>=0.11.5
- /node/resolve/~0.10.15
- /node/resolve/>0.4
- /node/resolve/>=0.8.5 <=0.8.14
These named routes are also provided for convenience (for each source):
Links
Development Environment
Install project dependencies
docker-compose run --rm web yarn install
Run the service
docker-compose up