Skip to content

Migrate from v2 to v3

With v3 the documentation was changed. You can find the previous version here.

Deprecations

Components

Component
abstracts/ComponentObserverreplaced with composable useBoosterComponentObserver
abstracts/AbstractOnlySsrremoved

options

Option
loaderremoved
componentAutoImportremoved
componentPrefixremoved

Components

Componenten wurden umbenannt.

OldNew
BoosterPictureBoosterPicture
BoosterImageBoosterImage
BoosterLayerBoosterLayer
BoosterIframeBoosterIframe
BoosterYoutubeBoosterYoutube
BoosterVimeoBoosterVimeo

BoosterPicture & BoosterImage

The property loader has been removed.

Directives

v-font

If the directive v-font is used, the composable useBoosterFont must be used. So that the $getFont function can be provided in the template.

html
<template>
  <span v-font="$getFont(…)"></span>
</template>

<script setup>
const { $getFont } = useBoosterFonts();
</script>

Note that when sub-components are used, the top-level component is given a useCritical. This is necessary so that the critical property is inherited.

html
<script setup>
useBoosterCritical();
</script>

for the use of critical components.

html
<template>
  <component critical></component>
</template>