@dev.fast/diffr 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,10 +9,10 @@ const event = decodeStructuralDiffEvent(line);
9
9
  ```
10
10
 
11
11
  ```sh
12
- npx --package @dev.fast/diffr@0.1.3 diffr-fetch --into ./bin --required
12
+ npx --package @dev.fast/diffr@0.1.5 diffr-fetch --into ./bin --required
13
13
  ```
14
14
 
15
- Supports macOS arm64 and Linux x64. `--check` verifies an existing install without
15
+ Supports macOS arm64, macOS x64, and Linux x64. `--check` verifies an existing install without
16
16
  network access. Downloads warn on network failure unless `--required`; invalid
17
17
  hashes or archives always fail.
18
18
 
@@ -30,7 +30,8 @@ Keep these files in sync:
30
30
  ## Release
31
31
 
32
32
  After tagging the matching Rust release and building with `cargo build --locked`,
33
- run from `diffr-ts`:
33
+ run from `diffr-ts`. New pins select the CLI-only release archives; older pins
34
+ continue to use the full archives:
34
35
 
35
36
  ```sh
36
37
  bun install --frozen-lockfile
package/bin/fetch.mjs CHANGED
@@ -7,7 +7,7 @@ import { fileURLToPath } from "node:url";
7
7
  import { parseArgs } from "node:util";
8
8
 
9
9
  const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
10
- const targets = { "darwin-arm64": "aarch64-apple-darwin", "linux-x64": "x86_64-unknown-linux-gnu" };
10
+ const targets = { "darwin-arm64": "aarch64-apple-darwin", "darwin-x64": "x86_64-apple-darwin", "linux-x64": "x86_64-unknown-linux-gnu" };
11
11
 
12
12
  try {
13
13
  await main();
@@ -49,7 +49,9 @@ async function main() {
49
49
  }
50
50
  if (values.check) throw new Error(`${binary} is missing or not diffr ${version} (${target})`);
51
51
 
52
- const asset = `diffr-${version}-${target}.tar.gz`;
52
+ const artifact = pins.artifact ?? "diffr";
53
+ if (!["diffr", "diffr-cli"].includes(artifact)) throw new Error(`unknown pinned artifact: ${artifact}`);
54
+ const asset = `${artifact}-${version}-${target}.tar.gz`;
53
55
  const url = `https://github.com/devdotfast/diffr/releases/download/${version}/${asset}`;
54
56
  let bytes;
55
57
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev.fast/diffr",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "diffr's NDJSON wire contract, validators, and release binary fetcher",
5
5
  "repository": "https://github.com/devdotfast/diffr",
6
6
  "license": "MIT",
package/pins.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
- "version": "0.1.3",
2
+ "version": "0.1.5",
3
+ "artifact": "diffr-cli",
3
4
  "sha256": {
4
- "aarch64-apple-darwin": "f4a8ab41893d7a670de7457cfa0090ea9367bdc585500b600e1b692eca216dbe",
5
- "x86_64-unknown-linux-gnu": "2bbdc89ffbcd5356c0527cf97e58169ffd9d940db3e518715e24d6cc11f5d4ff"
5
+ "aarch64-apple-darwin": "e6ba8c73a91a24db61347d736c283265ba6ffe7f236a980aa13fd5b81afb19e5",
6
+ "x86_64-apple-darwin": "020814d26d1572fec136b3f0fd43e1fcc1b6fe4be284f5fc5348b8bad744025d",
7
+ "x86_64-unknown-linux-gnu": "e7fd08cc6350aed7c8e5bd10fc7b6f9ae249b931e74d09017879b2dcbf07fc65"
6
8
  }
7
9
  }