mirror of
https://github.com/getgrav/grav.git
synced 2026-05-09 17:35:53 +02:00
Reads the new `next_major` block from grav.json (sent by a family-aware resources server when a 1.x client is served a 1.x release alongside a 2.x hint) and exposes it via Upgrader::isNextMajorAvailable(), getNextMajorVersion(), getMigrationUrl(). The admin plugin uses these to show a dashboard migration banner without implying an automatic upgrade. isNextMajorAvailable() no longer compares raw remote vs local majors — under family-aware serving, the remote version is already the client's family, so the old logic would silently stop firing. It now requires the server hint and verifies it truly points to a newer major. Tests updated to inject the hint via an extended TestableUpgrader.