@hologit/holo-tree 0.2.1 → 0.4.0
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 +14 -10
- package/index.d.ts +9 -0
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -78,16 +78,20 @@ git-ignored (built per-platform in CI).
|
|
|
78
78
|
Published as the scoped package **`@hologit/holo-tree`** with per-platform
|
|
79
79
|
prebuilt binaries shipped as `optionalDependencies`:
|
|
80
80
|
|
|
81
|
-
| Platform package | Triple | Built on |
|
|
82
|
-
| --- | --- | --- |
|
|
83
|
-
| `@hologit/holo-tree-linux-x64-gnu` | `x86_64-unknown-linux-gnu` | ubuntu-latest |
|
|
84
|
-
| `@hologit/holo-tree-
|
|
85
|
-
| `@hologit/holo-tree-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
| Platform package | Triple | Built on | Smoke-tested |
|
|
82
|
+
| --- | --- | --- | --- |
|
|
83
|
+
| `@hologit/holo-tree-linux-x64-gnu` | `x86_64-unknown-linux-gnu` | ubuntu-latest | ✓ native |
|
|
84
|
+
| `@hologit/holo-tree-linux-arm64-gnu` | `aarch64-unknown-linux-gnu` | ubuntu-24.04-arm | ✓ native |
|
|
85
|
+
| `@hologit/holo-tree-linux-x64-musl` | `x86_64-unknown-linux-musl` | ubuntu-latest (musl cross) | build-only |
|
|
86
|
+
| `@hologit/holo-tree-darwin-arm64` | `aarch64-apple-darwin` | macos-latest | ✓ native |
|
|
87
|
+
| `@hologit/holo-tree-darwin-x64` | `x86_64-apple-darwin` | macos-latest (cross) | build-only |
|
|
88
|
+
| `@hologit/holo-tree-win32-x64-msvc` | `x86_64-pc-windows-msvc` | windows-latest | ✓ native |
|
|
89
|
+
|
|
90
|
+
Native targets build + smoke-test on a matching runner; cross targets (musl,
|
|
91
|
+
darwin-x64) build only, since their `.node` can't run on the host arch/libc (the
|
|
92
|
+
logic is covered by the native runs). The `.github/workflows/holo-tree-napi.yml`
|
|
93
|
+
workflow builds all six on every PR touching the binding, and on a
|
|
94
|
+
`holo-tree-v*` tag it builds then publishes.
|
|
91
95
|
|
|
92
96
|
Auth is **npm trusted publishing (OIDC)** — no tokens, matching hologit's
|
|
93
97
|
`publish-npm.yml`. Trusted publishing is configured *per package*, and a package
|
package/index.d.ts
CHANGED
|
@@ -123,6 +123,15 @@ export declare class Tree {
|
|
|
123
123
|
writeChild(path: string, content: string): string
|
|
124
124
|
/** Hash raw bytes as a blob and insert at `path`. Binary-safe. */
|
|
125
125
|
writeChildBytes(path: string, content: Buffer): string
|
|
126
|
+
/**
|
|
127
|
+
* Place an already-written blob at `path` by its `hash`, without reading its
|
|
128
|
+
* bytes. Unlike `writeChildBytes` (which re-hashes content), this grafts a
|
|
129
|
+
* blob already in the ODB — validated to exist and be a blob via a header
|
|
130
|
+
* lookup, so a large attachment isn't read back and re-hashed. `mode` is the
|
|
131
|
+
* git filemode: `0o100644` regular, `0o100755` executable, `0o120000`
|
|
132
|
+
* symlink. Returns the placed hash.
|
|
133
|
+
*/
|
|
134
|
+
writeChildHash(path: string, hash: string, mode: number): string
|
|
126
135
|
/** Read a blob's bytes at `path`, or `null` if no blob exists there. */
|
|
127
136
|
readBlob(path: string): Buffer | null
|
|
128
137
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hologit/holo-tree",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Node.js native binding for holo-tree — mutable in-memory git trees via gix",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
"defaults": false,
|
|
20
20
|
"additional": [
|
|
21
21
|
"x86_64-unknown-linux-gnu",
|
|
22
|
+
"aarch64-unknown-linux-gnu",
|
|
23
|
+
"x86_64-unknown-linux-musl",
|
|
22
24
|
"aarch64-apple-darwin",
|
|
25
|
+
"x86_64-apple-darwin",
|
|
23
26
|
"x86_64-pc-windows-msvc"
|
|
24
27
|
]
|
|
25
28
|
}
|
|
@@ -29,9 +32,12 @@
|
|
|
29
32
|
"index.d.ts"
|
|
30
33
|
],
|
|
31
34
|
"optionalDependencies": {
|
|
32
|
-
"@hologit/holo-tree-linux-x64-gnu": "0.
|
|
33
|
-
"@hologit/holo-tree-
|
|
34
|
-
"@hologit/holo-tree-
|
|
35
|
+
"@hologit/holo-tree-linux-x64-gnu": "0.4.0",
|
|
36
|
+
"@hologit/holo-tree-linux-arm64-gnu": "0.4.0",
|
|
37
|
+
"@hologit/holo-tree-linux-x64-musl": "0.4.0",
|
|
38
|
+
"@hologit/holo-tree-darwin-arm64": "0.4.0",
|
|
39
|
+
"@hologit/holo-tree-darwin-x64": "0.4.0",
|
|
40
|
+
"@hologit/holo-tree-win32-x64-msvc": "0.4.0"
|
|
35
41
|
},
|
|
36
42
|
"scripts": {
|
|
37
43
|
"artifacts": "napi artifacts",
|