You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context
I would like to use update-notifier in https://github.com/strapi/strapi in order to ask users of strapi to update their local package.
Issue
In the case the user has 2 strapi projects, they share the same configStore file: ~/.config/configstore/update-notifier-strapi.json and that may lead to incorrect behavior concerning the variable lastUpdateCheck (and update I think).
lastUpdateCheck is updated by both projects and only one of them will be notified when a new version is out.
If one project is used way more often than the other, it would be quite the only one to have the notifications.
The more strapi projects the user has, the more the problem is visible.
Code
constnotifier=updateNotifier({
pkg,updateCheckInterval: 1000*60*60*24*7,// 1 weekshouldNotifyInNpmScript: true,});constcurrentVersionLog=chalk.dim('{currentVersion}');constnewVersionLog=chalk.green('{latestVersion}');constreleaseLink=chalk.bold('https://github.com/strapi/strapi/releases');letmessage=` A new version of Strapi is available ${currentVersionLog} → ${newVersionLog} Check out new releases at: ${releaseLink} `;notifier.notify({defer: false,message: message.trim()});
The text was updated successfully, but these errors were encountered:
Hello :)
context
I would like to use
update-notifier
in https://github.com/strapi/strapi in order to ask users of strapi to update their local package.Issue
In the case the user has 2 strapi projects, they share the same configStore file:
~/.config/configstore/update-notifier-strapi.json
and that may lead to incorrect behavior concerning the variablelastUpdateCheck
(andupdate
I think).lastUpdateCheck
is updated by both projects and only one of them will be notified when a new version is out.If one project is used way more often than the other, it would be quite the only one to have the notifications.
The more strapi projects the user has, the more the problem is visible.
Code
The text was updated successfully, but these errors were encountered: