diff --git a/.claude/dependency-updates.md b/.claude/dependency-updates.md index 45b407ea..7c567e98 100644 --- a/.claude/dependency-updates.md +++ b/.claude/dependency-updates.md @@ -40,6 +40,16 @@ tree current. Read this before reviewing a Renovate PR or running a manual sweep variant is still open there (#308), so it moves one minor at a time. Patches on the 6.36 line still flow. Raise only after a Linux runner proves a newer version green. **This rule does not cover `lockFileMaintenance`** — see below. + - `udx-native` — not a Renovate rule but an `overrides` entry that points at a tarball of one + commit of our fork (`ok/udx-native`, prebuilt for all six platforms). It is the registry's + 1.22.x with libudx main plus two changes to BBR: a window budget and a microsecond minimum + round trip. The registry build keeps its window too small on a path with a short round trip + and stalls for ten seconds under a busy sender (holepunchto/libudx#342, which has the + measurements). Upstream plans the same in three steps (libudx #344, #328, then a window + floor). Drop the override when a udx-native release carries all three **and** measures level + on the Mac-as-sender Wi-Fi case, where #344 alone stayed at half the fork's rate. + `test/invariants/udx-native-floor.test.js` fails if a lock refresh puts the registry package + back. - **`lockFileMaintenance` bypasses every `packageRules` version cap.** It performs no per-package lookup: it deletes the lock and lets npm re-resolve the whole tree against the ranges in `package.json`, so `allowedVersions` never runs. A cap that lives only in `renovate.json` diff --git a/CHANGELOG.md b/CHANGELOG.md index ee4a6837..c7b2d6ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,10 @@ changes do not appear here. - **Large files are ready to share in about a third of the time.** Mirall now uses more than one processor core to prepare a file of 8 MB or more, so the wait before a big share becomes available is much shorter. +- **Large transfers are faster and steadier.** Mirall now keeps more data + in flight on fast connections. On a fast Wi-Fi network downloads ran about + a third faster in our tests, and the pauses of around ten seconds that + could slow a long transfer no longer appeared. - **Icons look more consistent.** All icons now share one line weight, and the header's three controls have the same size and style. The empty space screen no longer shows the drag-and-drop illustration. diff --git a/package-lock.json b/package-lock.json index 76534ef5..3ec89694 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16378,9 +16378,9 @@ } }, "node_modules/udx-native": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/udx-native/-/udx-native-1.22.1.tgz", - "integrity": "sha512-PZFCXyLWB3YeNc9Jd+HAWHNSJzmsDHc/llj/dEYwoCNE8z/8vm4dtXpFkch8qO5NzpxQerjbJu333D5B95ZjiA==", + "version": "1.22.2", + "resolved": "https://github.com/ok/udx-native/archive/85f636b4139db4fbed7bfe4c2b44fe54e519767c.tar.gz", + "integrity": "sha512-VXUr34S2FBTgI1QCMrRonct55g3kB8NWyE7VDnIk4+i5bhFLoCfclNNAaL4DECN1ihMORHxO4qGDdpct1h3CXg==", "license": "Apache-2.0", "dependencies": { "b4a": "^1.5.0", diff --git a/package.json b/package.json index 86eafea1..1a7ea77f 100644 --- a/package.json +++ b/package.json @@ -122,6 +122,7 @@ "z32": "^1.1.0" }, "overrides": { - "hyperdht": "~6.36.0" + "hyperdht": "~6.36.0", + "udx-native": "https://github.com/ok/udx-native/archive/85f636b4139db4fbed7bfe4c2b44fe54e519767c.tar.gz" } } diff --git a/test/invariants/udx-native-floor.test.js b/test/invariants/udx-native-floor.test.js index 7822a528..7179b098 100644 --- a/test/invariants/udx-native-floor.test.js +++ b/test/invariants/udx-native-floor.test.js @@ -8,7 +8,7 @@ const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..') // Every peer connection rides on udx-native. From 1.22.0 it bundles a libudx that raises its packet // size past the 1200-byte base and recovers a lost retransmission without waiting out its one-second // minimum RTO; below that, a lossy Wi-Fi path stalls a transfer for whole seconds at a time. -// udx-native reaches us only through hyperdht's range, so the lockfile alone decides what ships. +// No direct dependency names udx-native, so the lockfile decides what ships. const FLOOR = [1, 22, 0] const atLeast = (version, floor) => { @@ -27,3 +27,12 @@ test('REGRESSION (FIX-740: transfers stalled for seconds at a time on a lossy Wi const below = locked.filter(([, entry]) => !atLeast(entry.version, FLOOR)).map(([location, entry]) => `${location}@${entry.version}`) t.alike(below, [], `every udx-native in the lockfile is at least ${FLOOR.join('.')}`) }) + +// The registry's udx-native sizes its BBR window too small for a path with a short round trip +// (holepunchto/libudx#342), so the app ships a build of it with a larger window, pinned by commit in +// `overrides`. A lockfile refresh that resolves the registry package again undoes that silently. +test('the lockfile resolves udx-native to the build pinned in overrides', (t) => { + const pinned = JSON.parse(readFileSync(path.join(ROOT, 'package.json'), 'utf8')).overrides['udx-native'] + t.ok(/\/archive\/[0-9a-f]{40}\.tar\.gz$/.test(pinned), 'the override names one commit') + t.alike(locked.map(([, entry]) => entry.resolved), [pinned], 'the one locked udx-native is the pinned build') +})