Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 07 Aug 21:48
· 34 commits to main since this release
a43629c

Highlights

  • New VerifiedFile client — a general-purpose range-verified file reader (not just PMTiles). VerifiedSource is now a thin pmtiles adapter over it.
  • New proof format for range reads — replaces the old CARv1-based map package format with a dag-cbor descriptor ({proof}/root) plus a tree of binary meta/shard files. The anchor CID codec changes from dag-pb to dag-cbor, and the old metadata.json bootstrap manifest is gone entirely.
  • VerifiedSource/VerifiedFile API change: rootCid → cid, and source now points directly at the file itself rather than a package directory; proofs default to {source}.proofs instead of a sibling proofs/ directory.
  • VerifiedAsset proof format overhaul (MASL) — the old strict-CARv1/UnixFS DAG-walking proof is replaced with a dag-cbor manifest 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 pack CLI (tools/pack.ts) — generates the descriptor + proof tree for a file (fixed and pmtiles publisher profiles, with zoom-shaped proof trees for PMTiles archives), plus a pack assets subcommand for MASL bundles.
  • VerifiedAsset.stat() — new method returning { size, contentType? } for a manifest entry.
  • Docs: SPEC.md fully rewritten around the new descriptor/shard-tree and MASL-CAR proof systems; README.md updated with new API examples and host requirements.
  • Examples and fixtures updated to the new anchor/CID scheme (MAP_ANCHOR instead of MAP_ROOT, etc.) — the previously hosted demo package is noted as incompatible with the new format until republished.
  • Bumped maplibre-gl example dependency to 6.2.0; added @ipld/dag-cbor as a dev dependency.

Breaking changes

  • VerifiedSource/VerifiedFile anchor CID codec changed (dag-pb → dag-cbor); old map packages and their root CIDs are incompatible.
  • VerifiedAsset DAG/CARv1 proof anchor codec (car) is retired; new anchors use raw or dag-cbor (MASL manifest).
  • rootCid option renamed to cid across the public API.
  • source/proof semantics changed: source now targets the file directly, not a package base directory.

Full Changelog: v0.2.0...v0.3.0