dev: don't consider betas if they have -ignore in the name, in case i'm reconsidering a release without deleting it
Massimo Melina committed
Jul 10, 2024 at 13:01 UTC
c24f642dbe24f843160c2299b3d210bc36dc252e
1 file changed
+2
-2
src/update.ts
+2
-2
@@ -76,9 +76,9 @@ export async function getUpdates(strict=false) {
76
if (!res.length) break
77
const curV = currentVersion.getScalar()
78
for (const x of res) {
79
- if (!x.prerelease) continue // prerelease are all the end
79
+ if (!x.prerelease || x.name.endsWith('-ignore')) continue
80
const v = ver(x)
81
- if (v <= verStable) // prerelease-s are locally ordered, so as soon as we reach verStable we are done
81
+ if (v < verStable) // we don't consider betas before stable
82
return ret
83
if (v === curV) continue // skip current
84
x.isNewer = v > curV // make easy to know what's newer