Skip to content

Commit 9acc373

Browse files
Your Nameclaude
andcommitted
release: v2.0.8
修复卸载崩溃和破损事件注册,清理 269 行死代码。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 573bd21 commit 9acc373

5 files changed

Lines changed: 18 additions & 272 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# 更新日志
22

3+
## 2.0.8 — 清理死代码,修复两个运行时 Bug
4+
5+
### Bug 修复
6+
7+
- **修复卸载时崩溃**`priorityNoteSyncTimeouts``priorityRenameSyncTimeouts` 从未初始化,但在 onunload 和 onload 清理回调中被引用,导致 `TypeError`。已移除所有引用。
8+
- **移除永不触发的 vault 事件处理器**:三层事件绑定存在双层函数包裹 bug(`(file) => () => handler(file)`),导致 `handleVaultModify`/`handleVaultDelete`/`handleVaultRename` 永不触发。三向对比全量扫描已正确覆盖所有场景,移除破损事件注册。
9+
10+
### 死代码清理(-269 行)
11+
12+
- 移除 22 个从未调用的死方法:`processPendingVaultDeletions``pruneEmptyLocalParentFolders``pruneEmptyRemoteParentDirectories``deleteExtraRemoteDirectories``buildExpectedRemoteDirectories``verifyRemoteBinaryRoundTrip``deleteRemoteSyncedEntry``purgeDuplicateConflictCopies``hasPendingWorkForNote`
13+
- 移除空壳方法 `reconcileRemoteImages`
14+
- 移除未使用属性:`remoteCleanupInFlight``noteAccessTimestamps``missingLazyRemoteNotes`
15+
- 移除传递性死代码:`arrayBuffersEqual``coalesceRecentMutations`
16+
317
## 2.0.7 — 修复目录同步:远端删除的空目录本地应跟随删除
418

519
### Bug 修复

0 commit comments

Comments
 (0)