@oh-my-pi/pi-tui 15.0.0 → 15.0.1
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 +5 -0
- package/package.json +4 -4
- package/src/components/markdown.ts +5 -5
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-tui",
|
|
4
|
-
"version": "15.0.
|
|
4
|
+
"version": "15.0.1",
|
|
5
5
|
"description": "Terminal User Interface library with differential rendering for efficient text-based applications",
|
|
6
6
|
"homepage": "https://github.com/can1357/oh-my-pi",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"fmt": "biome format --write ."
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@oh-my-pi/pi-natives": "15.0.
|
|
41
|
-
"@oh-my-pi/pi-utils": "15.0.
|
|
40
|
+
"@oh-my-pi/pi-natives": "15.0.1",
|
|
41
|
+
"@oh-my-pi/pi-utils": "15.0.1",
|
|
42
42
|
"lru-cache": "11.3.6",
|
|
43
43
|
"marked": "^18.0.3"
|
|
44
44
|
},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@xterm/headless": "^6.0.0"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
|
-
"bun": ">=1.3.
|
|
50
|
+
"bun": ">=1.3.14"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"src",
|
|
@@ -48,13 +48,13 @@ export function clearRenderCache(): void {
|
|
|
48
48
|
|
|
49
49
|
// Stable numeric IDs for structural theme/style objects (no ID field on type).
|
|
50
50
|
// WeakMap so GC can collect orphaned themes/styles without a leak.
|
|
51
|
-
const
|
|
52
|
-
let
|
|
51
|
+
const objectIds = new WeakMap<object, number>();
|
|
52
|
+
let nextObjectId = 0;
|
|
53
53
|
function objectId(o: object): number {
|
|
54
|
-
let id =
|
|
54
|
+
let id = objectIds.get(o);
|
|
55
55
|
if (id === undefined) {
|
|
56
|
-
id =
|
|
57
|
-
|
|
56
|
+
id = nextObjectId++;
|
|
57
|
+
objectIds.set(o, id);
|
|
58
58
|
}
|
|
59
59
|
return id;
|
|
60
60
|
}
|