OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-overlay commits / d1b22d1

port(0.3.0): module-level V2 aliases so subpath consumers are zero-touch
The package.json transitional subpaths (/protocol-v2, /overlay-v2) map to the renamed engine files, but those files export OverlayProtocol / HyperOverlay — NOT the V2 names — so `import { OverlayProtocolV2 } from "hyper-overlay/protocol-v2"` (pgh, hyper-deploy, pgh-sidecar) resolved to undefined. Added module-level aliases `export { OverlayProtocol as OverlayProtocolV2 }` / `{ HyperOverlay as HyperOverlayV2 }` (matching Ok index.js pattern) so those three consumers need ZERO changes against 0.3.0 — they ride the aliases + the kept /tree,/pointer,/ignore superset + getIndexMeta. Only pear-git-v3 (v1 path-facade, no alias possible) needed edits. Verified: subpath targets now export the V2 names; suite green (the lone red is the known zero-RTT multi-source fetch flake under load). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
d1b22d1ebbabeef3f7706da6a6d2e16c486c8271
by plankatron <fleeky@gmail.com> · 2026-07-11T20:20:20.000Z

Changed files (2) +10 -0

lib/overlay.js +5 -0
……@@ -415,3 +415,8 @@ async function hashFileOnDisk (diskPath, size) {
415415 for await (const buf of fs.createReadStream(diskPath)) hasher.update(buf)
416416 return hasher.digest()
417417}
418
419// Transitional alias for pre-0.3.0 subpath consumers that import
420// `{ HyperOverlayV2 } from 'hyper-overlay/overlay-v2'`. Same class — lets 0.3.0
421// land without touching those consumers.
422export { HyperOverlay as HyperOverlayV2 }
lib/protocol.js +5 -0
……@@ -1042,3 +1042,8 @@ export class OverlayProtocol {
10421042function fileExists (p) {
10431043 try { return fs.statSync(p).isFile() } catch { return false }
10441044}
1045
1046// Transitional alias for pre-0.3.0 subpath consumers that import
1047// `{ OverlayProtocolV2 } from 'hyper-overlay/protocol-v2'` (pgh, hyper-deploy,
1048// pgh-sidecar). Same class — lets 0.3.0 land without touching those consumers.
1049export { OverlayProtocol as OverlayProtocolV2 }