Versioning
The repository ships two independently versioned products: the app (web and desktop share one version) and the API. Both follow Semantic Versioning 2.0.0 and keep a Keep a Changelog file.
| Product | Lives in | Tag format | Changelog | Version source |
|---|---|---|---|---|
| Web app | apps/web (Vite) |
vX.Y.Z |
CHANGELOG.md |
root and apps/web/package.json (shown in the app's About screen) |
| Desktop app | apps/desktop (Tauri) |
vX.Y.Z (shared with the web app) |
CHANGELOG.md |
apps/desktop/package.json, read by tauri.conf.json; the Rust crate stays 0.0.0 |
| Phone app | apps/mobile (Expo) |
vX.Y.Z (shared with the web app) |
CHANGELOG.md |
apps/mobile/package.json and app.json → expo.version (shown in Settings); set by npm run release, since the app is not an npm workspace |
| API | services/api (Go module) |
services/api/vX.Y.Z |
services/api/CHANGELOG.md |
the tag (stamped into the binary; GET /v1/version) |
Why the services/api/ prefix: Go resolves versions of a module in a subdirectory only from
tags prefixed with that directory (go get github.com/nibir404/puku-bot/services/api@v0.3.0
reads tag services/api/v0.3.0).
Before the monorepo layout (web v0.20.0) the API lived in /server and was tagged
server/vX.Y.Z up to server/v0.2.3. Those tags stay; npm run release:api continues the
version numbers from them.
What bumps what
| Change | Web | API |
|---|---|---|
| Breaking API change | — | major (and a new /v2 prefix; /v1 keeps working until announced removal) |
| New endpoint / field / feature | minor | minor |
| Database migration (additive) | — | minor |
| Bug fix, performance, docs-only that changes behaviour | patch | patch |
| Internal refactor, tests, CI | no release needed | no release needed |
While a product is 0.y.z, minor versions may include breaking changes, called out under
Changed / Removed in the changelog.
Cutting a release
Both release scripts refuse to run off main, with a dirty tree, behind origin, with an existing tag or with empty Unreleased notes.
Write the notes first under ## [Unreleased], then:
npm run release -- minor # web + desktop: vX.Y.Z, builds, pushes, GitHub Release
npm run release:api -- minor # API: services/api/vX.Y.Z, gofmt+vet+race tests, pushes, GitHub Release
# --dry-run to preview, --no-push to stay local
Both scripts refuse to run off main, with a dirty tree, behind origin, with an existing
tag, or with empty Unreleased notes. Tags are annotated. Pushing a services/api/v* tag makes CI
build and publish ghcr.io/nibir404/puku-bot-api:X.Y.Z (also :vX.Y.Z and :latest). Images before 0.2.4 were tagged :vX.Y.Z only.
Compatibility promise
/v1request and response shapes are only extended (new optional fields, new endpoints).- Error
codevalues are stable;detailtext may change. - Event types on
/v1/eventsare only added. - Database migrations are forward-only and additive within a major version.