Skip to content

[6.x] Fix false "Update available" when installed version is newer than marketplace version#14890

Open
aaronbushnell wants to merge 1 commit into
statamic:6.xfrom
aaronbushnell:version-compare-bug-fix
Open

[6.x] Fix false "Update available" when installed version is newer than marketplace version#14890
aaronbushnell wants to merge 1 commit into
statamic:6.xfrom
aaronbushnell:version-compare-bug-fix

Conversation

@aaronbushnell

@aaronbushnell aaronbushnell commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

The CP shows a false "Update available" when the installed version is newer than the marketplace's indexed latest_version. This happens routinely in the gap between a release hitting Packagist (installable via Composer) and statamic.com indexing it.

Example: statamic/seo-pro installed at 7.12.1, marketplace latest_version still 7.12.0 → amber "Update available" badge shown, and it's counted in the updates badge.

What was altered:

  1. Addon::isLatestVersion(): '=''>='. Equal-or-newer is up to date.
  2. Updater.vue: derive "up to date" from the changelog (no releases of type === 'upgrade') instead of string equality. This reuses the server's existing release classification, so the per-product badge now agrees with the count badge.

Related

…ketplace latest

The update check treated "not exactly equal to the marketplace's latest"
as "an update is available", rather than "the installed version is older
than the latest". This surfaced an "Update available" badge whenever a
local install was ahead of the marketplace's indexed version (e.g. in the
window between a release landing on Packagist and the marketplace indexing
it).

- Addon::isLatestVersion() now uses `>=` instead of strict equality, so an
  install equal to or newer than the marketplace latest is up to date.
- The per-product updater badge derives "up to date" from the changelog's
  release types (no `upgrade` releases) instead of a string comparison,
  matching the server's classification and the count badge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@aaronbushnell aaronbushnell marked this pull request as ready for review June 27, 2026 01:47
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.

1 participant