Skip to content

v0.1.1 — i18n fixes, locale packs, shadow tokens

Choose a tag to compare

@n-ichimura n-ichimura released this 12 Jun 11:40
05753a0

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 a globalThis-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. The DEFAULT_MESSAGES key inventory is documented as a public contract, and CI fails if a shipped pack ever misses a key.
  • data-message-params on 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 component box-shadow now reads from tokens; no literal colors remain (stylelint-guarded).
  • Recipe CLInpx @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.