Skip to content

Releases: oleksiizlotnik/AutoSkeleton

v1.0.0 — Nuxt support

Choose a tag to compare

@oleksiizlotnik oleksiizlotnik released this 09 Oct 06:40

auto-skeleton-vue now works in Nuxt 3.10+ and Nuxt 4, and the API is stable. No breaking changes: existing Vue apps upgrade without code changes.

Nuxt module

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['auto-skeleton-vue/nuxt'],
  autoSkeleton: { persist: true },
})
  • <AutoSkeleton>, <SkeletonCanvas>, useAutoSkeleton and useAutoSkeletonConfig are auto-imported, and the stylesheet is included.
  • Options are typed in nuxt.config and can be overridden per environment with NUXT_PUBLIC_AUTO_SKELETON_* variables.
  • nuxtApp.$autoSkeleton exposes the config, e.g. for a custom store or clearing the cache on logout.

Server-side rendering

  • SSR is now supported and tested: both the content and the loading state render on the server and hydrate without mismatches.
  • The injection key is now Symbol.for('auto-skeleton'), and the server no longer shares a fallback config between requests.

Install: npm i auto-skeleton-vue@1.0.0
Docs: Nuxt guide · Full changelog: CHANGELOG.md