diff --git a/package.json b/package.json index bb8ee6d..59446f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "6.4.61", + "version": "6.4.62", "license": "BUSL-1.1", "private": true, "packageManager": "pnpm@9.15.5", diff --git a/src/lib/modules/update.ts b/src/lib/modules/update.ts index d67b462..ac8d918 100644 --- a/src/lib/modules/update.ts +++ b/src/lib/modules/update.ts @@ -3,19 +3,10 @@ import { compare, diff } from 'semver' import native from './native' import { version } from '$app/environment' -import { highEntropyValues } from '$lib/utils' - -export const isBrokenVeryBadly = native.version().then(async nativeVersion => { - const entr = await highEntropyValues - if (entr && entr.platform !== 'Windows') return false - return compare(nativeVersion, '6.4.4') === -1 && compare(nativeVersion, '6.4.0') !== -1 -}) async function compareVersions (): Promise<'ui' | 'client' | undefined> { const nativeVersion = await native.version() const releaseType = diff(version, nativeVersion) - // TODO: REMOVE MEEE!!! - if (await isBrokenVeryBadly) return 'client' if (!releaseType) return if (releaseType === 'patch') return diff --git a/src/routes/update/+page.svelte b/src/routes/update/+page.svelte index fc5976c..40493a0 100644 --- a/src/routes/update/+page.svelte +++ b/src/routes/update/+page.svelte @@ -1,26 +1,13 @@
@@ -30,24 +17,19 @@
Update Required
A mandatory update is available for the {#await outdatedComponent then name}{name}{/await}.
Please update to continue.
- {#await isBrokenVeryBadly then brokey} - {#if brokey} - + + {#await outdatedComponent then name} + {#if name === 'client'} + {#await native.updateReady()} + + {:then _} + + {/await} {:else} - {#await outdatedComponent then name} - {#if name === 'client'} - {#await native.updateReady()} - - {:then _} - - {/await} - {:else} - {#await uiUpdate} - - {:then _} - - {/await} - {/if} + {#await uiUpdate} + + {:then _} + {/await} {/if} {/await}