Files
Grav/tests
Andy Miller 8426e91cac feat: surface remote next_major hint in Upgrader for cross-major migration notices
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.
2026-04-13 22:41:39 +01:00
..
2016-01-22 10:39:15 +01:00
2021-02-01 22:43:28 +07:00