From d7ffd2393eb8206c1e95b1e7b0eb911a6bb33130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Henrique=20Prata=20Gon=C3=A7alves?= Date: Tue, 1 Dec 2026 19:03:39 -0300 Subject: [PATCH] feat(8bitdo): check retro r8 firmware versions - add check-only mouse 11.03 and receiver 10.14 entries - match the r8 by brand and name, linking to 8bitdo support - cover the r8 entries in the firmware update tests --- public/firmware-manifest.json | 24 ++++++++++++++++++++ scripts/firmware-manifest.extra.json | 24 ++++++++++++++++++++ src/device/firmware-updates.test.ts | 33 ++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) diff --git a/public/firmware-manifest.json b/public/firmware-manifest.json index d8257cf1..d3f0883b 100644 --- a/public/firmware-manifest.json +++ b/public/firmware-manifest.json @@ -644,6 +644,30 @@ "releaseNotes": "Updated USB device name to \"Yeti X WoW Edition\"", "startBlockers": [], "startWarnings": [] + }, + { + "id": "8bitdo-retro-r8-mouse", + "brand": "8BitDo", + "nameMatch": [ + "Retro R8" + ], + "firmwareName": "Mouse", + "latestVersion": "11.03", + "required": false, + "downloadUrl": "https://support.8bitdo.com/", + "releaseNotes": "Mouse 11.03 == latest non-beta R8 mouse firmware in the 8BitDo firmware API (firmware_type 84) on 2026-12-01. Check-only: update through 8BitDo Ultimate Software V2." + }, + { + "id": "8bitdo-retro-r8-receiver", + "brand": "8BitDo", + "nameMatch": [ + "Retro R8" + ], + "firmwareName": "Receiver", + "latestVersion": "10.14", + "required": false, + "downloadUrl": "https://support.8bitdo.com/", + "releaseNotes": "Receiver 10.14 == latest non-beta R8 2.4G receiver firmware in the 8BitDo firmware API (firmware_type 85) on 2026-12-01. Check-only; see mouse entry." } ] } diff --git a/scripts/firmware-manifest.extra.json b/scripts/firmware-manifest.extra.json index 3958ac96..21630807 100644 --- a/scripts/firmware-manifest.extra.json +++ b/scripts/firmware-manifest.extra.json @@ -72,6 +72,30 @@ "firmwareName": "Dongle USB", "latestVersion": "8.0.3", "releaseNotes": "Dongle USB 8.0.3 == xpanel 2.6.2 DONGLE_USB_LATEST. Check-only; see mouse entry." + }, + { + "id": "8bitdo-retro-r8-mouse", + "brand": "8BitDo", + "nameMatch": [ + "Retro R8" + ], + "firmwareName": "Mouse", + "latestVersion": "11.03", + "required": false, + "downloadUrl": "https://support.8bitdo.com/", + "releaseNotes": "Mouse 11.03 == latest non-beta R8 mouse firmware in the 8BitDo firmware API (firmware_type 84) on 2026-12-01. Check-only: update through 8BitDo Ultimate Software V2." + }, + { + "id": "8bitdo-retro-r8-receiver", + "brand": "8BitDo", + "nameMatch": [ + "Retro R8" + ], + "firmwareName": "Receiver", + "latestVersion": "10.14", + "required": false, + "downloadUrl": "https://support.8bitdo.com/", + "releaseNotes": "Receiver 10.14 == latest non-beta R8 2.4G receiver firmware in the 8BitDo firmware API (firmware_type 85) on 2026-12-01. Check-only; see mouse entry." } ] } diff --git a/src/device/firmware-updates.test.ts b/src/device/firmware-updates.test.ts index afdd6d58..18dc82ff 100644 --- a/src/device/firmware-updates.test.ts +++ b/src/device/firmware-updates.test.ts @@ -214,3 +214,36 @@ test("starlight X entity entries compare per element without a download", () => const current = getDfuInfo({ ...ref, firmware: ["Mouse 8.0.3", "Dongle RF 8.0.3", "Dongle USB 8.0.3"] }, m); assert.equal(current?.dfuAvailable, false); }); + +test("8BitDo Retro R8 compares mouse and receiver versions by name", () => { + const entry = (firmwareName: string, latestVersion: string) => ({ + id: `8bitdo-retro-r8-${firmwareName.toLowerCase()}`, + brand: "8BitDo", + nameMatch: ["Retro R8"], + firmwareName, + latestVersion, + required: false, + downloadUrl: "https://support.8bitdo.com/", + }); + const m = { + manifestVersion: 3, + updatedAt: "2026-12-01T00:00:00.000Z", + source: "test", + devices: [entry("Mouse", "11.03"), entry("Receiver", "10.14")], + } as unknown as import("./firmware-updates.ts").FirmwareManifest; + const ref = { + brand: "8BitDo", + name: "8BitDo Retro R8 Mouse (N Edition)", + modelId: null, + firmware: ["Mouse 11.03", "Receiver 10.14"], + }; + const current = getDfuInfo(ref, m); + assert.equal(current?.dfuAvailable, false); + assert.equal(current?.entityName, "Mouse"); + const receiverBehind = getDfuInfo({ ...ref, firmware: ["Mouse 11.03", "Receiver 10.13"] }, m); + assert.equal(receiverBehind?.dfuAvailable, true); + assert.equal(receiverBehind?.entityName, "Receiver"); + assert.equal(receiverBehind?.downloadUrl, "https://support.8bitdo.com/"); + const other = getDfuInfo({ ...ref, brand: "Logitech", name: "Logitech Retro R8" }, m); + assert.equal(other, null); +});