Skip to content

1.6.5

Choose a tag to compare

@liyaomingme liyaomingme released this 15 Jun 07:39
· 11 commits to main since this release
283b021

Welcome to the Thought Synapse (Desktop) v1.6.5 release!

This version marks the final polish of our codebase, achieving 100% strict compliance with Obsidian's automated ESLint code review system. We have completely eliminated all errors and warnings, ensuring maximum stability and safety for all users.

🛠️ Critical Fixes & Improvements

  • API Compatibility Secured: Replaced the newer getLeftLeaf API with the universally supported getLeaf(false). This guarantees seamless compatibility across all declared Obsidian versions and resolves the "unsupported API" error.
  • Strict Promise & Async Handling: Standardized all asynchronous operations. Resolved floating Promise warnings in event listeners and timeouts (void renderData()). Corrected the onunload lifecycle method to be strictly synchronous per Obsidian's guidelines.
  • CSS Linting Passed: Globally removed all !important declarations from styles.css. The plugin now perfectly respects CSS specificity and fully yields style control to user-selected custom themes.
  • Regex Optimization: Cleaned up unnecessary escape characters (\+) in the core text parsing engine for cleaner execution.

欢迎使用 Thought Synapse (思维突触 - 桌面版) v1.6.5!

本版本是上架前的最后一次代码极客级净化。我们针对 Obsidian 极其严苛的自动化机器审查(ESLint)进行了 100% 的合规性重构,彻底消灭了所有的 Error 和 Warning,为每一位用户提供极致安全、稳定的体验。

🛠️ 核心修复与代码净化

  • API 兼容性彻底修复: 移除了可能产生兼容性问题的 getLeftLeaf 接口,替换为全版本坚如磐石的 getLeaf(false)。这彻底解决了 API 超限报错,确保所有声明支持的版本均可流畅运行。
  • 严格的异步 (Promise) 规范: 对代码中的所有异步操作进行了标准化处理。修复了事件监听器和定时器中的“悬挂异步”警告,并将插件卸载阶段的 onunload 生命周期严格规范为同步方法。
  • 样式表极度规范化 (CSS Lint): 全局清除了 styles.css 中的 !important 强制声明。现在,插件的样式优先级遵循标准层叠规则,将界面外观的最终决定权完美让渡给用户的自定义主题。
  • 正则引擎优化: 清理了底层文本净化引擎中多余的转义字符(\+),使代码结构更加清爽严谨。