fix(deps): override node-forge to 1.4.x and raise the undici floor #174

Merged
maximus merged 1 commit from issue-123-170-node-forge-undici into master 2026-10-29 01:29:52 +00:00
3 changed files with 28 additions and 10 deletions

12
package-lock.json generated
View file

@ -8949,9 +8949,9 @@
}
},
"node_modules/node-forge": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz",
"integrity": "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==",
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.2.tgz",
"integrity": "sha512-rRtAR5XLJ8gCKd9du4qrKAsgCG1ObGP4gLeNJMa4vYSeq4bmBMOJk5IHkrviBV0q7uoAJlVd8HEQYQSVUb4FGQ==",
"license": "(BSD-3-Clause OR GPL-2.0)",
"engines": {
"node": ">= 6.13.0"
@ -11936,9 +11936,9 @@
}
},
"node_modules/undici": {
"version": "6.29.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz",
"integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==",
"version": "6.29.1",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz",
"integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==",
"license": "MIT",
"engines": {
"node": ">=18.17"

View file

@ -81,10 +81,11 @@
"brace-expansion@^5.0.0": "^5.0.12",
"@babel/core": "^7.29.6",
"browserslist": "^4.28.7",
"node-forge@^1.0.0": "^1.4.1",
"@expo/cli": {
"compression": "^1.8.2",
"ws": "^8.20.1",
"undici": "^6.28.1",
"undici": "^6.29.1",
"tar": "^7.5.21"
},
"react-devtools-core": {

View file

@ -497,14 +497,31 @@ check('every installed brace-expansion copy is at or above its major floor', ()
);
});
check('every installed undici copy is >= 6.28.1', () => {
// --- Override floors (#123, #170) ---
// undici: scoped to @expo/cli; 6.29.1 closes five advisories (#170).
// node-forge: version-scoped to major 1, a single copy shared by @expo/cli and
// @expo/code-signing-certificates; 1.4.1 leaves GHSA-86w9 (<=1.4.0, #123).
// Any other major is unexpected and must fail loudly.
check('every installed undici copy is >= 6.29.1', () => {
const copies = installedCopies('undici');
assert.ok(copies.length > 0, 'undici is not installed');
const strays = copies.filter((c) => !versionAtLeast(c.version, '6.28.1'));
const strays = copies.filter((c) => !versionAtLeast(c.version, '6.29.1'));
assert.deepEqual(
strays.map((c) => `${c.version} at ${path.relative(ROOT, c.dir)}`),
[],
'undici must be >= 6.28.1'
'undici must be >= 6.29.1'
);
});
check('every installed node-forge copy is 1.x and >= 1.4.1', () => {
const copies = installedCopies('node-forge');
assert.ok(copies.length > 0, 'node-forge is not installed');
const strays = copies.filter((c) => majorOf(c.version) !== '1' || !versionAtLeast(c.version, '1.4.1'));
assert.deepEqual(
strays.map((c) => `${c.version} at ${path.relative(ROOT, c.dir)}`),
[],
'node-forge must be 1.x and >= 1.4.1'
);
});