diff --git a/diffr-ts/README.md b/diffr-ts/README.md index 48a361b32..7256802e6 100644 --- a/diffr-ts/README.md +++ b/diffr-ts/README.md @@ -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. @@ -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: diff --git a/diffr-ts/package.json b/diffr-ts/package.json index be100ae6e..d15c95fbc 100644 --- a/diffr-ts/package.json +++ b/diffr-ts/package.json @@ -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", diff --git a/diffr-ts/pins.json b/diffr-ts/pins.json index 8fda5462d..de2c1fd15 100644 --- a/diffr-ts/pins.json +++ b/diffr-ts/pins.json @@ -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" } } diff --git a/diffr-ts/src/version.test.ts b/diffr-ts/src/version.test.ts index 4bc617de2..e87e32561 100644 --- a/diffr-ts/src/version.test.ts +++ b/diffr-ts/src/version.test.ts @@ -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}$/); });