@young1lin/dsh-ui-gitworkbench 0.1.8 → 0.1.9
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 +6 -0
- package/CHANGELOG_EN.md +6 -0
- package/lib/client.js +388 -357
- package/package.json +1 -1
- package/src/client/GitWorkbenchPanel.module.css +3 -0
- package/src/client/GitWorkbenchPanel.tsx +23 -7
- package/src/client/highlight.ts +58 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
本文件记录面向使用者的变更。格式参考 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循语义化版本。
|
|
4
4
|
|
|
5
|
+
## [0.1.9] - 2026-08-20
|
|
6
|
+
|
|
7
|
+
### 性能
|
|
8
|
+
|
|
9
|
+
- **History 和 Compare 里打开长 diff 也不再卡了**。0.1.8 治的是变更页的左右并排视图,History 与 Compare 用的是上下统一视图,当时**有意留到了后面**——它有一模一样的两笔开销:所有行都进 DOM,shiki 把所有行逐行重新分析。现在同样只渲染视口内的行、两遍 shiki 也只在窗口内跑。实测:一个 5365 行的 diff,**157ms、零掉帧、DOM 里 81 行**;滚动条仍然报完整的 107304px。作为对照,同一个面板此前在 6000 行左右的 diff 上会卡住四秒以上。
|
|
10
|
+
|
|
5
11
|
## [0.1.8] - 2026-08-20
|
|
6
12
|
|
|
7
13
|
紧急修复版:一次点击卡住三秒半,以及 Compare 里看不到内容的文件。
|
package/CHANGELOG_EN.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
User-facing changes, newest first. Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versioning follows SemVer.
|
|
4
4
|
|
|
5
|
+
## [0.1.9] - 2026-08-20
|
|
6
|
+
|
|
7
|
+
### Performance
|
|
8
|
+
|
|
9
|
+
- **Long diffs in History and Compare no longer freeze either.** 0.1.8 fixed the side-by-side view in Changes; History and Compare render a unified view, which was left out of that change deliberately and carried the same two costs — every row in the DOM, and Shiki re-lexing every row. Both are windowed now. Measured: a 5,365-row diff costs **157ms, no dropped frame, and 81 rows in the DOM**, while the scroller still reports the full 107,304px. For comparison, the same pane froze for over four seconds on a diff of about 6,000 rows.
|
|
10
|
+
|
|
5
11
|
## [0.1.8] - 2026-08-20
|
|
6
12
|
|
|
7
13
|
An urgent fix release: one click that froze the page for three and a half
|