Skip to content

fix: read Swift, Dart, and PHP latest versions from the release catalog - #610

Open
vibgrate-team wants to merge 1 commit into
mainfrom
cursor/catalog-runtime-lag-db1f
Open

vibgrate-team wants to merge 1 commit into
mainfrom
cursor/catalog-runtime-lag-db1f

Conversation

@vibgrate-team

Copy link
Copy Markdown
Contributor

Summary

Swift, Dart, and PHP runtime lag now comes from the release catalog (latestStable), the same way Python and Go already do. The hard-coded LATEST_SWIFT, LATEST_DART, and LATEST_PHP constants are gone, so lag no longer freezes on an old baseline.

  • The bundled catalog adds Swift and Dart release lines and the PHP 8.5 cycle.
  • When the catalog has no released entry for a product, runtimeLatest and runtimeMajorsBehind stay unset.
  • Stubbed-catalog tests cover newest (zero lag), older (the minor gap), and a missing catalog (lag unset).

Related issues

Closes #586

Checklist

  • pnpm test passes
  • pnpm lint is clean
  • pnpm typecheck is clean
  • Docs updated (README / DOCS / ARCHITECTURE) where behavior changed
  • Determinism preserved — identical input still produces identical graph.json / report output (content-hashed IDs, stable sorts; no time, randomness, or filesystem-order dependence)
  • No proprietary or internal references — public, Apache-2.0 content only
  • Commits use Conventional Commits and are signed off (git commit -s, DCO)

Notes for reviewers

Lag is the gap between the manifest's minimum version and the newest released catalog cycle. An unreleased cycle is ignored. Swift and Dart are not on endoflife.date; their bundled cycles are the stable release lines, with eol: false because no end-of-life date is published there.

Open in Web Open in Cursor 

Hard-coded latest-version constants made runtime lag go stale after each
release. The scanners now use latestStable() the way Python and Go do,
and leave lag unset when the catalog has no released entry.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: take the latest Swift, Dart and PHP versions from the release catalog instead of hard-coded constants

2 participants