Upgrading @vite-pwa/nuxt 0.10 to 1
Breaking0.10.8 → 1.1.1Breaking1New1Fixed4Other1
BreakingUpgrade verdict
1 breaking change.
In plain terms
- The package now depends on a new major version of the underlying PWA plugin, which can change how existing setups behave.
Must act 1 item needs code or config changes
Moves vite-plugin-pwa 0.21.2 → 1.3.0. Your build may pick other versions.
What you must change
Breaking1
Updates vite-plugin-pwa to v1.0.0, which may require callers to adapt to its breaking changes.
vite-plugin-pwaAPI changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
interface NuxtHooks extends ModuleHooks
- added:
interface NuxtHooks extends ModuleHooks
- added:
interface ModuleHooks extends PwaModuleHooks - added:
interface PwaModuleHooks - added:
property PwaModuleHooks.'pwa:beforeBuildServiceWorker': (options: ResolvedVitePWAOptions) => HookResult - added:
property PwaModuleOptions.experimental?: { enableWorkboxPayloadQueryParams?: true }
- added:
const _default: import('vue').DefineComponent<PwaAppleSplashScreenImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, str… - added:
default _default - added:
export { PwaAppleSplashScreenImageProps }
- added:
const _default: import('vue').DefineComponent<PwaAppleImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import(… - added:
default _default - added:
export { PwaAppleImageProps }
- added:
const _default: import('vue').DefineComponent<PwaFaviconImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, impor… - added:
default _default - added:
export { PwaFaviconImageProps }
- added:
const _default: import('vue').DefineComponent<PwaMaskableImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, impo… - added:
default _default - added:
export { PwaMaskableImageProps }
- added:
const _default: import('vue').DefineComponent<PwaTransparentImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, i… - added:
default _default - added:
export { PwaTransparentImageProps }
- added:
type PWAImageType<T> = T extends 'transparent' ? PwaTransparentImageProps['image'] | (Omit<PWAImage, 'image'> & { image: PwaTransparentImageProps['image'] }) : T extends 'maskable' ?…
- added:
declare module '@nuxt/schema' - added:
declare module 'nuxt/schema' - added:
export { ModuleHooks } from './module' - added:
export { PwaModuleHooks } from './module'