Compatibility and Deprecation Policy
What stays the same when you upgrade Hegemony, and how much notice you get before something you rely on goes away.
Hegemony uses semantic versioning: MAJOR.MINOR.PATCH.
- Patch releases (
1.2.3→1.2.4) fix bugs and security problems. - Minor releases (
1.2.4→1.3.0) add features. They do not break what this page covers. - Major releases (
1.x→2.0.0) are the only releases that may remove or change something this page covers, and only after it was deprecated.
What the promise covers
Within one major version, an upgrade keeps these working as they did:
| Interface | What stays compatible |
|---|---|
REST API (application programming interface), as published in apps/api/openapi.json, except the /internal/* routes | Routes, methods, query parameters, request fields and response fields keep their names, types and meaning. A request that worked keeps working. |
Settings: the HEGEMONY_* environment variables in the environment variable reference | A setting keeps its name, type and meaning. A renamed setting keeps its old name as an alias. |
| Flow definitions | A flow saved, exported or committed to Git by one release loads and runs on every later release of the same major version. |
| Configuration exchange bundles | A bundle exported by one release imports into every later release of the same major version. See Configuration Exchange. |
| Database | Every later release of the same major version upgrades the database in place with its migrations, also when you skip releases in between. |
Compatible changes can happen in any minor release, so write clients and scripts that accept them:
- The API gains routes, optional parameters, optional request fields and new response fields.
- An enumerated value (a status, a type or a kind, for example) gains new values.
- The order of fields in a response, and of items in an unsorted list, can change.
- A setting is added, with a default that keeps the earlier behaviour.
What it does not cover
- The web interface: its pages, routes and layout can change in any release.
- The
/internal/*API routes, which only the worker and the scheduler call. - The database schema itself. Use the API, not the tables.
- Python modules inside the platform, and the text of log lines and error messages. Match on HTTP status codes and documented error fields, not on message text.
- Features that their documentation marks as experimental. None is marked so today.
- Downgrades. A database migration is not undone by installing an older release. Back up the database before you upgrade.
- The plugin packages (
hegemony-step-pluginsand the others) and their software development kits (SDKs). They have their own version numbers, and each release lists the plugin releases it was built with inhegemony-release.json.
Deprecation
Before an interface covered above is removed or changed in an incompatible way, it is deprecated first:
- Marked. A deprecated API route, parameter or field is marked
deprecatedin the published OpenAPI document, and its description names what replaces it. A deprecated setting is listed as a deprecated alias in the environment variable reference. - Announced. The release notes of the release that deprecates it say what is deprecated, what to use instead, and from which release it may be gone.
- Kept. It keeps working for at least 6 months and at least one minor release after the release that deprecated it.
- Removed only in a major release. Each major release's notes list what it removed and how to move off it.
Exceptions
- Security. When a vulnerability cannot be fixed without breaking a covered interface, the fix ships in a minor or patch release anyway. The release notes and the security advisory say what changed and why, and how to adapt. The same holds when a default changes to a safer one: the notes say how to restore the old behaviour where that is still possible.
- Undocumented behaviour. Behaviour that contradicts the documentation or the OpenAPI document is a bug, and fixing it is not a breaking change.
Upgrading across a major version
Upgrade to the newest release of your current major version first, and move off everything its release notes list as deprecated. Then upgrade to the next major version, following its release notes. Do not skip a major version.
For how long each version receives security fixes, see the Security Policy.