package.jsontracks the true app version — it must matchnode scripts/resolve-version.mjson every merge tomain. Runnode scripts/sync-package-version.mjsafter shipping code and commit the result when the version changes.- Patch (micro, rightmost): bug fixes, docs, and any shipped change that is not a feature — use
fix:in commit/PR titles so patch bumps stay visible in history. - Minor (middle): new features or behavior changes — use
feat:in commit/PR titles so version history stays honest.
Displayed footer: Project6581 vX.Y.Z · Built … (UTC) from stamp-build.mjs. Cache-bust id is version+timestamp on module URLs.
Preset JSON schema version (v5 in presets) is unrelated to app semver.
App semver on main: v0.5.2 (#146 SID startup chip-model sync; v0.5.1 was showcase layer routing #145).
| Milestone | Shipped highlights (on main) |
|---|---|
| v0.2.0 | Triple SID engine cards, note routing, preset format v5, audio timing diagnostics |
| v0.3.0 | Per-engine LFO targets, live per-chip voice settings, WebKit browser smoke fixes |
| After v0.3.0 floor | Layer factory presets, rainbow meters, layer routing fixes (commit-derived semver only) |
package.jsonholds the current released version (kept in sync viasync-package-version.mjs).- The baseline is the newest first-parent commit that changed the
versioninpackage.json(version-policy.mjsversionBaseline()). It is derived from history, not stored, so squash and rebase merges cannot orphan it. resolveVersion()walks first-parent commits after the baseline and applies:feat:(or PR squash title) → minor, patch reset to 0- Any other counted commit → patch
feat!:/BREAKING CHANGE:→ minor while0.x(major at1.0+)chore: release …/Merge branch …baseline-only → no bump
- CI (test.yml) fails if
package.json≠ resolved.
Check resolved version:
node scripts/resolve-version.mjsSync after your changes:
node scripts/sync-package-version.mjs
# commit package.json when updated (amending it into your change is simplest)Cut a named milestone (optional label; still uses sync):
node scripts/bump-release.mjs 0.4.0
# same as sync but sets an explicit target floor — prefer sync for day-to-day- Use
feat:for user-visible features and behavior changes (minor). - Use
fix:,refactor:, etc., or untyped titles for everything else (patch). - Reserve 1.0.0 for an explicit stability decision.
- Agent notes: agents/versioning-policy.md.