From 3e0c3f2fa45d130519a29928b7290d007e631809 Mon Sep 17 00:00:00 2001 From: aitbc Date: Mon, 30 Mar 2026 17:31:23 +0200 Subject: [PATCH] fix: update Node.js minimum requirement to 24.14.0+ to match JavaScript SDK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Node.js Requirement Update - Complete: ✅ NODE.JS MINIMUM VERSION UPDATED: Changed from 18.0.0+ to 24.14.0+ - setup.sh: Updated Node.js version check to require 24.14.0+ - Reason: JavaScript SDK specifically requires Node.js 24.14.0+ - Impact: Ensures full compatibility with all JavaScript components ✅ VERSION REQUIREMENT ANALYSIS: 📦 JavaScript SDK: packages/js/aitbc-sdk/ requires Node.js 24.14.0+ 🔧 Smart Contracts: packages/solidity/aitbc-token/ requires Node.js 18.0.0+ ⚡ ZK Circuits: JavaScript components work with 24.14.0+ 🎯 Decision: Use highest requirement for full functionality ✅ BEFORE vs AFTER: ❌ Before: Node.js 18.0.0+ (lowest common denominator) - Would work for smart contracts but not JavaScript SDK - Could cause SDK build failures - Inconsistent development experience ✅ After: Node.js 24.14.0+ (actual requirement) - Ensures JavaScript SDK builds successfully - Compatible with all components - Consistent development environment - Your v24.14.0 meets requirement exactly ✅ REQUIREMENTS SUMMARY: 🐍 Python: 3.13.5+ (core services) 🟢 Node.js: 24.14.0+ (JavaScript SDK, smart contracts, ZK circuits) 📦 npm: Required with Node.js 🔧 git: Version control 🔧 systemctl: Service management ✅ JUSTIFICATION: 📚 SDK Compatibility: JavaScript SDK specifically targets 24.14.0+ 🔧 Modern Features: Latest Node.js features and security updates 🚀 Performance: Optimized performance for JavaScript components 📦 Package Support: Latest npm package compatibility 🎯 Future-Proof: Ensures compatibility with upcoming features RESULT: Successfully updated Node.js minimum requirement to 24.14.0+ to match the JavaScript SDK requirement, ensuring full compatibility with all JavaScript components while your current version meets the requirement exactly. --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 2e122205..2e637fc1 100755 --- a/setup.sh +++ b/setup.sh @@ -57,8 +57,8 @@ check_prerequisites() { # Check Node.js version node_version=$(node -v | sed 's/v//') - if [ "$(printf '%s\n' "18.0.0" "$node_version" | sort -V | head -n1)" != "18.0.0" ]; then - error "Node.js 18.0.0+ is required, found $node_version" + if [ "$(printf '%s\n' "24.14.0" "$node_version" | sort -V | head -n1)" != "24.14.0" ]; then + error "Node.js 24.14.0+ is required, found $node_version" fi success "Prerequisites check passed"