Skip to content

v4.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Aug 09:26
· 11 commits to main since this release

Tip

The plugin now has a proper 📖 documentation!

   🚨 Breaking Changes

   ℹ️ Migrating from v3 to v4

Kirby Headless v4 contains a breaking change: the result of the toResolvedBlocks() field method has changed. Before, the resolved blocks fields were nested within the resolved key. Now the resolved fields overwrite the original fields. This results in less duplication and a cleaner structure.

Update your frontend code to reflect this change. For example, instead of accessing the resolved key like block.content.resolved?.team, you can now access the resolved field directly like block.content.team.

Resolved Key

If you don't want to update your frontend code, you can still update to v4 and use the old structure by defining a resolvedKey in your config.php:

return [
    'blocksResolver' => [
        'resolvedKey' => 'resolved'
    ]
];
    View changes on GitHub