@@ -54,45 +57,49 @@ export default function Updater(): null {
// automatically update minor/patch as long as bump matches the min update
if(bump>=min){
dispatch(acceptListUpdate(listUrl))
if(listUrl===selectedListUrl){
dispatch(
addPopup({
key:listUrl,
content:{
listUpdate:{
listUrl,
oldList:list.current,
newList:list.pendingUpdate,
auto:true
}
}
})
)
}
}else{
console.error(
`List at url ${listUrl} could not automatically update because the version bump was only PATCH/MINOR while the update had breaking changes and should have been MAJOR`
)
}
break
caseVersionUpgrade.MAJOR:
if(listUrl===selectedListUrl){
dispatch(
addPopup({
key:listUrl,
content:{
listUpdate:{
listUrl,
auto:false,
oldList:list.current,
newList:list.pendingUpdate,
auto:true
newList:list.pendingUpdate
}
}
},
removeAfterMs:null
})
)
}else{
console.error(
`List at url ${listUrl} could not automatically update because the version bump was only PATCH/MINOR while the update had breaking changes and should have been MAJOR`