feat: update Node.js requirements to 22 LTS for ONNX compatibility

- Update package.json engines to require Node.js >=22.0.0
- Add .nvmrc file specifying Node.js 22
- Document Node.js version requirements in README
- Add warning about Node.js 24 ONNX runtime compatibility issues
- Provide clear guidance for production deployments

This addresses known crashes during inference operations on Node.js 24
while ensuring maximum stability with the latest LTS version.
This commit is contained in:
David Snelling 2025-08-28 16:05:14 -07:00
parent bb38cacb9b
commit fda327c7bc
3 changed files with 14 additions and 1 deletions

View file

@ -55,7 +55,7 @@
}
},
"engines": {
"node": ">=18.0.0"
"node": ">=22.0.0"
},
"scripts": {
"build": "npm run build:patterns:if-needed && tsc",