From 4f392d2399f762e280d03a81e39e24a79d7882d5 Mon Sep 17 00:00:00 2001 From: benjamin <118074832+its-benjamin@users.noreply.github.com> Date: Wed, 18 Nov 2026 19:24:18 +0700 Subject: [PATCH] chore(bundle): budget the Instant A825 driver - Raises the JS total budget from 4,000,000 to 4,010,000 bytes with the measured size and reason. - Matches OpenMouse-Project/mouse-protocol#310: the read-only A825 driver adds about 8 kB of JS. --- build/check-bundle-size.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/check-bundle-size.ts b/build/check-bundle-size.ts index 31b03412..1ce1fa92 100644 --- a/build/check-bundle-size.ts +++ b/build/check-bundle-size.ts @@ -46,12 +46,16 @@ import { join } from "node:path"; // extended drivers) adds about 77.5 kB of JS (3,816,912 -> 3,894,416 bytes // measured in the Update Mouse Protocol workflow); main grew 27.7 kB to // 1,413,917 bytes, below its cap. 3.95 MB leaves room for one more release. +// +// 2026-11-18: the Instant A825 read-only driver (Sades Kaze) adds about 8 kB +// of JS. Measured with the local @openmouse/protocol build: 4,000,437 bytes +// JS; main is 1,463,361 bytes, below its cap. export const BUDGET_BYTES: Record = { // G6 HE/receiver panels, travel charts, battery tooltips and OLED theme, // with protocol 0.60.0: measured 177,450 bytes CSS and 3,992,589 bytes JS. // Main stays at 1,459,853 bytes, below its existing separate cap. ".css": 178_000, - ".js": 4_000_000, + ".js": 4_010_000, }; // main-*.js measured 1,511,619 bytes right after the split (posthog ~377 kB