Skip to content

v3.22.0

Choose a tag to compare

@s00d s00d released this 30 Jul 12:54
1df9e31

compare changes

🚀 Enhancements

  • core: Named numberFormats / datetimeFormats, Intl formatter cache, reactive store (#235)
  • nuxt: httpCacheDuration Cache-Control on /_locales payloads; dateBuild defaults to content fingerprint (#235)
  • nuxt: Compressed public translation payloads when nitro.compressPublicAssets is enabled (#235)
  • core: Translation Memory API — resolveTranslations() / setTranslation(key, value) (+ framework adapters, test-utils) (#235, 25fc2de8)
  • astro: Routing-context isolation; wire numberFormats / datetimeFormats (#235)
  • react, preact: Correct ARIA attrs on I18nSwitcher (aria-haspopup / aria-expanded) (882390c2)
  • build: Fail package builds on TypeScript declaration errors (afterDiagnostic) (eae3fc6e)

🩹 Fixes

  • i18n: Merge translation layers without flattening dumps (25fc2de8)
  • switcher: Hide disabled locales; restore customDisabledLinkStyle / active style precedence (#235)
  • hmr: Skip no-op file writes; concurrent re-merge on root-locale change (#235)
  • runtime: Keep outgoing chunk as fallthrough during page transitions (same locale) (#235)
  • devtools-ui: Harden path resolution with safeResolvePath (#235)

⚠️ Breaking Changes

  • SSR chunks moved from useState('i18n-ssr-chunks') to nuxtApp.payload.data['i18n-ssr-chunks'] (#235)
  • getAllTranslations() removed from @i18n-micro/vue — use resolveTranslations() / getStorage() / getRouteCache() (#235)
  • Default dateBuild is a content fingerprint (payload ?v= changes once on upgrade) (#235)

📖 Documentation

  • news: Release notes for v3.22.0 — formats, cache, Translation Memory (cfa409c6)
  • Document formats, cache, and switcher DX (#235)

🏡 Chore

  • Vitest migration, shared Playwright fixtures, consolidated test configs (#235)
  • deps: Prefer catalog: across workspace package.json files (1df9e31d)
  • workflows: Use ubuntu-latest instead of self-hosted (a1c6d4d6, acd48120)
  • Restore root package version to 3.21.4 before release (ec299229)

❤️ Contributors