Closed ShivamS136 closed 8 months ago
This feature does not seem to be necessary to implement within this plugin project, as it is just simple script self-update logic and has no relevance to build tools.
Makes sense, should not be part of a build tool. Thanks. I'll check to add it via a separate project.
I believe this plugin is the best place to add this feature, let me know if you agree otherwise I'll create a new plugin.
Feature description
Many times the auto-update gets failed on extension level or user has that turned off. Due to this, critical script updates gets skipped. There must be a feature, which will add a function in the script on build which will check for script update in background.
How will it work
monkey.autoUpdate
istrue
then a function will be added at the end of the script.monkey.userscript.updateUrl || monkey.userscript.downloadUrl || monkey.userscript.download
.Usage
Options
false
,true
, or object containing below keysboolean
to print console debug logs for statements like "checking for update", "Update found", "Updating..." etc.Optimization
checkFrequency
time can be stored in script config instead of localstorage.If you agree this feature worths to add, I'd like to contribute