-
Notifications
You must be signed in to change notification settings - Fork 0
Migrating from 1.x
There are several changes from version 1.x that you need to note before migrating. These changes include:
-
The attributes
width
,height
, anddata-image-id
are no longer removed by default (severity: none). They will remain unchanged to ensure that VueTik can still read the transformed content. This also applies to settings such aspersistWidth
,persistHeight
, andpersistId
is not longer required or removed from the options array. -
The Twitter container will no longer be removed. The container will remain as it is to ensure that VueTik can still read the transformed content.
-
The values of
twitter.throwOnFail
andimage.throwOnFail
are now set to default to true (severity: medium). This means that VueTik will throw an error on failure by default, unless you opt out. -
Auto-saving images using
image.autoSave
is introduced (severity: medium). The use of theImageManager::class
is no longer required. You can disable this feature by settingimage.autoSave
to false and still useImageManager::class
to handle image saving. -
Transformed images will now change their URLs based on attributes using Glide (severity: low). This feature is only enabled when the configuration
glide.enabled
is set to true. -
Failed pre-uploaded transformed images (severity: medium). This occurs when Vuetik Laravel receives a pre-uploaded image, but the image is not stored in the database. Vuetik Laravel will throw an error if
image.throwOnFail
is set to true; otherwise, the image class attributes will be merged with the vuetik__failed__img class.
After these changes, I highly recommend using APIs such as parse and parseJson in your Jobs, especially if the Glide option is enabled.