Files
StarPunk/docs/standards/versioning-strategy.md
T
PhilandClaude Opus 5.5 0716984958 docs: Bring all documentation up to date for v2.10.1
- architecture/: overview, technology stack, auth (OIDC + built-in
  IndieAuth), syndication (POSSE) rewritten; new database.md,
  deployment.md and indieweb-protocols.md; legacy stack marked historical
- decisions/: reconstructed ADR-060 and ADR-063; 31 status corrections
  (superseded auth ADRs, proposed -> accepted); INDEX rebuilt
- design/: reconstructed the v1.6.0 documents the webmention code cites;
  reports for 18 v2 releases without a design folder; INDEX rebuilt
- projectplan/: BACKLOG rewritten (shipped items removed, open issues from
  the reviews added); RELEASE.md for v2.0.0-v2.10.1; INDEX
- standards/: development setup (uv, tests, DEV_MODE), testing (CI test
  stage), git and release flow, versioning, coding standards, cookies
- README, CLAUDE.md, .env.example (every setting the code reads, with
  defaults) brought up to date
- 137 broken links repaired (old absolute paths, moved files); stale ADR
  references in code comments corrected (comments only)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 12:40:19 -07:00

76 lines
2.9 KiB
Markdown

# Versioning Strategy
**Status**: Active
**Last Updated**: 2026-11-03 (v2.10.1)
StarPunk uses [Semantic Versioning 2.0.0](https://semver.org/):
`MAJOR.MINOR.PATCH`, currently **2.10.1**. Every release is a git tag
`vX.Y.Z` and a `CHANGELOG.md` entry. Where the number is stored and how to
write the changelog entry is in
[version-implementation-guide.md](version-implementation-guide.md); the
release steps are in [git-branching-strategy.md](git-branching-strategy.md#release-process).
Background: [ADR-008](../decisions/ADR-008-versioning-strategy.md).
## What the number means
StarPunk is a single-user site, so "compatibility" means: can the owner
upgrade by changing the image tag, without editing configuration, losing
data, or breaking Micropub clients, feed readers and other sites that talk
to it?
**MAJOR**: the owner has to act, or something that worked stops working.
- A required setting is added, renamed or removed, or login changes
(v2.0.0: IndieLogin replaced by OIDC admin login, new `OIDC_*` settings)
- A public URL, feed or protocol endpoint goes away or changes behaviour
incompatibly
- Data has to be converted by hand
**MINOR**: new capability; upgrading needs no action.
- New features, post types, protocol support or crossposting targets
(v2.6.0 Threads, v2.9.0 bookmarks, v2.10.0 WebSub)
- New optional settings with safe defaults
- Changes to defaults that a spec review shows are needed for compliance
(v2.9.0: Micropub posts are only crossposted to targets the client asks
for). Call these out under **Changed** in the changelog
**PATCH**: fixes; nothing new to learn.
- Bug and security fixes (v2.8.1 migration lock, v2.10.1 WebSub hardening)
- Spec-compliance fixes that don't add features
- CI and build changes (v2.7.1)
A migration on its own doesn't decide the level: migrations run
automatically, so a PATCH may include one (v2.10.1 added migration 017).
What it changes decides the level. Any release with a migration needs a
database backup before deploying.
## Decision guide
1. Does upgrading require the owner to change configuration or data, or
break an existing client or URL? **MAJOR**
2. Otherwise, does it add something new (feature, endpoint, setting, post
type)? **MINOR**
3. Otherwise **PATCH**.
A MINOR resets PATCH to 0; a MAJOR resets both.
## Pre-releases
Release candidate tags `vX.Y.Z-rc.N` may be used to try a risky release
in production first (v1.x had several; the last was `v2.0.0-rc.1`). CI only
builds tags matching `vX.Y.Z`, so a release candidate image has to be built
by hand. `__version__` may carry the suffix (`"1.1.1-rc.2"`);
`__version_info__` holds the numbers only (`(1, 1, 1)`).
## Documentation-only changes
No version change. They are merged on a `docs/` branch without a tag.
## References
- [Semantic Versioning 2.0.0](https://semver.org/)
- [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- [ADR-008: Versioning strategy](../decisions/ADR-008-versioning-strategy.md)