Skip to content

fix: support Zotero 9 and fix build with Node.js 25 支持 Zotero 9 并修复 Node.js 25 下的构建问题#68

Open
2catycm wants to merge 1 commit into
windingwind:mainfrom
THU-CVML:main
Open

fix: support Zotero 9 and fix build with Node.js 25 支持 Zotero 9 并修复 Node.js 25 下的构建问题#68
2catycm wants to merge 1 commit into
windingwind:mainfrom
THU-CVML:main

Conversation

@2catycm
Copy link
Copy Markdown

@2catycm 2catycm commented Apr 17, 2026

Extend strict_max_version to 9.99.99 to allow installation on Zotero 9. Upgrade zotero-plugin-scaffold to 0.8.6 to fix 'grey' color name error in node:util.styleText on Node.js 25.

问题

之前插件装不上 Zotero 9,因为 manifest.json 里 strict_max_version 限制到了 8.0.*。

另外在 Node.js 25 环境下跑 npm run build 会直接报错,原因是 zotero-plugin-scaffold@0.8.0 用了 'grey' 这个颜色名,但 Node.js 25 的
util.styleText 只认 'gray'。

修复

  • manifest.json 把 strict_max_version 改成了 9.99.99,兼容 Zotero 9
  • zotero-plugin-scaffold 从 0.8.0 升到 0.8.6,修复构建报错

修完之后 build 正常通过,生成的 xpi 在 Zotero 9 上也能正确安装和运行了。

Extend strict_max_version to 9.99.99 to allow installation on Zotero 9.
Upgrade zotero-plugin-scaffold to 0.8.6 to fix 'grey' color name error
in node:util.styleText on Node.js 25.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@2catycm
Copy link
Copy Markdown
Author

2catycm commented Apr 17, 2026

参考了Issue #67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant