Skip to content
This repository was archived by the owner on Oct 9, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions diffr-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ const event = decodeStructuralDiffEvent(line);
```

```sh
npx --package @dev.fast/diffr@0.1.5 diffr-fetch --into ./bin --required
npx --package @dev.fast/diffr@0.1.6 diffr-fetch --into ./bin --required
```

Supports macOS arm64, macOS x64, and Linux x64. `--check` verifies an existing install without
Supports 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.

Expand All @@ -29,9 +29,6 @@ Keep these files in sync:

## Release

Linux ARM64 fetch support requires a release containing an `aarch64-unknown-linux-gnu`
archive and regenerated pins; the bundled 0.1.5 pins do not include it.

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:
Expand Down
2 changes: 1 addition & 1 deletion diffr-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dev.fast/diffr",
"version": "0.1.5",
"version": "0.1.6",
"description": "diffr's NDJSON wire contract, validators, and release binary fetcher",
"repository": "https://github.com/devdotfast/diffr",
"license": "MIT",
Expand Down
9 changes: 5 additions & 4 deletions diffr-ts/pins.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"version": "0.1.5",
"version": "0.1.6",
"artifact": "diffr-cli",
"sha256": {
"aarch64-apple-darwin": "e6ba8c73a91a24db61347d736c283265ba6ffe7f236a980aa13fd5b81afb19e5",
"x86_64-apple-darwin": "020814d26d1572fec136b3f0fd43e1fcc1b6fe4be284f5fc5348b8bad744025d",
"x86_64-unknown-linux-gnu": "e7fd08cc6350aed7c8e5bd10fc7b6f9ae249b931e74d09017879b2dcbf07fc65"
"aarch64-apple-darwin": "f877369dee2679c66b623d5a71edfb590d148e6162fc7ebb517dc0ce894a8d7c",
"x86_64-apple-darwin": "e411028dd08ee86b9eca372c6d155be2e391b9db2390e2afadf483f5f3d79f76",
"x86_64-unknown-linux-gnu": "0ff17c0e08b401ff079be3643edcf1fe5aa1585ca1339ec1463c69f90e7571ef",
"aarch64-unknown-linux-gnu": "bdc96a3b48e831f775897244eadebac20bccd31c69c777cb3c7b253ce6fa6508"
}
}
4 changes: 2 additions & 2 deletions diffr-ts/src/version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ test("STRUCTURAL_DIFF_BASE_WIRE_VERSION matches src/protocol/mod.rs", () => {
expect(Number(match![1])).toBe(STRUCTURAL_DIFF_BASE_WIRE_VERSION);
});

test("release pins match the package version and cover both supported targets", () => {
test("release pins match the package version and cover all supported targets", () => {
const root = join(repositoryRoot, "diffr-ts");
const pkg = JSON.parse(readFileSync(join(root, "package.json"), "utf8"));
const pins = JSON.parse(readFileSync(join(root, "pins.json"), "utf8"));
expect(pins.version).toBe(pkg.version);
expect(Object.keys(pins.sha256).sort()).toEqual([
"aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu",
"aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu",
]);
for (const hash of Object.values(pins.sha256)) expect(hash).toMatch(/^[a-f0-9]{64}$/);
});
Loading