v0.5.1
hono-preact v0.5.1: release notes
Released: 2026-06-01
A bundle-size patch. No API changes, no behavior changes.
Smaller client bundles
@hono-preact/iso and the hono-preact umbrella are now declared
side-effect-free ("sideEffects": false). The client entry imports a handful
of names from the package barrels, which re-export the whole iso runtime.
Without the side-effect hint, bundlers could not prove the re-exported modules
were pure, so Form, useAction, useOptimistic, persist, and the view
transition helpers were kept in a single chunk that loaded on every page.
With the hint in place, bundlers tree-shake the barrels. Feature code lands in
per-route lazy chunks loaded only when a page actually uses it.
Measured on the docs site's client build:
- Eager JavaScript per page: 24.45 kB to 15.31 kB gzip (down 37%).
- iso runtime baseline: about 14.7 kB to 9.2 kB gzip (down ~38%).
The framework has no module-level side effects (initialization always runs
through explicit install*() calls, and there are no bare or CSS side-effect
imports), so the declaration is accurate.
Upgrading
hono-preact@0.5.1 is a drop-in replacement for 0.5.0. Projects scaffolded
with create-hono-preact already pin ^0.5.0, so a fresh install or
pnpm update hono-preact picks up the smaller bundles with no code changes.