[PR #1130] [MERGED] Website: read 0.2 tags (v0.2.0, launcher@0.2.0) as newer than the dated ones #3076

Closed
opened 2026-11-02 16:01:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1130
Author: @ludovic111
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ludovic111

Base: main ← Head: fix/website-semver-tags


📝 Commits (2)

  • fde383c Website: read 0.2 tags (v0.2.0, launcher@0.2.0) as newer than the dated ones
  • 0ee0367 Website: the fallback releases link matches launcher@ and launcher-v tags

📊 Changes

6 files changed (+105 additions, -21 deletions)

View changed files

📝 website/build.mjs (+9 -8)
📝 website/package.json (+2 -1)
📝 website/src/main.js (+13 -11)
📝 website/src/releases.js (+1 -1)
➕ website/src/versions.js (+59 -0)
➕ website/src/versions.test.mjs (+21 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Part 6 of 7 of the switch to 0.2 (design: #1126, docs/versioning.md). Safe to merge now: the site shows nothing about 0.2 until a 0.2 release exists (it is data-driven: versions, notes and download links come from GitHub's releases).

What

The site took only vYYYY.MM.DD… as a game release and launcher-v… as a launcher, so after 0.2 it would keep offering launcher 0.16 and showing the last dated patch notes.

  • website/src/versions.js: the tag test and order (every 0.2 tag above every tag from before, semver within, a pre-release before its release), the same rule as the launcher, horizon-server and tools/release_train.py. Shared by build.mjs (baked) and main.js (live), fingerprinted like the other modules.
  • The download button takes the newest launcher by tag; the patch notes the newest stable game releases by tag; the launcher lookup falls back to launcher@ tags before launcher-v.
  • npm test (node --test src/) runs the new tests.

Release notes and site wording after the switch

  • Release titles: Horizon 0.2.3: <what changed> and Horizon launcher 0.2.1 (#1129). The site's "Latest release" shows 0.2.3; the download line says launcher 0.2.1. Both come from the data, so no copy change is needed for them.
  • The pages that say 0.2 is out (FAQ "What do the version numbers mean?", Install's "an old launcher updates twice", hosting.md's one command for old servers) are in the go-day switch PR, a draft.
  • The static fallback links (releases?q=launcher-v, used only before the page's script runs) still list the launcher-v releases; the newest of those is the bridge, which updates itself to 0.2, so they stay correct.

Proof

node --test src/                 2 tests pass (0.2 vs dated order, launcher tags, pre-releases)
node build.mjs                   built: 3 game releases baked, launcher launcher-v0.16.0; versions.<hash>.js emitted and imported
headless Chromium on the built page (live GitHub data): download meta "For macOS on Apple Silicon · launcher 0.16.0 · 7 MB",
  latest release "2026.10.19.15", download link launcher-v0.16.0's .dmg, no console errors

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1130 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/website-semver-tags` --- ### 📝 Commits (2) - [`fde383c`](https://github.com/horizon-rust/horizon/commit/fde383c6e8460b29814a37a5b667df48e2cea192) Website: read 0.2 tags (v0.2.0, launcher@0.2.0) as newer than the dated ones - [`0ee0367`](https://github.com/horizon-rust/horizon/commit/0ee03671ba4a465d97a4d6e5158762214c5597f2) Website: the fallback releases link matches launcher@ and launcher-v tags ### 📊 Changes **6 files changed** (+105 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `website/build.mjs` (+9 -8) 📝 `website/package.json` (+2 -1) 📝 `website/src/main.js` (+13 -11) 📝 `website/src/releases.js` (+1 -1) ➕ `website/src/versions.js` (+59 -0) ➕ `website/src/versions.test.mjs` (+21 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. **Part 6 of 7 of the switch to 0.2** (design: #1126, docs/versioning.md). Safe to merge now: the site shows nothing about 0.2 until a 0.2 release exists (it is data-driven: versions, notes and download links come from GitHub's releases). ## What The site took only `vYYYY.MM.DD…` as a game release and `launcher-v…` as a launcher, so after 0.2 it would keep offering launcher 0.16 and showing the last dated patch notes. - `website/src/versions.js`: the tag test and order (every 0.2 tag above every tag from before, semver within, a pre-release before its release), the same rule as the launcher, `horizon-server` and `tools/release_train.py`. Shared by `build.mjs` (baked) and `main.js` (live), fingerprinted like the other modules. - The download button takes the newest launcher by tag; the patch notes the newest stable game releases by tag; the launcher lookup falls back to `launcher@` tags before `launcher-v`. - `npm test` (`node --test src/`) runs the new tests. ## Release notes and site wording after the switch - Release titles: `Horizon 0.2.3: <what changed>` and `Horizon launcher 0.2.1` (#1129). The site's "Latest release" shows `0.2.3`; the download line says `launcher 0.2.1`. Both come from the data, so no copy change is needed for them. - The pages that say 0.2 is out (FAQ "What do the version numbers mean?", Install's "an old launcher updates twice", hosting.md's one command for old servers) are in the go-day switch PR, a draft. - The static fallback links (`releases?q=launcher-v`, used only before the page's script runs) still list the `launcher-v` releases; the newest of those is the bridge, which updates itself to 0.2, so they stay correct. ## Proof ``` node --test src/ 2 tests pass (0.2 vs dated order, launcher tags, pre-releases) node build.mjs built: 3 game releases baked, launcher launcher-v0.16.0; versions.<hash>.js emitted and imported headless Chromium on the built page (live GitHub data): download meta "For macOS on Apple Silicon · launcher 0.16.0 · 7 MB", latest release "2026.10.19.15", download link launcher-v0.16.0's .dmg, no console errors ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:01:20 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3076
No description provided.