release: publish Multi-Debrid Downloader v2.0.15

Synchronize live speed telemetry, preserve known package sizes, refine responsive download status presentation, improve progress contrast and accessibility, simplify account creation, and prepare the verified v2.0.15 desktop release.
This commit is contained in:
Sucukdeluxe
2026-08-10 20:38:11 +02:00
parent a5758aa905
commit b670b92147
20 changed files with 452 additions and 172 deletions
+22
View File
@@ -0,0 +1,22 @@
import { describe, expect, it } from "vitest";
import { readFileSync } from "node:fs";
import { mergeKnownTotalBytes } from "../src/main/download-size";
describe("download size transitions", () => {
it("preserves a known metadata size when unrestrict has no replacement", () => {
expect(mergeKnownTotalBytes(2_000, null)).toBe(2_000);
expect(mergeKnownTotalBytes(2_000, 0)).toBe(2_000);
});
it("accepts a positive replacement size", () => {
expect(mergeKnownTotalBytes(2_000, 2_500)).toBe(2_500);
expect(mergeKnownTotalBytes(null, 2_500)).toBe(2_500);
});
it("applies the guarded merge to every unrestrict size transition", () => {
const source = readFileSync(new URL("../src/main/download-manager.ts", import.meta.url), "utf8");
expect(source).not.toContain("item.totalBytes = unrestricted.fileSize");
expect(source.match(/item\.totalBytes = mergeKnownTotalBytes\(item\.totalBytes, unrestricted\.fileSize\)/g)).toHaveLength(2);
});
});