1.0.7
🚀 Window Spaces 1.0.7 Release Notes
This release addresses all official Obsidian Community Store code review items, introducing stricter type safety, improved CSS performance, and updated minimum Obsidian version requirements.
🌟 Fixes & Improvements
-
Obsidian API Compatibility:
- Updated
minAppVersionto1.7.2inmanifest.jsonto officially supportWorkspace.revealLeaf. - Replaced deprecated
Workspace.activeLeafcalls withWorkspace.getMostRecentLeaf().
- Updated
-
CSS & Performance:
- Removed
:has()pseudo-class selectors instyles.cssto prevent DOM selector invalidation overhead. Replaced with explicit class markers (mod-window-spaces-leaf,has-header-actions). - Replaced static style assignments with Obsidian-compatible element style helpers (
setElementCssStyles).
- Removed
-
Code Quality & Type Safety:
- Replaced non-standard
createEl("div")/createEl("span")calls with Obsidian's nativecreateDiv()andcreateSpan()helpers. - Resolved TypeScript
anytypes and@typescript-eslintunsafe assertions across core layout manager and modal modules. - Fixed duplicate union types for timer variables (
number).
- Replaced non-standard
繁體中文版本說明
本版本修復了所有 Obsidian 社群外掛官方審核建議項目,大幅提升型別安全性與 CSS 渲染效能:
- API 相容性:更新
minAppVersion為1.7.2以完全符合revealLeaf規範;替換已棄用之activeLeaf屬性。 - CSS 效能最佳化:移除
:has()選擇器以避免瀏覽器無謂的樣式重算;改以 DOM 動態 class 控制。 - 代碼規範:全面改用 Obsidian 原生
createDiv()/createSpan()DOM 建立函式,完成 TypeScript 型別嚴格化與 0-Warning 構建。