From 80f5b59b83605531bc5d0bf0361fd0f913c099c2 Mon Sep 17 00:00:00 2001 From: Onyx Date: Fri, 4 Dec 2026 19:50:35 +0100 Subject: [PATCH] build: raise the bundle budgets for protocol 0.67.0 and patch dompurify The Update Mouse Protocol workflow measured main at 1,754,503 bytes and JS at 4,878,816 with @openmouse/protocol 0.67.0 (Viper Mini remapping, Angry Miao .97/.100R2, Aula SC590 Pro, Logitech profile write fixes). Main goes to 1.8 MB and JS to 5.0 MB, room for keyboard-protocol 1.10.0 too. dompurify 3.4.17 -> 3.5.1 for GHSA-qm7q-q8h9-jg8q and GHSA-hrxw-jjj6-2g2j, which failed npm audit in the Update Keyboard Protocol workflow. --- build/check-bundle-size.ts | 4 ++-- package-lock.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/check-bundle-size.ts b/build/check-bundle-size.ts index faccb7e0..d6227037 100644 --- a/build/check-bundle-size.ts +++ b/build/check-bundle-size.ts @@ -103,7 +103,7 @@ export const BUDGET_BYTES: Record = { ".css": 192_000, // 2026-12-03: shared LIGHTSPEED (#1651) plus the G915 X TKL editor (#1724) // measured 4,805,489 bytes of JS together; main 1,726,831 bytes. - ".js": 4_900_000, + ".js": 5_000_000, }; // main-*.js measured 1,511,619 bytes right after the split (posthog ~377 kB @@ -123,7 +123,7 @@ export const BUDGET_BYTES: Record = { // slot at startup, so the slot devices and their retry live in main: measured // 1,700,309 bytes with protocol 0.64.0 and keyboard-protocol 1.9.0. 1.75 MB // also covers the G915 X TKL editor wiring (#1724): 1,710,641 bytes. -export const MAIN_CHUNK_BUDGET_BYTES = 1_750_000; +export const MAIN_CHUNK_BUDGET_BYTES = 1_800_000; export const ASSETS = join("dist", "assets"); diff --git a/package-lock.json b/package-lock.json index 8868e274..c3671408 100644 --- a/package-lock.json +++ b/package-lock.json @@ -945,9 +945,9 @@ } }, "node_modules/dompurify": { - "version": "3.4.17", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.17.tgz", - "integrity": "sha512-B/pSlYVHQ58kqISD/yDjuJ1yfzI34m1gF4lAod2bwSRhiN4K5Cl3H8Af7hqB2PmTL911tdEudnnXn5FnhRoz0w==", + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.5.1.tgz", + "integrity": "sha512-9fRTM0QJhaSDzR2y4Ym59AW3J3wvNIsQrFQmDilCsExEA/Daks2t5UXh75tE38PB7v8S2/3+JP1UT89Zo9YvEg==", "license": "(MPL-2.0 OR Apache-2.0)", "optionalDependencies": { "@types/trusted-types": "^2.0.7"