Upgrading @vite-pwa/nuxt 0.9 to 0.10
Breaking0.9.1 → 0.10.8Breaking1New2Changed3Fixed5Other1
BreakingUpgrade verdict
1 breaking change.
In plain terms
- The package now adds its type declarations to Vue itself instead of Vue's internal runtime-core package, which can affect TypeScript setups that relied on the old target.
Must act 1 item needs code or config changes
What you must change
Breaking1
Augments
vue rather than @vue/runtime-core for module type declarations.vue@vue/runtime-coreAPI changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
interface RuntimeNuxtHooks extends ModuleRuntimeHooks
- removed:
interface NuxtConfig - removed:
interface NuxtOptions - removed:
property NuxtConfig['pwa']?: Partial<ModuleOptions> - removed:
property NuxtOptions['pwa']?: ModuleOptions
- removed:
interface ComponentCustomProperties - removed:
property ComponentCustomProperties.$pwa?: UnwrapNestedRefs<PwaInjection>
- removed:
interface NuxtConfig - removed:
interface NuxtOptions - removed:
property NuxtConfig['pwa']?: Partial<ModuleOptions> - removed:
property NuxtOptions['pwa']?: ModuleOptions
- added:
interface ComponentCustomProperties - added:
property ComponentCustomProperties.$pwa?: UnwrapNestedRefs<PwaInjection>
- removed:
declare module '@nuxt/schema' - changed:
const default: _nuxt_schema.NuxtModule<PwaModuleOptions> → const default: _nuxt_schema.NuxtModule<ModuleOptions> - added:
interface ModuleRuntimeHooks - added:
property ModuleRuntimeHooks.'service-worker:activated': (data: { url: string; registration: ServiceWorkerRegistration }) => HookResult - added:
property ModuleRuntimeHooks.'service-worker:registered': (data: { url: string; registration?: ServiceWorkerRegistration }) => HookResult - added:
property ModuleRuntimeHooks.'service-worker:registration-failed': (data: { error?: unknown }) => HookResult
- added:
function usePWA(): UnwrapNestedRefs<PwaInjection> | undefined
- removed:
declare module '@vue/runtime-core' - added:
declare module 'vue'
- removed:
declare module '@nuxt/schema' - removed:
declare module 'nuxt/schema' - added:
declare module '#app' - added:
export { ModuleRuntimeHooks } from './module'