@dev.fast/diffr
v0.1.7
Published
diffr's NDJSON wire contract, validators, and release binary fetcher
Readme
@dev.fast/diffr
TypeScript types, zod validators, and a binary fetcher for diffr's NDJSON protocol. The package version matches the diffr release.
import { decodeStructuralDiffEvent } from "@dev.fast/diffr";
const event = decodeStructuralDiffEvent(line);npx --package @dev.fast/[email protected] diffr-fetch --into ./bin --requiredSupports macOS arm64, macOS x64, Linux arm64, and Linux x64. --check verifies an existing install without
network access. Downloads warn on network failure unless --required; invalid
hashes or archives always fail.
Wire changes
Keep these files in sync:
| Files (from repo root) | Check |
|---|---|
| src/protocol/mod.rs, src/pairing.rs, diffr-ts/src/contract.ts | Contract tests against the binary; Rust version check |
| docs/streaming.md | Review against the wire format |
| tui/packages/hunk/src/diffr/wire.ts (v3 only) | TUI fixture tests |
| Review's packages/review-protocol/package.json and packages/review/package.json | Exact package version pins |
Release
After tagging the matching Rust release and building with cargo build --locked,
run from diffr-ts. New pins select the CLI-only release archives; older pins
continue to use the full archives:
bun install --frozen-lockfile
npm run pin
bun run typecheck && bun test
npm publish --access public