@oh-my-pi/hashline 17.2.9 → 17.2.10

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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [17.2.10] - 2026-08-06
6
+
7
+ ### Changed
8
+
9
+ - Updated internal caching dependency to use `@oh-my-pi/pi-utils/lru`.
10
+
5
11
  ## [17.2.2] - 2026-07-31
6
12
 
7
13
  ### Breaking Changes
@@ -88,7 +88,7 @@ export interface InMemorySnapshotStoreOptions {
88
88
  maxTotalBytes?: number;
89
89
  }
90
90
  /**
91
- * In-memory {@link SnapshotStore} backed by `lru-cache`. Per-path history is a
91
+ * In-memory {@link SnapshotStore} backed by a bounded LRU. Per-path history is a
92
92
  * short ring of full-file versions (oldest dropped first); per-session path
93
93
  * tracking is LRU-bounded so cold paths age out automatically.
94
94
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/hashline",
4
- "version": "17.2.9",
4
+ "version": "17.2.10",
5
5
  "description": "Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -33,8 +33,8 @@
33
33
  "fmt": "biome format --write ."
34
34
  },
35
35
  "dependencies": {
36
- "@oh-my-pi/pi-natives": "17.2.9",
37
- "lru-cache": "11.5.2"
36
+ "@oh-my-pi/pi-natives": "17.2.10",
37
+ "@oh-my-pi/pi-utils": "17.2.10"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/bun": "^1.3.14"
package/src/snapshots.ts CHANGED
@@ -15,11 +15,11 @@
15
15
  *
16
16
  * The abstract base class lets callers plug in whatever storage they like
17
17
  * (LRU, persistent SQLite, etc.). {@link InMemorySnapshotStore} ships as a
18
- * sensible default backed by `lru-cache`: a bounded set of paths, each with a
18
+ * sensible default backed by a bounded LRU: a limited set of paths, each with a
19
19
  * short history of full-file versions so in-session edit chains can still
20
20
  * recover against the version a stale tag names.
21
21
  */
22
- import { LRUCache } from "lru-cache/raw";
22
+ import { LRUCache } from "@oh-my-pi/pi-utils/lru";
23
23
  import { computeFileHash } from "./format";
24
24
 
25
25
  /**
@@ -137,7 +137,7 @@ export interface InMemorySnapshotStoreOptions {
137
137
  }
138
138
 
139
139
  /**
140
- * In-memory {@link SnapshotStore} backed by `lru-cache`. Per-path history is a
140
+ * In-memory {@link SnapshotStore} backed by a bounded LRU. Per-path history is a
141
141
  * short ring of full-file versions (oldest dropped first); per-session path
142
142
  * tracking is LRU-bounded so cold paths age out automatically.
143
143
  *