Releases: johannschopplich/kirby-headless
Releases · johannschopplich/kirby-headless
v4.0.2
🐞 Bug Fixes
- Add
Accept
andContent-Type
default headers back - by @johannschopplich (430b8)
View changes on GitHub
v4.0.1
🐞 Bug Fixes
- Allow
X-Cacheable
access control header by default - by @johannschopplich (60a33)
View changes on GitHub
v4.0.0
Tip
The plugin now has a proper 📖 documentation!
🚨 Breaking Changes
- Overwrite resolved field values by default - by @johannschopplich (c1c3f)
ℹ️ 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
v3.3.0
🐞 Bug Fixes
- Resolve blocks in
toResolvedLayouts
correctly - by @johannschopplich (d9416)
View changes on GitHub
v3.2.1
🐞 Bug Fixes
- Rename
overwriteContent
toreplaceValues
- by @johannschopplich (4b7d2)
View changes on GitHub
v3.2.0
🚀 Features
overwriteContent
option for resolved blocks - by @johannschopplich (6e5ca)
View changes on GitHub
v3.1.6
🐞 Bug Fixes
- Strict check for global route override - by @johannschopplich (8ef67)
- Don't track
tools
in dist package - by @johannschopplich (9cfcb)
View changes on GitHub
v3.1.5
No significant changes
View changes on GitHub
v3.1.4
v3.1.3
🚀 Features
breadcrumbMeta
function for Schema.org markup - by @johannschopplich (ac3fd)