Clear and concise description of the problem
/
Suggested solution
During the build, fetch the latest Zotero version number from the Zotero API:
The fetch results should be written to the file .scaffold/cacahe/zotero-version.json with the last timestamp of retrieval; items already retrieved within the last 3 days should not be fetched again.
Then check the user plugin's manifest.json:
- If the user provides
strict_max_version
- If
strict_max_version >= the latest Zotero stable / beta version, nothing to do
- If
strict_max_version < the latest Zotero stable / beta version, log a warning and print the command to quickly modify this field
- If the user does not provide
strict_max_version, log and automatically fill it with the latest Zotero beta major version number + 1
Additionally, a script can be provided to help users quickly modify this field. This script may need to accept the path of the manifest.json file, and if not provided, it can look for manifest.json in the current working directory.
Additional context
https://groups.google.com/g/zotero-dev/c/_6OxdXeFnUI/m/0hLaEzapAAAJ
Clear and concise description of the problem
/
Suggested solution
During the build, fetch the latest Zotero version number from the Zotero API:
The fetch results should be written to the file
.scaffold/cacahe/zotero-version.jsonwith the last timestamp of retrieval; items already retrieved within the last 3 days should not be fetched again.Then check the user plugin's manifest.json:
strict_max_versionstrict_max_version>= the latest Zotero stable / beta version, nothing to dostrict_max_version< the latest Zotero stable / beta version, log a warning and print the command to quickly modify this fieldstrict_max_version, log and automatically fill it with the latest Zotero beta major version number + 1Additionally, a script can be provided to help users quickly modify this field. This script may need to accept the path of the
manifest.jsonfile, and if not provided, it can look formanifest.jsonin the current working directory.Additional context
https://groups.google.com/g/zotero-dev/c/_6OxdXeFnUI/m/0hLaEzapAAAJ