fix(security): update runtime baseline and vulnerable dependencies
Require patched Node.js releases and refresh affected application and build dependencies. Align installation requirements, startup checks, and release workflows with the security baseline.
This commit is contained in:
30 files changed
+420
-342
No files matched your search
@@ -1,9 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
const SUPPORTED_NODE_RANGE = '>=24';
|
||||
const SUPPORTED_NODE_RANGE = '^24.22.1 || >=26.12.1';
|
||||
|
||||
function parseNodeVersion(version) {
|
||||
const match = /^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(version);
|
||||
const match = /^(\d+)\.(\d+)\.(\d+)(?:\+[0-9A-Za-z.-]+)?$/.exec(version);
|
||||
return match ? match.slice(1, 4).map(Number) : null;
|
||||
}
|
||||
|
||||
@@ -11,8 +11,10 @@ function isSupportedNodeVersion(version) {
|
||||
const actual = parseNodeVersion(version);
|
||||
if (!actual) return false;
|
||||
|
||||
const [major] = actual;
|
||||
return major >= 24;
|
||||
const [major, minor, patch] = actual;
|
||||
if (major === 24) return minor > 22 || (minor === 22 && patch >= 1);
|
||||
if (major === 26) return minor > 12 || (minor === 12 && patch >= 1);
|
||||
return major > 26;
|
||||
}
|
||||
|
||||
if (require.main === module && !isSupportedNodeVersion(process.versions.node)) {
|
||||
|
||||
@@ -8,7 +8,7 @@ if [[ -x "./node" ]]; then
|
||||
else
|
||||
NODE_BIN="$(command -v node || true)"
|
||||
if [[ -z "$NODE_BIN" ]]; then
|
||||
echo "error: 'node' not found on PATH and no bundled ./node; install Node.js 24+." >&2
|
||||
echo "error: 'node' not found on PATH and no bundled ./node; install Node.js 24.22.1 (24.x) or >=26.12.1." >&2
|
||||
exit 127
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"main": "index.mjs",
|
||||
"description": "SnowLuma runtime distribution manifest: ships into dist/ (launcher.bat, package.json, native/*.dll, native/*.node). All native bindings ship as standalone `.node` files in `dist/native/` — loaded via `process.dlopen()` / `createRequire().require()` from inside the bundle. There are intentionally NO runtime npm dependencies; production artifacts are self-contained.",
|
||||
"engines": {
|
||||
"node": ">=24"
|
||||
"node": "^24.22.1 || >=26.12.1"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user