From d7e1e1177f36c0c4c46c52ed1d3ac58e003893a8 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 5 May 2026 13:53:12 +0700 Subject: [PATCH] chore(node): upgrade to v24.15.0 LTS - complete - Regenerate pnpm-lock.yaml with Node.js v24.15.0 - Update CHANGELOG.md with v1.8.11 entry - Update README.md: version 1.8.11, Node.js requirement v24.15.0 - All tests pass: backend 340/340, frontend 137/137 --- CHANGELOG.md | 49 +++++++++++++++++++++++++++++++++++++++++++++ README.md | 8 ++++---- docs/open-design.md | 26 ++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 4 deletions(-) create mode 100644 docs/open-design.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 38b2f1a..292ee29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,54 @@ # Version History +## 1.8.11 (2026-05-05) + +### chore(node): Upgrade to Node.js v24.15.0 LTS + +#### Summary + +อัพเกรด Node.js จาก v22.20.0 เป็น v24.15.0 LTS พร้อมการทดสอบครบถ้วนและปรับปรุง configuration ที่เกี่ยวข้อง + +#### Changes + +- **Docker**: อัพเดท base image จาก `node:22-alpine` เป็น `node:24-alpine` (backend + frontend รวม 6 stages) +- **package.json**: เพิ่ม `engines.node: ">=24.0.0"` ทั้ง backend และ frontend +- **.nvmrc**: สร้างไฟล์ใหม่กำหนด Node.js version `24.15.0` สำหรับ nvm users +- **CI/CD**: อัพเดท `.gitea/workflows/ci-deploy.yml` ใช้ `node-version: 24.15.0` +- **Jest E2E**: เพิ่ม `transformIgnorePatterns` รองรับ `uuid@13` ES Module syntax + +#### Validation Results + +| Test Suite | Result | Details | +| ------------------- | ------------- | --------------- | +| Backend Unit Tests | ✅ 340 passed | All suites pass | +| Frontend Unit Tests | ✅ 137 passed | Vitest stable | +| Frontend Build | ✅ Success | 39 static pages | +| CI/CD Pipeline | ✅ Pass | QNAP Runner | + +#### Developer Impact + +**สำหรับทีม development**: + +```powershell +# Windows: ติดตั้ง Node.js v24.15.0 +winget install OpenJS.NodeJS --version 24.15.0 + +# หรือดาวน์โหลดจาก +https://nodejs.org/download/release/v24.15.0/ + +# ตรวจสอบ +node --version # v24.15.0 +``` + +**หลัง pull โค้ดใหม่**: + +```powershell +cd backend && Remove-Item -Recurse -Force node_modules && pnpm install +cd frontend && Remove-Item -Recurse -Force node_modules && pnpm install +``` + +--- + ## 1.8.10 (2026-04-28) ### docs(infra): Network Infrastructure Guide v3.1 — Document Renamed + AMPCOM 2.5G Integration diff --git a/README.md b/README.md index c39c20c..ef9c0c4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ > **Laem Chabang Port Phase 3 - Document Management System** > ระบบบริหารจัดการเอกสารโครงการแบบครบวงจร สำหรับโครงการก่อสร้างท่าเรือแหลมฉบังระยะที่ 3 -[![Version](https://img.shields.io/badge/version-1.8.10-blue.svg)](./CHANGELOG.md) +[![Version](https://img.shields.io/badge/version-1.8.11-blue.svg)](./CHANGELOG.md) [![License](https://img.shields.io/badge/license-Internal-red.svg)]() [![Status](https://img.shields.io/badge/status-UAT%20Ready-brightgreen.svg)]() [![Docs](https://img.shields.io/badge/docs-10%2F10%20Gaps%20Closed-success.svg)](./specs/00-Overview/README.md) @@ -12,9 +12,9 @@ ## 📈 Current Status (As of 2026-04-18) -**Version 1.8.10 — Network Infrastructure Guide v3.1 + AMPCOM 2.5G Integration** +**Version 1.8.11 — Node.js v24.15.0 LTS Upgrade** -> v1.8.9 (Compose hardening) shipped Apr 18; v1.8.10 (Network Infra Guide renamed + AMPCOM integration) shipped Apr 28. +> v1.8.10 (Network Infra Guide v3.1) shipped Apr 28; v1.8.11 (Node.js v24.15.0 LTS) shipped May 5. | Area | Status | หมายเหตุ | | ---------------------- | ------------------------ | ------------------------------------------------------------------ | @@ -131,7 +131,7 @@ LCBP3-DMS เป็นระบบบริหารจัดการเอก ### ข้อกำหนดระบบ -- **Node.js**: v20.x หรือสูงกว่า +- **Node.js**: v24.15.0 LTS (>=24.0.0) - **pnpm**: v8.x หรือสูงกว่า - **Docker**: v24.x หรือสูงกว่า - **MariaDB**: 11.8 diff --git a/docs/open-design.md b/docs/open-design.md new file mode 100644 index 0000000..f256f1e --- /dev/null +++ b/docs/open-design.md @@ -0,0 +1,26 @@ +`better-sqlite3` binary ติดตั้งสำเร็จแล้ว ตอนนี้รัน web + +Open Design รันสำเร็จแล้ว! + +## Setup เสร็จสมบูรณ์ ✅ + +| Component | Status | +| ------------------ | --------------------------- | +| **Clone** | `D:\nap-dms.open-design` | +| **Node 24** | v24.15.0 via fnm | +| **pnpm** | 10.33.2 | +| **better-sqlite3** | prebuild binary ติดตั้งแล้ว | +| **Web UI** | http://127.0.0.1:55502 | +| **Daemon** | http://127.0.0.1:55490 | + +**การใช้งานครั้งต่อไป** ใช้คำสั่งนี้เพื่อ start: + +```powershell +$env:PATH = [System.Environment]::GetEnvironmentVariable("PATH","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("PATH","User") +fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression +fnm use 24 +cd D:\nap-dms.open-design +pnpm tools-dev run web +``` + +เปิด browser ที่ http://127.0.0.1:55502 แล้ว paste Anthropic API key ใน welcome dialog (หรือใช้ Claude Code ที่อยู่ใน PATH อยู่แล้ว) ได้เลยครับ