Repository navigation
v0.18.6
v0.18.6 — 2026-11-10
Update your devices for incremental journal append/tail sync, lazy blob
downloads, Copy-on-Write local blob storage, and automatic local blob garbage
collection; running daemons switch over the first time the updated bdrive
runs. Update self-hosted hubs for POST /api/p/<id>/store/append,
prefix-verified journal tail reads, chunked-file streaming without duplicate
whole-blob backfill, and net-delta journal quota accounting. Older clients and
hubs keep syncing through the existing full-journal PUT/GET fallback; update
both sides before relying on chunked sync for files larger than 4 MiB.
- Incremental journal append and prefix-verified tail sync. Devices push only newly committed journal lines to
POST /api/p/<id>/store/append(withprev_sizeandprev_sha256verification, torn-tail newline repair, strict JSONL and monotonic sequence validation, and conditional storage CAS) and pull only appended bytes viaGET /api/p/<id>/store/object?offset=&prefix_sha256=(X-Bdrive-Tail-Offset), falling back to full-objectPUT/GETagainst older peers or on prefix mismatch. The S3 backend now implements conditional writes (If-Match/If-None-Match) alongside GCS andfile://. (#346) - Lazy blob pulls, Copy-on-Write local storage, and local orphan-blob garbage collection. Sync cycles download only blobs needed for the current live file tree, concurrent conflict copies, and 3-way merge bases instead of every historical version ever written to the project. On macOS (APFS
clonefile) and Linux (FICLONE), local blob capture and materialization use Copy-on-Write clones with0400read-only blob permissions, and the daemon periodically prunes unreferenced local blobs while preserving all blobs referenced by active worktrees, local journals, and state caches. (#346) - Base-aware 3-way merge and chunked-file deduplication on the hub. Local edits record the prior blob digest in
Op.Base(base,omitempty) so concurrent edits merge against their true common ancestor, with line-boundary-safe merging for.jsonand.jsonlfiles. On the hub, reading a chunked file (manifests/<sha>) streams reassembled chunks through a reference-counted spool without writing a second fullblobs/<sha>copy back to object storage, and quota accounting bills only net journal growth and once per manifest. (#346) - Cross-journal and co-editing concurrency hardening. Browser writes (
upload,restore,remove,undorun) serialize journal updates underrs.upmuand re-verify cross-journal state and target base conditions (existence, absence, and symlink targets) before committing. Shared journal fetches and chunk reassembly detach from individual request cancellation, and co-editing room shutdown snapshots retain conditional CAS onydoc/head/<path>. (#346)