You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhancement: take the latest Swift, Dart and PHP versions from the release catalog instead of hard-coded constants #586
Runtime lag for Python and Go comes from the release catalog (latestStable(catalog, 'python') in python-scanner.ts, latestStable(catalog, 'go') in go-scanner.ts). Swift, Dart and PHP still use fixed constants in their scanners:
LATEST_SWIFT = { major: 6, minor: 0 } in swift-scanner.ts
LATEST_DART = { major: 3, minor: 6 } in dart-scanner.ts
LATEST_PHP = { major: 8, minor: 4 } in php-scanner.ts
Newer releases have shipped since (for example Swift 6.2, Dart 3.10 and PHP 8.5, all in 2025), so projects already on those versions are compared against an old baseline and the lag figures go stale with every release.
What to do
Read the latest Swift, Dart and PHP versions from the same catalog the Python and Go scanners use (adding entries to the catalog if they are missing).
Fall back cleanly (no runtime lag, not a wrong one) when the catalog has no entry or the run is offline without a cached catalog.
Add unit tests with a stubbed catalog.
Acceptance
No hard-coded latest-version constant remains in the three scanners.
With a stubbed catalog, a project on the newest version shows zero lag and an older one shows the expected lag.
Missing catalog data leaves runtime lag unset rather than guessed.
Confirmed: LATEST_SWIFT (6.0), LATEST_DART (3.6) and LATEST_PHP (8.4) are hard-coded constants in their scanners, while Python and Go use latestStable(catalog, ...).
Worth checking first whether the release catalog already has swift, dart and php entries; if not, they need adding there before the scanners can switch. When the catalog has no entry, leave runtimeLatest / runtimeMajorsBehind unset rather than falling back to a constant, as the issue says. A stubbed catalog in the tests keeps them offline and stable.
Activity
vibgrate-team commentedon Nov 4, 2026
Confirmed:
LATEST_SWIFT(6.0),LATEST_DART(3.6) andLATEST_PHP(8.4) are hard-coded constants in their scanners, while Python and Go uselatestStable(catalog, ...).Worth checking first whether the release catalog already has
swift,dartandphpentries; if not, they need adding there before the scanners can switch. When the catalog has no entry, leaveruntimeLatest/runtimeMajorsBehindunset rather than falling back to a constant, as the issue says. A stubbed catalog in the tests keeps them offline and stable.