fix: update Node.js minimum requirement to 24.14.0+ to match JavaScript SDK

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.
This commit is contained in:
2026-03-30 17:31:23 +02:00
parent 209eedbb32
commit 3e0c3f2fa4

View File

@@ -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"