1.0.4
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
innerHTMLSVG injection with a
safeDOMParser+appendChildhelper (mountTrustedSvg), removing the disallowed
eslint-disablecomments flagged asUnexpected undescribed directive comment/
Disabling '@microsoft/sdl/no-inner-html' is not allowed. - Resolved ~90
prefer-create-elwarnings — migrated
document.createElement('div'|'span')and.createEl('div'|'span')to Obsidian's
createDiv()/createSpan()helpers acrossmain.ts,settings.ts,view.ts
and the modal modules. - Build now passes —
npm run build(tsc + esbuild) succeeds: removed the
@types/node↔setTimeouttype conflict, fixed the emoji character-class regex
(uflag + de-combined glyphs), and tightenedunknowntype 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类型收窄。