Skip to content

1.0.7

Choose a tag to compare

@github-actions github-actions released this 02 Aug 11:16
· 28 commits to main since this release

🚀 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 minAppVersion to 1.7.2 in manifest.json to officially support Workspace.revealLeaf.
    • Replaced deprecated Workspace.activeLeaf calls with Workspace.getMostRecentLeaf().
  • CSS & Performance:

    • Removed :has() pseudo-class selectors in styles.css to 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).
  • Code Quality & Type Safety:

    • Replaced non-standard createEl("div") / createEl("span") calls with Obsidian's native createDiv() and createSpan() helpers.
    • Resolved TypeScript any types and @typescript-eslint unsafe assertions across core layout manager and modal modules.
    • Fixed duplicate union types for timer variables (number).

繁體中文版本說明

本版本修復了所有 Obsidian 社群外掛官方審核建議項目,大幅提升型別安全性與 CSS 渲染效能:

  1. API 相容性:更新 minAppVersion1.7.2 以完全符合 revealLeaf 規範;替換已棄用之 activeLeaf 屬性。
  2. CSS 效能最佳化:移除 :has() 選擇器以避免瀏覽器無謂的樣式重算;改以 DOM 動態 class 控制。
  3. 代碼規範:全面改用 Obsidian 原生 createDiv() / createSpan() DOM 建立函式,完成 TypeScript 型別嚴格化與 0-Warning 構建。