Repository navigation
Description
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
- 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 eachminimumVersionthe package has used, carried over from the previous index (older archives stay on thestorerelease). The entries are ordered oldest requirement first, and an entry that another with the same or a lower requirement outranks is dropped. - 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 whoseminimumVersionthis 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. - Docs.
minimumVersionindocs/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
- Browse, install and update shared widget packages from a store #33 / feat: browse and install widget packages from a store #35 added the Store and
minimumVersion; Browse, install and update shared widget packages from a store #33 planned an index that lists each version. - A package that needs a beta is refused by that beta's own release #762 / fix: accept a package that needs a beta on that beta's own release #764: a
minimumVersionnaming a beta is accepted by that beta's release (c82c27b, in the 0.18.0 betas). That fix gives (2) the ordering it needs. - A configuration saved by a newer build fails to load in older builds #223 / feat: load configurations written for a newer StableBar #337: a package from a newer release that's already installed loads and skips what it doesn't know.
- Let a theme put widgets into its groups by widget type or role #727 / feat: let a theme put widgets into its groups #731 and feat: let Fern fill its pills without a group on each widget stablebar-packages#48 prompted this.
Triaged by Claude Code (Claude Opus 5.5).
Activity
feat: offer each StableBar the newest Store version it can run (stabl…
chore(release): 0.18.0 [skip ci]
stablebar-releases commentedon Nov 20, 2026
🎉 This issue has been resolved in version 0.18.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀