diff --git a/desktop/src-tauri/Cargo.lock b/desktop/src-tauri/Cargo.lock index d828ecab..e95817be 100644 --- a/desktop/src-tauri/Cargo.lock +++ b/desktop/src-tauri/Cargo.lock @@ -1840,7 +1840,7 @@ dependencies = [ [[package]] name = "kaisho-desktop" -version = "2.5.0" +version = "2.5.1" dependencies = [ "ab_glyph", "embed_plist", diff --git a/frontend/src/utils/changelog.ts b/frontend/src/utils/changelog.ts index 0409050a..5249868a 100644 --- a/frontend/src/utils/changelog.ts +++ b/frontend/src/utils/changelog.ts @@ -66,10 +66,17 @@ export function parseChangelog( const versionMatch = line.match(/^## (.+)/); if (versionMatch) { flush(); - current = { - version: versionMatch[1].trim(), - items: [], - }; + const version = versionMatch[1].trim(); + // ``Unreleased`` is a staging area in CHANGELOG.md + // for entries waiting on the next bump-version run; + // it must not surface in the What's New dialog (it + // would show up as "What's New Unreleased" and steal + // the slot the real latest release should occupy). + if (/^unreleased$/i.test(version)) { + current = null; + continue; + } + current = { version, items: [] }; entries.push(current); continue; } @@ -82,6 +89,19 @@ export function parseChangelog( continue; } + // A top-level ``- `` line starts a new item. The + // leading dash is dropped because the dialog renders + // its own bullet glyph in the outer ``