Skip to content

1.0.4

Choose a tag to compare

@ichris007 ichris007 released this 25 Sep 15:08
· 17 commits to main since this release

TaskFlow 1.0.4 — Release Notes

A maintenance release focused on passing the Obsidian community plugin review and
cleaning up build / lint warnings. No user-facing behavior changes.

What's changed

  • Fixed 3 blocking review errors — replaced all innerHTML SVG injection with a
    safe DOMParser + appendChild helper (mountTrustedSvg), removing the disallowed
    eslint-disable comments flagged as Unexpected undescribed directive comment /
    Disabling '@microsoft/sdl/no-inner-html' is not allowed.
  • Resolved ~90 prefer-create-el warnings — migrated
    document.createElement('div'|'span') and .createEl('div'|'span') to Obsidian's
    createDiv() / createSpan() helpers across main.ts, settings.ts, view.ts
    and the modal modules.
  • Build now passes — npm run build (tsc + esbuild) succeeds: removed the
    @types/node ↔ setTimeout type conflict, fixed the emoji character-class regex
    (u flag + de-combined glyphs), and tightened unknown type narrowing.

TaskFlow 1.0.4 更新说明

本次为通过 Obsidian 社区插件中心审核而做的维护性更新,重点修复审核反馈并清理
构建 / lint 警告,不涉及用户可见的行为变更。

主要变更

  • 修复 3 处阻塞审核错误:将全部 innerHTML 注入 SVG 的做法改为安全的
    DOMParser + appendChild(新增 mountTrustedSvg 助手),移除了被判定为
    「无描述 directive 注释」/「禁止禁用 @microsoft/sdl/no-inner-html」的
    eslint 禁用注释。
  • 消除约 90 处 prefer-create-el 警告:将 document.createElement('div'|'span')
    与 .createEl('div'|'span') 统一迁移到 Obsidian 的 createDiv() / createSpan()
    助手(覆盖 main.ts、settings.ts、view.ts 及各弹窗模块)。
  • 构建通过:npm run build(tsc + esbuild)现已通过——移除了 @types/node
    与 setTimeout 的类型冲突、修正了 emoji 字符类的正则(u 标志 + 去组合字符)、
    收紧了 unknown 类型收窄。