chore(deps): bump happy-dom to 21, biome to 2.6, bun to 1.4.4
Merged
UG
3d ago+44+44+01234567890123456789-36-36-01234567890123456789
Closes #26
Summary
Fixes two Socket alerts on happy-dom@20.14.6, which packages/react pulls in through @happy-dom/global-registrator (a dev dependency):
| Advisory | Affected | Fixed in |
|---|---|---|
| SSRF via iframe and link stylesheet when parsing untrusted HTML | <= 20.14.6 | 21.0.0 |
| Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution | 17.0.0 to 21.0.3 | 21.0.4 |
No 20.x release has these fixes, so this takes the major bump to ^21.0.4.
Also bumps:
@biomejs/biomefrom 2.5.15 to 2.6.6@types/bunto^1.4.4packageManagertobun@1.4.4(root,packages/kirari,packages/compat)
Biome 2.6 follow-ups
Biome 2.6 adds rules that flagged existing code:
noComponentHookFactories(error): theStreamedtest components inpackages/react/test/hook.test.tsxandstream.test.tsxwere defined inside functions and now live at module level. The hook test passes itshandlein as a prop.noDynamicNamespaceImportAccess(warning): the compat tests compare exports withObject.entriesandReflect.getinstead of indexing the namespace.useLiteralKeys(info): one fix inscripts/check-packages.ts.- The
$schemaURL inbiome.jsonnow points at 2.6.6. Only that line changed, sincebiome migratereformats the whole file.
Testing
bun run typecheck,bun run testandbun run checkall pass.- The react package tests pass on happy-dom 21.
- These runs used bun 1.3.4 locally, not the newly pinned 1.4.4; CI covers 1.4.4.
Summary by cubic
Bumps happy-dom to 21.0.4 to fix two Socket security alerts in packages/react (SSRF via iframe and link stylesheet, and host code execution via unsanitized import alias), and bumps @biomejs/biome to 2.6.6, @types/bun to ^1.4.4, and the pinned bun to 1.4.4.
Biome 2.6 follow-ups
- The
Streamedtest components move to module level for the newnoComponentHookFactoriesrule; the hook test passes itshandleas a prop instead. - The compat tests compare exports with
Object.entriesandReflect.getinstead of dynamic namespace access. - One
useLiteralKeysfix inscripts/check-packages.tsand thebiome.jsonschema URL now point at 2.6.6.
Summary by CodeRabbit
- Chores
- Updated Bun, Biome, and the browser-testing environment to newer versions.
- Refreshed package manager version declarations across the relevant packages.
- Adjusted package compatibility checks and test setup; no end-user functionality changes are noted.