fix(deps): override node-forge to 1.4.x and raise the undici floor
node-forge 1.4.0 (GHSA-86w9-cpqp-85rv, <=1.4.0) is pulled by @expo/cli and @expo/code-signing-certificates; 1.4.1 is now published, so a version-scoped floor "node-forge@^1.0.0": "^1.4.1" resolves the single copy to 1.4.2. undici 6.29.0 sits under five advisories fixed in 6.29.1; the existing @expo/cli scoped override moves from ^6.28.1 to ^6.29.1. The smoke test guards both floors (undici >= 6.29.1, node-forge 1.x >= 1.4.1). Only the two lock entries change; the Android bundle is byte-identical. Fixes #123 Fixes #170 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b641298656
commit
f3c8c07994
3 changed files with 28 additions and 10 deletions
12
package-lock.json
generated
12
package-lock.json
generated
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue