Add /diff/:package/:version page
wojtekmach opened this issue · comments
Currently we only support /diff/:package/:version1..:version2
, that is, we create the diff between two versions.
This new endpoint would compare the given version against the immediately preceding version which we'd grab by using Hex HTTP API.
Another option is to have a link that lands you on https://diff.hex.pm/ with package name and "to" version already filled in. So you can just select the "from" version (default is the preceding version) and then go.
Oh, that's even better.
What about https://diff.hex.pm/?package=...&to=...
in that case?
Good call. Closing in favour of #76.