Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(release): correct the runbook against what a release actually changes

Yudhi Armyndharisb2cad8e692a3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 044699d94..1b21f8600 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -57,7 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Promoting a participant who is already an admin, or demoting one who is already not, answers `200` instead of `500` on the whatsapp-web.js engine; the install-time patch skips a participant whose status already matches, making both operations idempotent.
- The JavaScript, Python, Go and Java SDKs list `group.join_request`, an event the gateway has accepted and dispatched all along, so a typed client can subscribe to it without casting past its own type.
- A webhook's `lastTriggeredAt` is published as a nullable date-time string instead of an object, so a client generated from the contract no longer rejects both of the values the field actually carries. The response itself is unchanged.
-- The group-list and status routes no longer appear twice in the OpenAPI contract under different path-parameter names; the parameters are now `sessionId` and `id`, and the URLs are unchanged.
+- The group-list and status routes no longer appear twice in the OpenAPI contract under different path-parameter names, each key carrying one verb of the same URL. `GET /sessions/{id}/groups` is now `{sessionId}`, and the status read and delete both take `{id}` in place of `{contactId}` and `{statusId}`. The URLs are unchanged and no request that worked before behaves differently, but a client generated from the contract needs regenerating: the two half-endpoints collapse into one and the parameter names move with them. The status media route keeps `{statusId}`, since nothing collided there.
- A bare `@SkipThrottle()` no longer leaves a route throttled: `/api/metrics` and the `/api/health*` probes were rate-limited despite being documented as exempt. All four are also `@Public()` and now carry no limit — rate-limit them at your proxy if they are internet-facing.
- The chat-media retention purge and orphan sweep now run while `CHAT_MEDIA_ARCHIVE_ENABLED` is off, which previously stopped both. Consequence for such a deployment: the sweep now deletes any file under `chat-media/` that no message row references, once unreferenced for `CHAT_MEDIA_ORPHAN_GRACE_MS` (default 1h).
- A plugin whose code went missing is recoverable through the API again: reinstalling now writes over its surviving `ctx.storage` directory instead of answering `409`, and uninstalling a known-but-unloaded id no longer answers `404`.
diff --git a/docs/15-project-roadmap.md b/docs/15-project-roadmap.md
index c722c9d67..412b0cb6a 100644
--- a/docs/15-project-roadmap.md
+++ b/docs/15-project-roadmap.md
@@ -655,7 +655,10 @@ version bump lands as a single commit on `main`, and pushing the tag hands every
### The release commit
-Exactly five files change. Nothing else belongs in this commit.
+Five files change on a patch. A MINOR changes six: `SECURITY.md` names the supported minor in its
+prose, its table row and its `< X.Y` lower bound, and `npm run check:versions` fails without it — a
+gate that runs on the pushed tag, so omitting it means deleting the tag and cutting again. Nothing
+else belongs in this commit.
```bash
npm version --no-git-tag-version <version> # package.json + package-lock.json
@@ -663,9 +666,11 @@ npm run openapi:export # openapi.json info.version follow
```
Then bump `appVersion` in `charts/openwa/Chart.yaml` to the same version — the chart defaults its
-image tag to `appVersion`, so a stale one deploys a tag that does not exist yet. Leave the chart's
-own `version:` alone; it tracks packaging changes on its own cadence. `npm run check:versions`
-fails if `appVersion` and `package.json` disagree.
+image tag to `appVersion`, so a stale one deploys a tag that does not exist yet. Bump the chart's own
+`version:` by a patch in the same commit: Helm identifies a chart by that field alone, so leaving it
+while the templates change makes two different charts answer to one name in `helm list` and
+`helm history`. Every release from v0.13.0 onward has bumped it in lockstep, and nothing gates it —
+`npm run check:versions` reads only `appVersion`, and the `chart` job lints behaviour, not versions.
Then in `CHANGELOG.md`, insert the new heading directly under the retained, now-empty
`## [Unreleased]` — the accumulated entries fall under it by position:
@@ -693,7 +698,8 @@ cd dashboard && npm run lint && npm run typecheck && npm run i18n:check && npm r
```
```bash
-git add package.json package-lock.json openapi.json CHANGELOG.md charts/openwa/Chart.yaml
+# SECURITY.md only on a MINOR; the chart's own `version:` bumps a patch alongside `appVersion`.
+git add package.json package-lock.json openapi.json CHANGELOG.md charts/openwa/Chart.yaml SECURITY.md
git commit -m "chore(release): v<version>"
git tag -a v<version> -m "v<version>"
git push origin main --follow-tags