Closed Markavian closed 9 years ago
This feature should be opt-in.
Will make sure that its opt-in - I was planning to have an icon button at the top right that appeared when a new version was available. I guess users could choose to dismiss this. I could also have a settings option to disable the feature.
This is what the feature looks like present when run directly from the product-monitor product:
Not tested it in a dependent project yet.
And this is what it looks like if you update in to the future...
Issue: this process takes several seconds on most machines, and hitting the endpoint before it has initially cached causes the process to fork. Suggest a fast fail return, with a cache managed by the endpoint.
Using the NPM api (https://docs.npmjs.com/api/npm) it should be possible to compare the local package.json against the public
product-monitor
NPM entry to see if an update is available.It should also be possible to perform a local update to the server and restart, making sure users of product monitor get the latest features and can stay up to date.