dsh-rss 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # 更新记录
2
2
 
3
+ ## 0.7.1(2026-10-25)
4
+
5
+ - 修复 #3:RSS / Atom 摘要、正文和订阅描述含大量不闭合的尖括号时,文本清理不再反复扫描剩余内容,避免阻塞 DSH 的其他请求。
6
+ - 保留普通 HTML 的文本抽取、实体解码和内容长度上限,增加有独立进程超时保护的回归检查。
7
+
3
8
  ## 0.7.0(2026-10-17)
4
9
 
5
10
  - 设置面板顶部新增「首次使用」分步引导:一次只讲一步,支持上一步/下一步/跳过,看完记在本机不再出现。
package/lib/parser.js CHANGED
@@ -38,7 +38,9 @@ function stripHtml(html) {
38
38
  if (!html)
39
39
  return '';
40
40
  return html
41
- .replace(/<[^>]*>/g, ' ')
41
+ // Stop at another opening bracket: unmatched '<' must never rescan the
42
+ // entire remainder for each position and synchronously stall the Host.
43
+ .replace(/<[^<>]*>/g, ' ')
42
44
  .replace(/&nbsp;/gi, ' ')
43
45
  .replace(/&amp;/gi, '&')
44
46
  .replace(/&lt;/gi, '<')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-rss",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "订阅和阅读 RSS / Atom,在 DSH 中查看与管理更新。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",