Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .claude/dependency-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
11 changes: 10 additions & 1 deletion test/invariants/udx-native-floor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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')
})
Loading