UpgradingVersioning policy
Versioning policy
How HydroGo numbers releases, what a version bump may break, and how database migrations are handled.
HydroGo follows Semantic Versioning. The version is injected at build time and shown by hydro version.
| Release | May contain |
|---|---|
Patch (0.2.1) | Bug fixes only. |
Minor (0.3.0) while the major is 0 | New features and changes to the API or config. Each such change is listed under "Changed" or "Removed" in the changelog with what to do. |
Major (1.0.0 and later) | Breaking API changes only come with a new major version. |
Pre-release (0.3.0-rc.1) | Published as a GitHub pre-release; does not move the latest image tag. |
Migrations
- Database migrations are forward-only and never edited after release, so any 0.x database can be upgraded to the next release by running the new binary's
hydro migrate. - Every migration ships SQL for SQLite, PostgreSQL and MySQL.
- A migration directory is never deleted: a database that applied it refuses to start without it.
API stability
The public API contract is kept in the repository under docs/api/. CI compares every change against the committed baseline, so accidental breaking changes are caught before release. Your frontends can pin the contract by generating a client from it with hydro sdk generate.
Security fixes
Fixes land in the latest release and the one before it. Stay within one release of the latest. See Reporting vulnerabilities.
Read
CHANGELOG.md before every minor upgrade. The Unreleased section shows what is coming.