diff --git a/.husky/pre-commit b/.husky/pre-commit index 2312dc587f..4f3fd73344 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,2 @@ npx lint-staged +node scripts/check-docs-sync.mjs diff --git a/CHANGELOG.md b/CHANGELOG.md index 17c2024cfe..118b76cb2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## [Unreleased] + ## [2.4.1] - 2026-03-13 ### 🐛 Fix diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 10d21db238..378acc556a 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.1.0 info: title: OmniRoute API - version: 2.3.6 + version: 2.4.1 description: | OmniRoute is a local-first AI API proxy router. It provides an OpenAI-compatible endpoint that routes requests to multiple AI providers with load balancing, diff --git a/package-lock.json b/package-lock.json index e278e5e9a6..2e0d4f000f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "omniroute", - "version": "2.4.0", + "version": "2.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "omniroute", - "version": "2.4.0", + "version": "2.4.1", "hasInstallScript": true, "license": "MIT", "workspaces": [ diff --git a/scripts/check-docs-sync.mjs b/scripts/check-docs-sync.mjs index 55d13cfdbf..b1f8982557 100644 --- a/scripts/check-docs-sync.mjs +++ b/scripts/check-docs-sync.mjs @@ -43,7 +43,7 @@ function extractOpenApiVersion(content) { } function extractChangelogSections(content) { - const headings = [...content.matchAll(/^##\s+\[([^\]]+)\](?:\s+—\s+.*)?$/gm)]; + const headings = [...content.matchAll(/^##\s+\[([^\]]+)\](?:\s+[-—–].*)?$/gm)]; return headings.map((match) => match[1]); }