@dev.fast/diffr 0.1.4 → 0.1.6
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 +4 -3
- package/bin/fetch.mjs +4 -2
- package/package.json +1 -1
- package/pins.json +6 -4
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.
|
|
12
|
+
npx --package @dev.fast/diffr@0.1.6 diffr-fetch --into ./bin --required
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Supports macOS arm64, macOS x64, and Linux x64. `--check` verifies an existing install without
|
|
15
|
+
Supports macOS arm64, macOS x64, Linux arm64, 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", "darwin-x64": "x86_64-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", "linux-arm64": "aarch64-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
|
|
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
package/pins.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.6",
|
|
3
|
+
"artifact": "diffr-cli",
|
|
3
4
|
"sha256": {
|
|
4
|
-
"aarch64-apple-darwin": "
|
|
5
|
-
"x86_64-apple-darwin": "
|
|
6
|
-
"x86_64-unknown-linux-gnu": "
|
|
5
|
+
"aarch64-apple-darwin": "f877369dee2679c66b623d5a71edfb590d148e6162fc7ebb517dc0ce894a8d7c",
|
|
6
|
+
"x86_64-apple-darwin": "e411028dd08ee86b9eca372c6d155be2e391b9db2390e2afadf483f5f3d79f76",
|
|
7
|
+
"x86_64-unknown-linux-gnu": "0ff17c0e08b401ff079be3643edcf1fe5aa1585ca1339ec1463c69f90e7571ef",
|
|
8
|
+
"aarch64-unknown-linux-gnu": "bdc96a3b48e831f775897244eadebac20bccd31c69c777cb3c7b253ce6fa6508"
|
|
7
9
|
}
|
|
8
10
|
}
|