release: prepare v2.0.83

This commit is contained in:
Sucukdeluxe
2026-09-01 02:04:53 +02:00
parent f3f2f60ece
commit 9c512b6de7
9 changed files with 202 additions and 82 deletions
+5 -2
View File
@@ -1039,8 +1039,11 @@ export function normalizeLoadedSession(raw: unknown): SessionState {
targetPath: asText(item.targetPath),
metadataRenameTargetPath: asText(item.metadataRenameTargetPath) || undefined,
resumable: item.resumable === undefined ? true : Boolean(item.resumable),
attempts: clampNumber(item.attempts, 0, 0, 10_000),
lastError: asText(item.lastError),
attempts: clampNumber(item.attempts, 0, 0, 10_000),
archiveRecoveryRedownloads: item.archiveRecoveryRedownloads === undefined
? undefined
: clampNumber(item.archiveRecoveryRedownloads, 0, 0, 1),
lastError: asText(item.lastError),
fullStatus: asText(item.fullStatus),
onlineStatus: VALID_ONLINE_STATUSES.has(onlineStatusRaw) ? onlineStatusRaw as "online" | "offline" | "checking" : undefined,
createdAt: clampNumber(item.createdAt, now, 0, Number.MAX_SAFE_INTEGER),