With the release of Parrot I also stumbled upon the following problem as well:
In an attempt to implement a force update, I encountered CORS (Cross-Origin Resource Sharing) issues. The endpoint that should provide the necessary version information, https://www.figma.com/api/plugins/{versionId}/versions/
, seems to be blocked by CORS.
To address this challenge, I’ve come up with a workaround using a GitHub page and figcd. By updating a json file with the latest version and redeploy the GitHub page whenever a new release occurs, I can prompt users to refresh their plugin if they have an outdated version.
I do have a couple of questions for the Figma team:
- Is there a possibility of providing an endpoint to fetch all versions of the plugin, along with a changelog, that we can query directly from the plugin?
- Additionally, could you consider offering a function to clear the plugin cache and restart it without having to close and reopen the design file? It would greatly improve the user experience.
Looking forward to hearing your thoughts and any potential solutions.
Best Regards
Martin