@@ -54,45 +57,49 @@ export default function Updater(): null {
...
@@ -54,45 +57,49 @@ export default function Updater(): null {
// automatically update minor/patch as long as bump matches the min update
// automatically update minor/patch as long as bump matches the min update
if(bump>=min){
if(bump>=min){
dispatch(acceptListUpdate(listUrl))
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(
dispatch(
addPopup({
addPopup({
key:listUrl,
key:listUrl,
content:{
content:{
listUpdate:{
listUpdate:{
listUrl,
listUrl,
auto:false,
oldList:list.current,
oldList:list.current,
newList:list.pendingUpdate,
newList:list.pendingUpdate
auto:true
}
}
}
},
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`