@git-stunts/git-cas 6.5.2 → 6.5.3
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/CHANGELOG.md +10 -0
- package/README.md +3 -1
- package/UPGRADING.md +15 -0
- package/build-info.json +2 -2
- package/docs/releases/v6.5.3.md +47 -0
- package/package.json +2 -1
- package/src/infrastructure/adapters/GitPersistenceAdapter.js +2 -19
- package/src/package-version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [6.5.3] — 2026-07-19
|
|
11
|
+
|
|
12
|
+
### Performance
|
|
13
|
+
|
|
14
|
+
- **Coherent Git object session reuse** - successful loose object and tree
|
|
15
|
+
writes preserve typed `cat-file` and `mktree` processes. Scoped bulk writes
|
|
16
|
+
preserve `cat-file` but still retire `mktree` after checkpoint because Git's
|
|
17
|
+
quick tree-entry validation does not refresh packs created after the
|
|
18
|
+
session's object-database snapshot.
|
|
19
|
+
|
|
10
20
|
## [6.5.2] — 2026-07-19
|
|
11
21
|
|
|
12
22
|
### Added
|
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ Unlike traditional LFS which moves files to external servers, `git-cas` treats t
|
|
|
49
49
|
Existing v5 users should read [UPGRADING.md](./UPGRADING.md) and run
|
|
50
50
|
`npm run upgrade` in dry-run mode before restoring old encrypted vault entries.
|
|
51
51
|
For the release overview, see the
|
|
52
|
-
[v6.5.
|
|
52
|
+
[v6.5.3 Release Notes](./docs/releases/v6.5.3.md).
|
|
53
53
|
|
|
54
54
|
### 1. CLI Usage
|
|
55
55
|
|
|
@@ -216,6 +216,8 @@ All three runtimes are tested in CI on every push. The hexagonal architecture is
|
|
|
216
216
|
payload reuse with zero-command warm reads.
|
|
217
217
|
- **[v6.5.2 Release Notes](./docs/releases/v6.5.2.md)**: Persistent bounded Git
|
|
218
218
|
object sessions, scoped page batches, and deterministic resource closure.
|
|
219
|
+
- **[v6.5.3 Release Notes](./docs/releases/v6.5.3.md)**: Coherent reuse of
|
|
220
|
+
persistent Git object sessions across compatible immutable writes.
|
|
219
221
|
- **[Upgrading](./UPGRADING.md)**: Migration guide for v5 → v6.
|
|
220
222
|
- **[Changelog](./CHANGELOG.md)**: Version history and migration notes.
|
|
221
223
|
|
package/UPGRADING.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
v6.0.0 is a major release that simplifies the encryption model, hardens security defaults, and cleans up the architecture. This guide covers every breaking change and what you need to do.
|
|
4
4
|
|
|
5
|
+
## v6.5.2 To v6.5.3
|
|
6
|
+
|
|
7
|
+
v6.5.3 changes no public API and requires no stored-data migration. Long-lived
|
|
8
|
+
stores automatically preserve their typed `cat-file` session across successful
|
|
9
|
+
immutable writes. They also preserve typed `mktree` across loose blob and tree
|
|
10
|
+
writes, while bounded bulk writes still retire `mktree` because `fast-import`
|
|
11
|
+
may create a pack that an already prepared process cannot discover.
|
|
12
|
+
|
|
13
|
+
No application code changes are required. Continue to call `await cas.close()`
|
|
14
|
+
when the store is no longer needed; explicit closure remains the deterministic
|
|
15
|
+
boundary for local Git children and bounded in-memory residency.
|
|
16
|
+
|
|
17
|
+
See [v6.5.3 Release Notes](./docs/releases/v6.5.3.md) for the audited coherence
|
|
18
|
+
matrix and measured process-count reduction.
|
|
19
|
+
|
|
5
20
|
## v6.5.1 To v6.5.2
|
|
6
21
|
|
|
7
22
|
v6.5.2 is API-additive and does not require stored-data migration. Immutable
|
package/build-info.json
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# git-cas v6.5.3 Release Notes
|
|
2
|
+
|
|
3
|
+
v6.5.3 preserves coherent persistent Git object sessions across compatible
|
|
4
|
+
immutable writes. It is a process-topology correction to v6.5.2 and changes no
|
|
5
|
+
public API, stored format, object identity, retention policy, or lifecycle
|
|
6
|
+
contract.
|
|
7
|
+
|
|
8
|
+
## Session Coherence
|
|
9
|
+
|
|
10
|
+
`GitPersistenceAdapter` now preserves its typed `cat-file --batch-command`
|
|
11
|
+
session after successful loose blob, bulk blob, and tree writes. Git permits
|
|
12
|
+
that process to refresh object-database state and discover both new loose
|
|
13
|
+
objects and packs created after the session started.
|
|
14
|
+
|
|
15
|
+
The adapter also preserves `mktree --batch -z` after loose blob and tree writes.
|
|
16
|
+
It deliberately retires `mktree` after a bounded `fast-import` batch because
|
|
17
|
+
Git's quick tree-entry lookup does not refresh packs created after the process
|
|
18
|
+
prepared its object database. The scoped `fast-import` process still
|
|
19
|
+
checkpoints and closes before any object ID escapes.
|
|
20
|
+
|
|
21
|
+
## Measured Effect
|
|
22
|
+
|
|
23
|
+
In the audited 128-node git-warp retained-materialization fixture, total Git
|
|
24
|
+
children fell from 558 to 401. `cat-file` openings fell from 80 to four and
|
|
25
|
+
`mktree` openings fell from 82 to one. The three-run median materialization test
|
|
26
|
+
time fell from 14.24 seconds to 12.72 seconds, and measured process CPU fell
|
|
27
|
+
from 15.74 seconds to 13.83 seconds.
|
|
28
|
+
|
|
29
|
+
Process counts are deterministic regression evidence. Timings are local
|
|
30
|
+
observations, not cross-platform performance guarantees. The remaining 401 Git
|
|
31
|
+
children include 140 intentionally one-shot `hash-object` writes and git-warp
|
|
32
|
+
history, ref, and workspace operations outside this patch's scope.
|
|
33
|
+
|
|
34
|
+
## Verification
|
|
35
|
+
|
|
36
|
+
The versioned candidate passed 2,082 Node unit tests, 2,081 Bun unit tests, 2,072
|
|
37
|
+
Deno unit tests, and 198 real-Git integration tests on each runtime. The full
|
|
38
|
+
release verifier passed all 14 steps with 6,829 observed tests. Real-Git
|
|
39
|
+
coverage exercises SHA-1 and SHA-256 repositories, later loose objects, later
|
|
40
|
+
packs above `fastimport.unpackLimit`, failure invalidation, idle retirement, and
|
|
41
|
+
explicit closure.
|
|
42
|
+
|
|
43
|
+
## Compatibility
|
|
44
|
+
|
|
45
|
+
This release requires no application changes or stored-data migration.
|
|
46
|
+
Existing public methods, handles, refs, witnesses, object IDs, and retention
|
|
47
|
+
semantics remain compatible with v6.5.2.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@git-stunts/git-cas",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.3",
|
|
4
4
|
"description": "Content-addressed storage backed by Git's object database, with optional encryption and pluggable codecs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"docs/releases/v6.5.0.md",
|
|
40
40
|
"docs/releases/v6.5.1.md",
|
|
41
41
|
"docs/releases/v6.5.2.md",
|
|
42
|
+
"docs/releases/v6.5.3.md",
|
|
42
43
|
"docs/THREAT_MODEL.md",
|
|
43
44
|
"docs/VAULT_INTERNALS.md",
|
|
44
45
|
"docs/WALKTHROUGH.md",
|
|
@@ -99,7 +99,6 @@ export default class GitPersistenceAdapter extends GitPersistencePort {
|
|
|
99
99
|
input: content,
|
|
100
100
|
})
|
|
101
101
|
);
|
|
102
|
-
await this.#retireSessions(['catFile', 'mktree']);
|
|
103
102
|
return oid;
|
|
104
103
|
}
|
|
105
104
|
|
|
@@ -128,7 +127,8 @@ export default class GitPersistenceAdapter extends GitPersistencePort {
|
|
|
128
127
|
const oids = await this.#sessions.writeBlobs(replayableContents, (operation) =>
|
|
129
128
|
this.policy.execute(operation)
|
|
130
129
|
);
|
|
131
|
-
|
|
130
|
+
// mktree's quick lookup cannot discover packs created after its ODB snapshot.
|
|
131
|
+
await this.#sessions.retire('mktree');
|
|
132
132
|
result = [...oids];
|
|
133
133
|
} catch (error) {
|
|
134
134
|
operationFailed = true;
|
|
@@ -164,7 +164,6 @@ export default class GitPersistenceAdapter extends GitPersistencePort {
|
|
|
164
164
|
const oid = await this.#sessions.writeTree(structured, (operation) =>
|
|
165
165
|
this.policy.execute(operation)
|
|
166
166
|
);
|
|
167
|
-
await this.#sessions.retire('catFile');
|
|
168
167
|
return oid;
|
|
169
168
|
}
|
|
170
169
|
const oid = await this.policy.execute(() =>
|
|
@@ -173,7 +172,6 @@ export default class GitPersistenceAdapter extends GitPersistencePort {
|
|
|
173
172
|
input: `${entries.join('\n')}\n`,
|
|
174
173
|
})
|
|
175
174
|
);
|
|
176
|
-
await this.#sessions.retire('catFile');
|
|
177
175
|
return oid;
|
|
178
176
|
});
|
|
179
177
|
}
|
|
@@ -553,21 +551,6 @@ export default class GitPersistenceAdapter extends GitPersistencePort {
|
|
|
553
551
|
return promise;
|
|
554
552
|
}
|
|
555
553
|
|
|
556
|
-
async #retireSessions(protocols) {
|
|
557
|
-
const results = await Promise.allSettled(
|
|
558
|
-
protocols.map((protocol) => this.#sessions.retire(protocol))
|
|
559
|
-
);
|
|
560
|
-
const failures = results
|
|
561
|
-
.filter((result) => result.status === 'rejected')
|
|
562
|
-
.map((result) => result.reason);
|
|
563
|
-
if (failures.length === 1) {
|
|
564
|
-
throw failures[0];
|
|
565
|
-
}
|
|
566
|
-
if (failures.length > 1) {
|
|
567
|
-
throw new AggregateError(failures, 'Multiple Git object sessions failed to retire');
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
|
|
571
554
|
static #isObjectBufferLimit(error) {
|
|
572
555
|
return error?.details?.code === 'OBJECT_BUFFER_LIMIT_EXCEEDED';
|
|
573
556
|
}
|
package/src/package-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '6.5.
|
|
1
|
+
export const PACKAGE_VERSION = '6.5.3';
|