Skip to content

v0.5.0

Choose a tag to compare

@MiloMMIN MiloMMIN released this 28 Jan 11:03
· 7 commits to main since this release

Fix: 修复 TS 类型错误及 Dataview 代码块重复生成问题

  1. 修复 Dataview 代码块重复问题:

    • 优化 genericBlockRegex 正则,支持匹配更复杂的 WHERE 子句(如包含 AND !completed)。
    • 新增 dataviewJsBlockRegex,支持检测和更新 dataviewjs 类型的代码块。
    • 修复 bind 命令逻辑,确保多次运行是更新现有代码块而非重复添加。
    • 修正代码块生成格式,确保结束反引号前有正确的换行。
  2. 修复 TypeScript 类型错误:

    • 在 MicrosoftToDoLinkPlugin 类中实现 translations 属性和 t() 方法。
    • 将 SettingTab 中所有 this.t() 调用更新为 this.plugin.t()。
    • 解决类型检查报错:Property 't' does not exist on type 'MicrosoftToDoLinkPlugin'。