vercel / hyper-site

The official website for the Hyper terminal

Home Page:https://hyper.is

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display version number on website

MartinMuzatko opened this issue · comments

From vercel/hyper#3153:

It would be nice to see the latest official version of hyper on the website near the download buttons.

Maybe it would be nice to also note what release channel is on which version.

As already mentioned in the other issue, the version number (latest/prerelease) can be obtained via the github api or if there is a build setup - during buildtime you can pass env vars maybe

response = await fetch('https://api.github.com/repos/zeit/hyper/releases')
releases = await response.json()
latestStable = releases.find(release => !release.prerelease)
console.log(latestStable.tag_name)

Hi @MartinMuzatko

Is this what you were talking about?

latest-version

Yes :) that would be nice

I submitted a pull request for the issue :)

@timneutkens @MartinMuzatko @oguzzkilic Shouldn't this issue be closed?

The PR is closed but the website is not refreshed. Is this possible?

image

I've asked @timothyis to deploy the site 🙏

Sorry for the delay, I just got to deploying, it should now be live!

Apologies again, but I'm re-opening this. It seems to be 500ing after a few minutes of being aliased for some reason 😓

I have submitted a fix for the 500 error, which spawned from the GitHub rate limit #105

So little changes can do so much harm 😨
Hope everything is okay now!

commented

We should be back to consistently showing the latest stable version on the website now. Thanks!