feedback1 integrate: version 0.1.1 and CHANGELOG.md

- package.json, package-lock.json and APP_VERSION (title screen, server banner, /healthz) at 0.1.1
- CHANGELOG.md (Simplified Chinese): the player-visible fixes of 0.1.1 by area, the reports checked and found not
  to be bugs, and 0.1.0; linked from the README's 文档 table; README / DEPLOY name the current version
- version.test.js checks the CHANGELOG heading and the README badge
This commit is contained in:
sganggs committed 2026-10-03 08:22:31 +08:00
1 parent c7f49b4895
commit 308444ef29
9 files changed
+96 -11

No files matched your search

+11
View File
@@ -22,6 +22,17 @@ test('one release version: package.json, package-lock.json and APP_VERSION', ()
assert.equal(pkg.private, true, 'never published to npm');
});
test('CHANGELOG.md opens with the release version, and the README links it', () => {
const log = read('CHANGELOG.md');
const first = log.match(/^## (\d+\.\d+\.\d+) — (\d{4}-\d{2}-\d{2})/m);
assert.ok(first, 'a "## x.y.z — date" heading');
assert.equal(first[1], APP_VERSION, 'the newest entry is the current version');
assert.match(log, /^## 0\.1\.0 — 2026-10-02/m, 'the first public release stays listed');
const readme = read('README.md');
assert.match(readme, /\[CHANGELOG\.md\]\(CHANGELOG\.md\)/);
assert.match(readme, new RegExp(`badge/version-${APP_VERSION.replace(/\./g, '\\.')}-`), 'the README badge');
});
test('the release version is what players see', () => {
assert.match(read('public/js/screens/title.js'), /v\$\{APP_VERSION\}/, 'title screen footer');
assert.ok(!/PROTOCOL v1/.test(read('public/js/screens/title.js')), 'no protocol number posing as a version');