Repository navigation
v0.3.0
Highlights
- New
VerifiedFileclient — a general-purpose range-verified file reader (not just PMTiles).VerifiedSourceis now a thin pmtiles adapter over it. - New proof format for range reads — replaces the old CARv1-based map package format with a
dag-cbordescriptor ({proof}/root) plus a tree of binary meta/shard files. The anchor CID codec changes fromdag-pbtodag-cbor, and the oldmetadata.jsonbootstrap manifest is gone entirely. VerifiedSource/VerifiedFileAPI change:rootCid→cid, andsourcenow points directly at the file itself rather than a package directory; proofs default to{source}.proofsinstead of a siblingproofs/directory.VerifiedAssetproof format overhaul (MASL) — the old strict-CARv1/UnixFS DAG-walking proof is replaced with adag-cbormanifest bundle (raw content CIDs + a MASL-style resources map), read as an untrusted "bag of blocks" and verified lazily on first use rather than via a whole-body proof hash.- New
npm run packCLI (tools/pack.ts) — generates the descriptor + proof tree for a file (fixedandpmtilespublisher profiles, with zoom-shaped proof trees for PMTiles archives), plus apack assetssubcommand for MASL bundles. VerifiedAsset.stat()— new method returning{ size, contentType? }for a manifest entry.- Docs:
SPEC.mdfully rewritten around the new descriptor/shard-tree and MASL-CAR proof systems;README.mdupdated with new API examples and host requirements. - Examples and fixtures updated to the new anchor/CID scheme (
MAP_ANCHORinstead ofMAP_ROOT, etc.) — the previously hosted demo package is noted as incompatible with the new format until republished. - Bumped
maplibre-glexample dependency to 6.2.0; added@ipld/dag-cboras a dev dependency.
Breaking changes
VerifiedSource/VerifiedFileanchor CID codec changed (dag-pb→dag-cbor); old map packages and their root CIDs are incompatible.VerifiedAssetDAG/CARv1 proof anchor codec (car) is retired; new anchors userawordag-cbor(MASL manifest).rootCidoption renamed tocidacross the public API.source/proofsemantics changed:sourcenow targets the file directly, not a package base directory.
Full Changelog: v0.2.0...v0.3.0