sujingshen on X, v0.1.2606 to v0.1.2762: the update sheet read "40 个版本"
for about 156 releases. The app keeps only the newest update.MostNotes
(40) and counted the list it kept, so the line named the cap, not the gap.
update.NotesBetweenTotal returns the count of every release in the range
beside the capped list. /api/update/notes and /api/whatsnew send it as
`total` when it is more than the list, and mergedNotes then reads
"156 releases · the newest 40 shown, v… – v…" (en, zh, zh-TW, ja, de).
Settings' What's new, where withWaiting puts pending releases first and
cuts again, sends no total, since that count was of the installed ones.
Run on mote at this tree: gofmt -l internal clean; GOOS=windows go vet
and GOOS=linux go vet -tags nogui of internal/gui and internal/update ok
(the cgo Linux vet needs gtk4/webkitgtk dev packages neither mote nor
magpie-desktop has); go test ./internal/update ok (new
TestNotesBetweenTotalPastTheCap: 56 releases keep 40 with total 56, 6
keep 6 with total 6); go test ./internal/gui ok except
TestMainWindowCorners, the macOS 27 red of #3949. GUI files in chromium
and webkit: update-notes-ask 16/16 (new: a list cut short says how many,
en and zh), whats-new 4/4 (new case: 156 in all), whats-new-range 12/12,
whats-new-failed 4/4, i18n-keys 4/4.
Not tried: a real update from an install 156 releases back.