Files
Grav/system
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
..
2025-04-01 17:03:42 -06:00
2026-04-13 10:35:31 +01:00
2021-10-21 06:31:33 -06:00
2020-10-05 11:16:17 +03:00
2025-12-27 19:52:39 -07:00
2025-11-14 11:32:58 +00:00
2025-09-20 22:49:21 -06:00
2025-09-20 22:12:55 -06:00