Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/lib/afterlight-releases.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,33 @@ const TAG_PATTERN = /^[0-9A-Za-z][0-9A-Za-z._-]*$/;
const GITHUB_UTC_TIMESTAMP_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/;

export const PINNED_FALLBACK = Object.freeze({
tag_name: 'v1.0.0-rc.1',
name: 'AFTERLIGHT 1.0.0-rc.1',
html_url: 'https://github.com/Luskish/afterlight-pack/releases/tag/v1.0.0-rc.1',
published_at: '2026-08-12T12:00:00Z',
tag_name: 'v1.0.0-rc.2',
name: 'AFTERLIGHT 1.0.0-rc.2',
html_url: 'https://github.com/Luskish/afterlight-pack/releases/tag/v1.0.0-rc.2',
published_at: '2026-08-13T23:50:25Z',
draft: false,
prerelease: true,
fallback: true,
assets: Object.freeze([
Object.freeze({
name: 'AFTERLIGHT-prism-instance.zip',
browser_download_url: 'https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.1/AFTERLIGHT-prism-instance.zip',
browser_download_url: 'https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.2/AFTERLIGHT-prism-instance.zip',
}),
Object.freeze({
name: 'AFTERLIGHT-curseforge.zip',
browser_download_url: 'https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.1/AFTERLIGHT-curseforge.zip',
browser_download_url: 'https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.2/AFTERLIGHT-curseforge.zip',
}),
Object.freeze({
name: 'AFTERLIGHT.mrpack',
browser_download_url: 'https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.1/AFTERLIGHT.mrpack',
browser_download_url: 'https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.2/AFTERLIGHT.mrpack',
}),
Object.freeze({
name: 'SHA256SUMS',
browser_download_url: 'https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.1/SHA256SUMS',
browser_download_url: 'https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.2/SHA256SUMS',
}),
Object.freeze({
name: 'release-metadata.json',
browser_download_url: 'https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.1/release-metadata.json',
browser_download_url: 'https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.2/release-metadata.json',
}),
]),
});
Expand Down
2 changes: 1 addition & 1 deletion tests/afterlight-downloads.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ test('renders the pinned portal state when live inventory fails', async () => {
const state = app._instance.setupState;
assert.equal(state.signalState, 'fallback');
assert.equal(state.stateTitle, 'Pinned release active');
assert.equal(state.release.tag_name, 'v1.0.0-rc.1');
assert.equal(state.release.tag_name, 'v1.0.0-rc.2');
assert.match(state.notice, /could not be reached/i);
assert.equal(state.launcherBays.filter((bay) => bay.asset).length, 3);
} finally {
Expand Down
20 changes: 10 additions & 10 deletions tests/fixtures/static-site-contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,21 @@
{ "tag": "div", "classes": ["signal-system", "signal-acquiring"] },
{ "tag": "h1", "text": "AFTERLIGHT", "attributes": { "id": "afterlight-title" } },
{ "tag": "h2", "text": "Acquiring release inventory", "attributes": { "id": "release-state-title" } },
{ "tag": "dd", "text": "v1.0.0-rc.1" },
{ "tag": "dd", "text": "Aug 12, 2026" },
{ "tag": "dd", "text": "v1.0.0-rc.2" },
{ "tag": "dd", "text": "Aug 13, 2026" },
{ "tag": "dd", "text": "Prerelease" },
{
"tag": "a",
"text": "SHA256SUMS",
"attributes": {
"href": "https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.1/SHA256SUMS"
"href": "https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.2/SHA256SUMS"
}
},
{
"tag": "a",
"text": "Release notes",
"attributes": {
"href": "https://github.com/Luskish/afterlight-pack/releases/tag/v1.0.0-rc.1",
"href": "https://github.com/Luskish/afterlight-pack/releases/tag/v1.0.0-rc.2",
"target": "_blank"
},
"attributeTokens": { "rel": ["noreferrer", "noopener"] }
Expand All @@ -99,26 +99,26 @@
"text": "Download Prism ZIP ↓",
"classes": ["download-action"],
"attributes": {
"href": "https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.1/AFTERLIGHT-prism-instance.zip",
"aria-label": "Download Prism ZIP for v1.0.0-rc.1"
"href": "https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.2/AFTERLIGHT-prism-instance.zip",
"aria-label": "Download Prism ZIP for v1.0.0-rc.2"
}
},
{
"tag": "a",
"text": "Download CurseForge ZIP ↓",
"classes": ["download-action"],
"attributes": {
"href": "https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.1/AFTERLIGHT-curseforge.zip",
"aria-label": "Download CurseForge ZIP for v1.0.0-rc.1"
"href": "https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.2/AFTERLIGHT-curseforge.zip",
"aria-label": "Download CurseForge ZIP for v1.0.0-rc.2"
}
},
{
"tag": "a",
"text": "Download mrpack ↓",
"classes": ["download-action"],
"attributes": {
"href": "https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.1/AFTERLIGHT.mrpack",
"aria-label": "Download mrpack for v1.0.0-rc.1"
"href": "https://github.com/Luskish/afterlight-pack/releases/download/v1.0.0-rc.2/AFTERLIGHT.mrpack",
"aria-label": "Download mrpack for v1.0.0-rc.2"
}
},
{ "tag": "code", "text": "104.128.55.166" }
Expand Down