@dev.fast/diffr 0.1.4 → 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,7 +9,7 @@ const event = decodeStructuralDiffEvent(line);
9
9
  ```
10
10
 
11
11
  ```sh
12
- npx --package @dev.fast/diffr@0.1.4 diffr-fetch --into ./bin --required
12
+ npx --package @dev.fast/diffr@0.1.5 diffr-fetch --into ./bin --required
13
13
  ```
14
14
 
15
15
  Supports macOS arm64, macOS x64, and Linux x64. `--check` verifies an existing install without
@@ -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
@@ -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.4",
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,8 +1,9 @@
1
1
  {
2
- "version": "0.1.4",
2
+ "version": "0.1.5",
3
+ "artifact": "diffr-cli",
3
4
  "sha256": {
4
- "aarch64-apple-darwin": "15d6c2a314a8851ae41ecc9f9942836d609fdbb638000ef2c210b1e4bdcb6334",
5
- "x86_64-apple-darwin": "6bb7188ff3b9568ac98f8e2be8537f510b9f81fe9f0f6a24844c98c3178879bb",
6
- "x86_64-unknown-linux-gnu": "9852012b0b88361510e6af074dac38a5c83bfd61cb287cff938e77152ff0a1d4"
5
+ "aarch64-apple-darwin": "e6ba8c73a91a24db61347d736c283265ba6ffe7f236a980aa13fd5b81afb19e5",
6
+ "x86_64-apple-darwin": "020814d26d1572fec136b3f0fd43e1fcc1b6fe4be284f5fc5348b8bad744025d",
7
+ "x86_64-unknown-linux-gnu": "e7fd08cc6350aed7c8e5bd10fc7b6f9ae249b931e74d09017879b2dcbf07fc65"
7
8
  }
8
9
  }