Skip to content

Offer each StableBar the newest Store version it can run #775

Closed

Description

@M4n0x

Problem

The Store's index lists one version of each package: the newest. When that version's minimumVersion is above someone's StableBar, the Store still offers it, as a new package and as an update, and getting it fails with "Package fern needs StableBar 0.18.0 or later." A package that adopts a new feature therefore can't be published until a release carries that feature, or it breaks the Store for everyone on the current release.

The case now: Fern 1.3.0 (stablebox/stablebar-packages#48) fills its pills with group members (#727, #731), which ship in 0.18.0. Stable is 0.17.0. Published today, StableBar 0.17.0 would offer Fern 1.3.0 instead of 1.2.1 and then refuse it.

Proposal

  1. The index lists a version for each requirement (Keep a package's older versions in the index for StableBar releases that can't run the newest stablebar-packages#53, scripts/build-index.sh). Per package, it keeps the newest version for each minimumVersion the package has used, carried over from the previous index (older archives stay on the store release). The entries are ordered oldest requirement first, and an entry that another with the same or a lower requirement outranks is dropped.
  2. StableBar keeps the newest entry it can run. When an index lists several entries for one ID, PackageIndex.load (Sources/StableBar/WidgetPackage.swift) keeps the newest one whose minimumVersion this StableBar accepts (requiresNewerApp), instead of the first. When it accepts none, it keeps the newest, so the package page still says which StableBar it needs. The same applies to private package sources.
  3. Docs. minimumVersion in docs/packages.md: the Store offers an older StableBar the newest version it can run.

Why the order: every released StableBar keeps the first entry for each ID (seen.insert(entry.id).inserted in PackageIndex.load, checked in v0.15.0, v0.16.0 and v0.17.0). Listing the oldest requirement first keeps today's releases on a version they accept, with no app update. Builds with (2) pick by version, not by order. Neither part is enough alone. With only (1), 0.18.0 would keep taking Fern 1.2.1, and with only (2), 0.17.0 would still be offered 1.3.0.

Possible today

Hold the package until the release ships (#48 is a draft for that reason), or publish it and accept that the current release offers a version it refuses.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 17, 2026
  2. added a commit that references this issue on Nov 17, 2026
    24cb364
  3. stablebar-releases commented on Nov 20, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.18.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions