From a37513fb61248134c5135e7a80354c682fd36263 Mon Sep 17 00:00:00 2001 From: pavlov346346-source Date: Tue, 8 Sep 2026 02:39:16 +0300 Subject: [PATCH] Enforce release version consistency --- tests/release-check.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/release-check.mjs b/tests/release-check.mjs index bb91604..94ef35b 100644 --- a/tests/release-check.mjs +++ b/tests/release-check.mjs @@ -2,8 +2,12 @@ import fs from 'node:fs'; import path from 'node:path'; const root=process.cwd(), pub=path.join(root,'public'); const read=p=>fs.readFileSync(path.join(pub,p),'utf8'); +const readRoot=p=>fs.readFileSync(path.join(root,p),'utf8'); let bad=0;const check=(v,m)=>{console.log(`${v?'OK':'FAIL'}: ${m}`);if(!v)bad++}; const index=read('index.html'),runtime=read('app-runtime.js'),sw=read('service-worker.js'),css=read('core/stability-v1760.css'),performance=read('core/performance.js'),ops=read('core/ops-ux-v1762.js'),hotfix=read('core/hotfix-v1763.js'),ux=read('core/ux-fixes-v1764.js'); +const pkg=JSON.parse(readRoot('package.json')); +const lock=JSON.parse(readRoot('package-lock.json')); +const releaseManifest=JSON.parse(readRoot('docs/release-manifest.json')); check(index.includes('core/stability-v1760.css'),'mobile stability stylesheet loaded'); check(css.includes('overflow-x:hidden')&&css.includes('.cats'),'mobile overflow guard present'); check(!index.includes('offer-gallery-data.js'),'blocking Base64 gallery absent'); @@ -31,4 +35,9 @@ check(ux.includes('persistOfferTemplate')&&ux.includes('clientOfferTemplateId')& check(ux.includes('sun-v1764-menu-icon')&&ux.includes('fs.existsSync(path.join(root,`docs/releases/V${v}-CHANGES.txt`))),'release notes exist for v17.6.2 through v17.6.4'); if(bad)process.exit(1);