Skip to content

Releases: Short-Arm-Ape/dsh-sensitive-replace

Merge pull request #1 from long-arm-ape/v0.7.2

Choose a tag to compare

@Short-Arm-Ape Short-Arm-Ape released this 23 Oct 09:25
f0403b7
v0.7.2:状态行显示屏蔽表是否存在 + 自动发版 workflow + README 安装方式

v0.7.1 — 屏蔽表缺失时自动建空表

Choose a tag to compare

@Short-Arm-Ape Short-Arm-Ape released this 22 Oct 13:16

v0.7.1 — 屏蔽表缺失时自动建空表

插件启动时若屏蔽表文件不存在,直接写一张带格式说明的空表模板(以前只是静默空转:没报错,但用户不知道该往哪填)。

  • 用 wx 独占创建,绝不覆盖已有文件;父目录不存在会一并创建;
  • 创建失败(权限、路径非法、路径其实是目录)只告警、不抛异常,插件照常运行(规则为空);
  • 开关 createBlocklistIfMissing(默认 true);
  • sensitive_replace_status 新增 blocklistExists,一眼分清"表是空的"和"表没读到";
  • 新增导出 ensureBlocklist() / BLOCKLIST_TEMPLATE。

另外补了「故障排查」一节,覆盖 failed to read overlay … cordis.patch.yml: ENOENT 这类"装进 profile 的包不完整"的情况(不是屏蔽表的问题)。

测试:包内单测 55/55,真实 cordis 集成探针 16/16。

安装(用本页附带的 tgz):

dsh plugin --profile web add /abs/path/dsh-sensitive-replace-0.7.1.tgz

兼容 DSH 0.1.5-rc.x / 0.2.0-rc.x / 0.2.x(peerDependencies: ^0.1.0-rc.6 || ^0.2.0-rc.1,无需版本豁免)。完整变更见 CHANGELOG.md。