From 23880521d94f56a7ca6963a7616f77a5bac9a552 Mon Sep 17 00:00:00 2001 From: KoreX Labs Date: Mon, 14 Sep 2026 10:54:14 -0300 Subject: [PATCH] fix(api): align health version with package metadata --- api-v3/src/version.ts | 2 +- api-v3/test/unit/f4-health-metadata.test.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api-v3/src/version.ts b/api-v3/src/version.ts index f72dcb1..e67ed4b 100644 --- a/api-v3/src/version.ts +++ b/api-v3/src/version.ts @@ -1,2 +1,2 @@ -export const API_VERSION = '0.29.0-1'; +export const API_VERSION = '0.29.0-2'; export const API_PHASE = 'F6.1'; \ No newline at end of file diff --git a/api-v3/test/unit/f4-health-metadata.test.ts b/api-v3/test/unit/f4-health-metadata.test.ts index 4584574..062fdfd 100644 --- a/api-v3/test/unit/f4-health-metadata.test.ts +++ b/api-v3/test/unit/f4-health-metadata.test.ts @@ -1,8 +1,12 @@ import assert from 'node:assert/strict'; import test from 'node:test'; +import { readFileSync } from 'node:fs'; +import { resolve } from 'node:path'; import { API_PHASE, API_VERSION } from '../../src/version'; test('health metadata reports the current F6.1 release', () => { assert.equal(API_PHASE, 'F6.1'); - assert.equal(API_VERSION, '0.29.0-1'); + const pkg = JSON.parse(readFileSync(resolve(process.cwd(), 'package.json'), 'utf8')) as { version: string }; + assert.equal(API_VERSION, pkg.version); + assert.equal(API_VERSION, '0.29.0-2'); }); \ No newline at end of file