Repository navigation
feat: keep a package's earlier versions for StableBar releases that can't run the newest - #54
Merged
Merged
Conversation
…an't run the newest The index listed one version of each package, so a version needing a newer StableBar than the latest release was offered to everyone on that release, who then got "needs StableBar X or later". Each package now lists its newest version for each minimumVersion, carried over from the previous index, oldest requirement first. StableBar 0.17 and earlier keep the first entry for an ID, so they keep a version they can run. A version that another needing no newer StableBar outranks leaves the index. Requirements compare as Semantic Versioning orders them: 0.9.0 before 0.10.0, a beta before its release. Closes #53
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Package
No package. This changes how the index is published: a package whose newest version needs a newer StableBar than someone runs stays offered to them in a version they can run. Closes #53.
Changes
scripts/build-index.shkeeps, for each package, the newest version for eachminimumVersion, carried over from the previous index (their archives are already on thestorerelease, with their checksums), and lists them oldest requirement first. A version that another needing no newer StableBar outranks leaves the index, and a retired package's versions leave with it.0.9.0before0.10.0,0.10.0-beta.…before0.10.0.seen.insert(entry.id).insertedinPackageIndex.load). StableBar 0.17.0 therefore keeps getting Fern 1.2.1 once Fern 1.3.0 (feat: let Fern fill its pills without a group on each widget #48, needs a 0.18.0 beta) is published. Offer each StableBar the newest Store version it can run StableBar#775 makes later builds pick the newest entry they can run, instead of the first.Until a StableBar with #775 is out, builds that could run the newest version also take the first entry, so they get the previous version. That's what the Store offers today until the release.
Testing
scripts/test.sh: 60 passed. 7 new index cases: the previous version stays listed first, a same-requirement version replaces it, requirements compare as versions (0.9.0/0.10.0) and a beta before its release, a lower requirement drops what it outranks, each requirement keeps its newest version, and a retired package leaves the index. 4 of them failed before the change.shellcheckon both scripts.build-index.shwith the liveindex.jsonas the previous index and Fern 1.3.0 from feat: let Fern fill its pills without a group on each widget #48 inpackages/:fern-1.3.0.tar.gz.Not checked: StableBar 0.17.0 reading such an index end to end. Private sources accept only
https, so it needs a hosted index. The behavior is read fromPackageIndex.loadin v0.17.0.Claude Opus 5.5 via Claude Code