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
Open
fix: support Zotero 9 and fix build with Node.js 25 支持 Zotero 9 并修复 Node.js 25 下的构建问题#682catycm wants to merge 1 commit into
2catycm wants to merge 1 commit into
Conversation
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>
Author
|
参考了Issue #67 |
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.
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'。
修复
修完之后 build 正常通过,生成的 xpi 在 Zotero 9 上也能正确安装和运行了。