Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs: stop the READMEs advertising hardcoded runtime versions

Yudhi Armyndharis56471d66940e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a0e5a931f..290f71aee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [Unreleased]
+
## [0.9.0] - 2026-07-18
### Added
diff --git a/README.md b/README.md
index 5038b91ab..6e81e7cdf 100644
--- a/README.md
+++ b/README.md
@@ -20,9 +20,9 @@
<img src="https://img.shields.io/github/package-json/v/rmyndharis/OpenWA?label=version&color=blue" alt="Version"/>
<img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"/>
<img src="https://img.shields.io/badge/node-22_LTS-brightgreen.svg" alt="Node"/>
- <img src="https://img.shields.io/badge/NestJS-11.x-red.svg" alt="NestJS"/>
+ <img src="https://img.shields.io/github/package-json/dependency-version/rmyndharis/OpenWA/@nestjs/core?label=NestJS&color=red" alt="NestJS"/>
<img src="https://img.shields.io/badge/docker-ready-blue.svg" alt="Docker"/>
- <img src="https://img.shields.io/badge/TypeScript-5.x-3178C6.svg" alt="TypeScript"/>
+ <img src="https://img.shields.io/github/package-json/dependency-version/rmyndharis/OpenWA/dev/typescript?label=TypeScript&color=3178C6" alt="TypeScript"/>
</p>
---
@@ -65,6 +65,7 @@ Built on a **pluggable architecture**, OpenWA lets you select database engines (
| Text Messages | ✅ | Send/receive text messages |
| Media Messages | ✅ | Images, videos, documents, audio |
| Message Reactions | ✅ | React to messages with emoji |
+| Message Editing | ✅ | Live `message.edited` events on both engines |
| Bulk Messaging | ✅ | Send to multiple recipients |
| Message Status | ✅ | Track delivery and read receipts |
@@ -154,10 +155,6 @@ openwa-api ──TCP 2375──▶ docker-proxy ──unix──▶ /var/run
Only the operations needed for container orchestration are enabled (`CONTAINERS`, `IMAGES`, `VOLUMES`, `INFO`, `PING`, `POST`, `DELETE`). The application connects via the `DOCKER_HOST=tcp://docker-proxy:2375` environment variable, which `DockerService` detects automatically.
----
-
-## 🔒 Security Architecture
-
### Non-root Container Execution
The production image never runs the Node.js process as root. On startup, the container follows this chain:
diff --git a/docs/README.md b/docs/README.md
index 2d12035f2..da84b248a 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -19,9 +19,9 @@
<img src="https://img.shields.io/github/package-json/v/rmyndharis/OpenWA?label=version&color=blue" alt="Version"/>
<img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"/>
<img src="https://img.shields.io/badge/node-22_LTS-brightgreen.svg" alt="Node"/>
- <img src="https://img.shields.io/badge/NestJS-11.x-red.svg" alt="NestJS"/>
+ <img src="https://img.shields.io/github/package-json/dependency-version/rmyndharis/OpenWA/@nestjs/core?label=NestJS&color=red" alt="NestJS"/>
<img src="https://img.shields.io/badge/docker-ready-blue.svg" alt="Docker"/>
- <img src="https://img.shields.io/badge/TypeScript-5.x-3178C6.svg" alt="TypeScript"/>
+ <img src="https://img.shields.io/github/package-json/dependency-version/rmyndharis/OpenWA/dev/typescript?label=TypeScript&color=3178C6" alt="TypeScript"/>
</p>
---
diff --git a/scripts/check-doc-versions.mjs b/scripts/check-doc-versions.mjs
index 697b1ba8f..545a80805 100644
--- a/scripts/check-doc-versions.mjs
+++ b/scripts/check-doc-versions.mjs
@@ -11,6 +11,10 @@
* package.json automatically — never a hardcoded `badge/version-x.y.z`.
* 2. src/config/swagger.config.ts must source the version from package.json — never `setVersion('x.y.z')`.
* 3. CHANGELOG.md must carry a `## [<current version>]` entry (the release notes exist).
+ * 4. The runtime/framework majors the READMEs advertise (Node, NestJS, TypeScript) must match
+ * package.json. The NestJS/TypeScript badges track it themselves via the shields
+ * `dependency-version` endpoint, but the Tech Stack table and the Node badge are plain prose —
+ * shields cannot read `engines.node` — so they are gated here instead.
*
* Run locally: `npm run check:versions`. Runs in CI (lint job).
*/
@@ -19,7 +23,8 @@ import { readFileSync } from 'node:fs';
const root = new URL('../', import.meta.url);
const read = (rel) => readFileSync(new URL(rel, root), 'utf8');
-const version = JSON.parse(read('package.json')).version;
+const pkg = JSON.parse(read('package.json'));
+const version = pkg.version;
const errors = [];
// 1) README badges must be dynamic, not a pinned `badge/version-x`.
@@ -39,6 +44,26 @@ if (!read('CHANGELOG.md').includes(`## [${version}]`)) {
errors.push(`CHANGELOG.md: missing a "## [${version}]" entry for the current package.json version — add the release notes before tagging.`);
}
+// 4) Runtime/framework majors advertised in the READMEs must match package.json.
+const majorOf = (range) => range?.match(/(\d+)/)?.[1];
+const stack = [
+ ['Node', majorOf(pkg.engines?.node), /node-(\d+)_LTS|Node\.js (\d+) LTS/g],
+ ['NestJS', majorOf(pkg.dependencies?.['@nestjs/core']), /NestJS[ -](\d+)\.x/g],
+ ['TypeScript', majorOf(pkg.devDependencies?.typescript), /TypeScript[ -](\d+)\.x/g],
+];
+for (const f of ['README.md', 'docs/README.md']) {
+ const text = read(f);
+ for (const [name, want, pattern] of stack) {
+ if (!want) continue;
+ for (const m of text.matchAll(pattern)) {
+ const found = m[1] ?? m[2];
+ if (found !== want) {
+ errors.push(`${f}: advertises ${name} ${found} but package.json declares ${want} — update the doc (or the dependency).`);
+ }
+ }
+ }
+}
+
if (errors.length) {
console.error(`\n✖ Version consistency check failed (package.json = ${version}):`);
for (const e of errors) console.error(` - ${e}`);