Skip to content

Release 1.0.1

Choose a tag to compare

@Tasete Tasete released this 11 Aug 18:04
· 3 commits to main since this release

v1.0.1

🐛 Bug 修复

  • 修复设置页分页功能在 Obsidian 1.13.0+ 下不显示的问题
    • 移除了与自定义 Tab 分页冲突的声明式设置 API(getSettingDefinitions()),恢复 display() 作为主渲染方法,确保 General / 预设管理 / 导入导出 三个分页正常显示

🔒 安全修复

  • 替换 innerHTML 为安全的 DOM API
    • 设置页使用说明列表中的 innerHTML 改用 createEl('strong') + appendText() + createEl('code') 组合构建
    • 正则语法表中的 innerHTML 改用 createEl('code', { text }) 构建
    • i18n 翻译键相应拆分为 .label / .desc / .code / .suffix 子键

🎨 样式优化

  • 移除 CSS 中的 !important
    • .sr-guide-subtitle 改用 .sr-guide p.sr-guide-subtitle 提升选择器特异性
    • .sr-hidden / .sr-scroll-locked 改用双重类名选择器提升特异性

🛠️ 代码质量

  • 修复 TypeScript 类型安全问题
    • 消除不必要的类型断言,改用类型守卫模式
    • 修复 Promise 误用(async void 回调改为 fire-and-forget 模式)
    • 消除 no-unsafe-* 相关警告

🐛 Bug Fixes

  • Fixed settings page tabs not displaying on Obsidian 1.13.0+
    • Removed the declarative settings API (getSettingDefinitions()) which conflicted with custom tab navigation, restored display() as the primary render method to ensure General / Presets / Import-Export tabs display correctly

🔒 Security Fixes

  • Replaced innerHTML with safe DOM API
    • Guide list items: replaced innerHTML with createEl('strong') + appendText() + createEl('code') combination
    • Regex syntax table: replaced innerHTML with createEl('code', { text })
    • Split i18n translation keys into .label / .desc / .code / .suffix sub-keys accordingly

🎨 Style Improvements

  • Removed !important from CSS
    • .sr-guide-subtitle: switched to .sr-guide p.sr-guide-subtitle for higher selector specificity
    • .sr-hidden / .sr-scroll-locked: switched to double-class selectors for higher specificity

🛠️ Code Quality

  • Fixed TypeScript type safety issues
    • Eliminated unnecessary type assertions, replaced with type guard patterns
    • Fixed misused Promises (async void callbacks converted to fire-and-forget pattern)
    • Resolved no-unsafe-* related warnings

Full Changelog: v1.0.0...v1.0.1