Beta testers had to find prerelease assets on GitHub by hand. The download page now carries a Stable/Beta switch, with stable staying the default and the canonical URL. The channel lives in the URL (?channel=beta) rather than client state so maintainers can link someone straight to it. That link outlives the beta it was shared for, so the switch only renders while the newest prerelease leads stable on its core version, and a stale ?channel=beta falls back to stable instead of serving a promoted version twice. "What's new" deep-links the minor group anchor (/changelog#release-0.3), not the exact entry: promotion rewrites the -beta.N entry in place, so that anchor dies while the group survives — and the group is the stable-to-beta diff a beta downloader came to read. A version missing from the bundled changelog links plain /changelog rather than a dead anchor, which covers the window between a tag going public and the site redeploying. Homebrew, the app stores, and the web app have no beta, so the Beta view drops those rows instead of showing inert placeholders.
8 lines
320 B
TypeScript
8 lines
320 B
TypeScript
import { createServerFn } from "@tanstack/react-start";
|
|
import { getWebsiteCacheContext } from "./cloudflare-cache";
|
|
import { getReleaseChannels } from "./latest-release";
|
|
|
|
export const getLatestRelease = createServerFn({ method: "GET" }).handler(async () => {
|
|
return getReleaseChannels(getWebsiteCacheContext());
|
|
});
|