Repository navigation
Update plugin 通知美化(弹幕/卡片) v1.0.2 - #793
Merged
Merged
Conversation
lzx8589561
marked this pull request as ready for review
December 3, 2026 02:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
插件信息
本次变更
修复
TypeError: Cannot read properties of undefined (reading 'notice'):新版宿主把 Electron 固定到 35.0.0-alpha.2,该版本没有内置node:sqlite,preload 顶层require('node:sqlite')抛No such built-in module后window.services从未赋值。通知库改由新增的纯 JS 只读读取器preload/sqlite-lite.js解析(支持 WAL 快照、溢出页、64 位整型)node:sqlite(Electron 36.7.3+,如 3.2.x 的 Electron 41)时仍优先走原生实现,缺失或打开失败才启用纯 JS 兜底,且只降级一次不会每轮抛错;三种引擎(原生 / 兜底 / 原生失败降级)对同一份真实通知库的解析结果已逐条比对一致history.jsonl追加写、config.json/state.json分文件避免采集写入覆盖用户设置、apps.json按 mtime 缓存;旧history.db自动并入新存储(只补缺失项,不覆盖),迁移不再依赖宿主是否有 sqliteinit(),排在window.services赋值之后并逐段 try/catch:任一步失败只降级对应功能,不再让整个插件页拿到 undefinedgetStatus()增加dbEngine字段(native/lite),排障时可直接看出当前用的是哪个读取引擎截图 / 演示
自检清单
plugins/cafe-notice/目录此 PR 由 ztools-plugin-cli 自动管理:每次
ztools publish基于最新主仓库重建发布分支;打开的 PR 链接保持不变。