v0.1.1 — i18n fixes, locale packs, shadow tokens
Patch release — one bug fix plus strictly additive work, per VERSIONING.md. Markup compatibility with 0.1.0: fully additive, no renames or removals.
Fixed
setMessages()now reaches behaviors no matter which dist entry it is imported from (#216). The minified bundles each inlined a copy of the i18n module, so overrides set through the main entry never reached the auto-init behaviors. The catalog is now aglobalThis-keyed singleton shared by every module copy; the bundles stay self-contained single files.
Added
- Japanese locale pack (#217) —
import ja from '@hypermedia-components/core/locales/ja'; setMessages(ja);translates every built-in string. TheDEFAULT_MESSAGESkey inventory is documented as a public contract, and CI fails if a shipped pack ever misses a key. data-message-paramson field-errors items (#218) — a JSON object of server-provided interpolation values, so catalog overrides may use placeholders beyond{field}/{code}(e.g.{"stock": 5}with在庫 {stock} を超えています。). Malformed JSON degrades to the existing fallback chain.- Elevation shadow token scale
--hc-shadow-sm/-md/-lg/-overlay+--hc-shadow-edge(#212, #214) with dark-theme overrides — every componentbox-shadownow reads from tokens; no literal colors remain (stylelint-guarded). - Recipe CLI —
npx @hypermedia-components/cli add <recipe>copies recipe scaffolds into your project (@hypermedia-components/cli@0.1.0, versioned independently). - Docs — blessed date-field pattern (#219, pinned by a browser suite incl. axe) and a new Anchored positioning fundamentals page.
Security
- Docs site: Astro 5.18 → 6.4, Starlight 0.32 → 0.40 (docs site only; the published package has no runtime dependencies).
Full details in CHANGELOG.md.