Repository navigation
2.0.0-alpha.44
Pre-release
Pre-release
Breaking
- A route's path must start with its nearest routed ancestor's path followed by
/whenever its path, page or page data is written (a new route, a pathPATCH, linking a route), else a 422 onpathorroute.path; existing routes are not re-checked until one of those is written (#602)
Added
#[Silverback\RoutePrefix('/announcements')]on a page data class puts a fixed prefix after the nearest routed ancestor's path in every route of that class written through the API, is applied by fixture route generation, and is advertised asroutePrefixon the class's HydrasupportedClass(#602)- Moving a page or page data to a new
parentPage/parentPageDatathrough the API rewrites its route under the new required start (keeping the part after the old one, else its last segment) and its routed descendants' routes, redirecting every old path; a page with no route moves its routed descendants; a taken or invalid new path is a 422 on the changed parent field and nothing is written (#602)
Fixed
- A
cascadeChildPathsroutePATCHthat would rewrite a descendant onto a path already in use is a 422 onpathbefore anything is written (#602)
Tooling
ResidentMemoryTest's fallback tests no longer fail when PHP allocates a memory chunk between two reads of its usage (#602)