Skip to content

build: raise the bundle budgets for protocol 0.67.0 and patch dompurify - #1796

Merged
onyxhq-dev merged 1 commit into
OpenMouse-Project:mainfrom
onyxhq-dev:build/budget-dompurify
Dec 4, 2026
Merged

onyxhq-dev merged 1 commit into
OpenMouse-Project:mainfrom
onyxhq-dev:build/budget-dompurify

Conversation

@onyxhq-dev

@onyxhq-dev onyxhq-dev commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Unblocks the Update Mouse Protocol and Update Keyboard Protocol workflows.

  • Main chunk budget 1.75 MB -> 1.8 MB and JS 4.9 MB -> 5.0 MB: with @openmouse/protocol 0.67.0 the workflow measured main at 1,754,503 bytes and JS at 4,878,816.
  • dompurify 3.4.17 -> 3.5.1 (lock file only) for GHSA-qm7q-q8h9-jg8q and GHSA-hrxw-jjj6-2g2j, which failed npm audit in the keyboard update run.

Note

Raise bundle size budgets to 1,800,000 main chunk and 5,000,000 JS total

Bumps the size limits in build/check-bundle-size.ts: MAIN_CHUNK_BUDGET_BYTES goes from 1,750,000 to 1,800,000 and the total JS budget from 4,900,000 to 5,000,000. This accommodates the larger bundles from protocol 0.67.0 and a dompurify patch in the updated lockfile.

Macroscope summarized 80f5b59.

Summary by CodeRabbit

  • Chores
    • Increased the allowed total JavaScript bundle size to 5,000,000 bytes and the main bundle size to 1,800,000 bytes.

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.
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The bundle checker’s total JavaScript budget increases from 4,900,000 to 5,000,000 bytes. Its main-chunk budget increases from 1,750,000 to 1,800,000 bytes. The checking logic is unchanged.

Changes: Bundle size budgets

Layer / File(s) Summary
Update bundle size limits
build/check-bundle-size.ts
The total JavaScript budget increases to 5,000,000 bytes. The main-chunk budget increases to 1,800,000 bytes.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related issues

  • OpenMouse-Project/openmouse#140: This PR raises the same main bundle budget discussed in the issue. It does not add the code-splitting work described there.

Possibly related PRs

Suggested labels: area: ci, area: dependencies, type: maintenance

Suggested reviewers: ruvelro, macroscopeapp

Merge Risk: Minimal · up to 80f5b · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names two changes: raising the bundle budgets for protocol 0.67.0 and patching dompurify. The raw summary covers only the budget increases in build/check-bundle-size.ts. The dompurify lock-f…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names two changes: raising the bundle budgets for protocol 0.67.0 and patching dompurify. The raw summary covers only the budget increases in build/check-bundle-size.ts. The dompurify lock-file update is excluded from the summary because package-lock.json is filtered out, but the objectives confirm it. The title covers the main change, which is the budget increase, and it also names the secondary dompurify patch. It is specific and matches the changeset, so the check passes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5981127 and 80f5b59.

Files ignored due to path filters: 1

  • package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 1

  • build/check-bundle-size.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@onyxhq-dev
onyxhq-dev merged commit b0c31ee into OpenMouse-Project:main Dec 4, 2026
5 checks passed
@macroscopeapp

macroscopeapp Bot commented Dec 4, 2026

Copy link
Copy Markdown

Approvability

Verdict: Approved at 80f5b59

Macroscope's review found this PR approvable — The changes are confined to ignored paths and are described as modest bundle-budget increases and a DOMPurify lockfile update. The supplied scope and review context identify no material risk requiring human judgment.

Notes:

  • Your repo's Minimum Blocking Severity is Off, so correctness findings do not automatically block approval.
  • No code objects were reviewed. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant