Skip to content

0.5.0

Compare
Choose a tag to compare
@crezra crezra released this 08 Sep 10:28
· 604 commits to main since this release
6dbc71b

🚨 BREAKING CHANGE

Warning

Existing assets saved with the field will not work anymore once you update the tool, please migrate your existing data when updating the package.

This PR introduces a major breaking changing related to how the data is saved in the database, initially we tried to follow Laravel Nova's built-in fields as much as possible by having a two column set up to save the asset's path and then the asset's disk if needed. However, this approach isn't as reliable as we hoped for it to be. There was indeed a particular use case that wasn't in our scope when building the field, when saving multiple assets from different disks, only the one disk was to be saved in the disk column and that makes the tool behaves in unintended ways.

We have moved forward with a JSON schema to save the field's data.

Starting from the next 0.5 release, the data will change from :

image image_disk
<image-path-value> <disk-name>

TO

image
{"path": "<image-path-value>", "disk": "<disk-name>" }

So in other words, each asset that will saved with its corresponding disk.

We regret to introduce such a change so early, but it is a change that needs to be done unfortunately.

To migrate your existing data, you may defined a command or action to transform your data to the required schema.

What's Changed

Full Changelog: v0.4.0...v0.5.0