Repository navigation
Comparing changes
Open a pull request
base repository: alexandre-vl/bb
base: plugin-updates-outside-range
head repository: alexandre-vl/bb
compare: plugin-track-range
- 18 commits
- 35 files changed
- 1 contributor
Commits on Oct 21, 2026
-
Add a db function that changes an installed plugin's tracking range i…
…n place setInstalledPluginTrackingRange rewrites the source and range columns of a git semver-range or npm row in one compare-and-set UPDATE and clears the persisted update check and last failure, keeping provenance, the resolved release, the enabled flag, and every other column.
Configuration menu - View commit details
-
Copy full SHA for 4eed49f - Browse repository at this point
Copy the full SHA 4eed49fView commit details -
Change an installed plugin's tracking range in place on the server
POST /api/v1/plugins/:id/tracking-range takes { range, dryRun? } and returns { applied, previousRange, range, check }. Under the registration and lifecycle locks it rewrites the source and range of a git semver-range row or an npm row with a managed artifact, keeping provenance, the catalog link, the enabled flag, and all plugin data, then checks the plugin again and persists that check. A dry run or the current range checks a copy of the row and persists nothing. The range's whitespace collapses to single spaces before it is validated, compared, and stored. previousRange is the range, exact version, or dist-tag the install followed, and null for an npm install that named no version. It refuses path, builtin, and git ref sources, older npm installs whose directory depends on their spec, invalid ranges, bare versions, a range that admits no version, and a range that admits neither the installed release nor a newer one: <1.0.0 || >=2.0.0 at 1.5.0 is accepted, and <=1.5.0 freezes 1.5.0. A pinned npm update now points at bb plugin track instead of remove and reinstall, and the source detail reports an npm range.Configuration menu - View commit details
-
Copy full SHA for 6521797 - Browse repository at this point
Copy the full SHA 6521797View commit details -
Add plugins.experimental_setTrackingRange to the SDK
The SDK member posts the range and dry-run flag to the tracking-range route and parses the result. It is plugin-visible through PluginBbSdk, so it is experimental, listed in docs/api_to_audit.md, in the backend SDK reference, and on the Plugin Guide's bb SDK card.
Configuration menu - View commit details
-
Copy full SHA for 76da556 - Browse repository at this point
Copy the full SHA 76da556View commit details -
Add bb plugin track and document range changes
bb plugin track <id> <range> previews what the range offers, asks for confirmation (--yes skips, non-TTY refuses), then changes the range and reports the new check; --dry-run only previews and --json prints the result. bb plugin update now tells a pinned npm plugin to use bb plugin track, which keeps its settings, secrets, and schedules. The plugins guide chapter and the bb-cli command index document the command, and the guide explains that an install keeps the range it was installed with.
Configuration menu - View commit details
-
Copy full SHA for 8bdb537 - Browse repository at this point
Copy the full SHA 8bdb537View commit details -
Tell pinned legacy npm installs to reinstall to track a range
A legacy npm row with an exact spec resolves as pinned, so no update ever moves it to managed storage; its refusal now says so instead of pointing at bb plugin update. Its update check carries the same refusal as the pinned check's detail, and bb plugin update prints that detail instead of suggesting bb plugin track.
Configuration menu - View commit details
-
Copy full SHA for eca6dfe - Browse repository at this point
Copy the full SHA eca6dfeView commit details -
Add Change range to the plugin details
The Details section of a git semver-range or npm plugin shows its update range with a Change range action; an npm install without a range shows the dist-tag it follows, its latest release, or None for an exact version. The dialog previews what a range offers through a dry run of plugins.experimental_setTrackingRange, enables the change only for the previewed range, clears a failed change once the range is edited or previewed again, and refreshes the plugin list and source after it applies. The source detail reports npmSpecKind and, for a dist-tag install, distTag, and bb plugin source prints the dist-tag.
Configuration menu - View commit details
-
Copy full SHA for 57b717e - Browse repository at this point
Copy the full SHA 57b717eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53172fc - Browse repository at this point
Copy the full SHA 53172fcView commit details -
Warn before tracking a range with no upper bound
The tracking range result gains openEnded, true when some comparator set of the range has no upper bound, so every future major release would be offered. bb plugin track warns in its dry run and before it asks, and the Change range preview shows the warning; both still accept the range.
Configuration menu - View commit details
-
Copy full SHA for 319901e - Browse repository at this point
Copy the full SHA 319901eView commit details -
Rely on per-plugin check isolation after a range change
checkRows records a failed check as unavailable for that plugin, so the range change takes the entry it returns instead of persisting its own. The registration lock now covers only reading the row, planning the change, and writing it; the check after the change runs once it is released, under the lifecycle lock checkRows takes for that plugin. A dry run takes no lock, so a preview neither waits behind an install, update, or removal nor blocks one while it probes the source. The preview, which must not persist, reports a failure with the same failedCheckEntry.
Configuration menu - View commit details
-
Copy full SHA for e3cb0a6 - Browse repository at this point
Copy the full SHA e3cb0a6View commit details -
Prefill Change range from the newest release outside the range
When the update check found a newer release outside the installed range, the dialog opens on >=<installed> <(major of that release + 1).0.0, which always includes it, and says why; the user can edit it before previewing. Previews name releases with the compact release label, mark a candidate that may break, and say when a newer release stays outside the previewed range.
Configuration menu - View commit details
-
Copy full SHA for ca25f72 - Browse repository at this point
Copy the full SHA ca25f72View commit details -
Mark breaking candidates and excluded releases in bb plugin track
The preview and result lines now carry the update check's may-break flag and the newer release the range still excludes, as bb plugin update does.
Configuration menu - View commit details
-
Copy full SHA for f795984 - Browse repository at this point
Copy the full SHA f795984View commit details -
Test that a range preview reports what the new range excludes
A dry run against the proposed range returns the update check's breaking flag and the newest release outside that range.
Configuration menu - View commit details
-
Copy full SHA for c873e87 - Browse repository at this point
Copy the full SHA c873e87View commit details -
Rewrite plugin update docs around ranges, reviewed releases, and track
The distribution guide's Updates section now covers, together, staying inside the installed range without downgrading, applying only the reviewed release, reporting the newest release outside the range, and moving an install to another range with bb plugin track or Change range. The CLI guide drops the range explanation PR-C now gives and mentions the Change range suggestion.
Configuration menu - View commit details
-
Copy full SHA for ba6aa28 - Browse repository at this point
Copy the full SHA ba6aa28View commit details -
Suggest the range that follows a release outside the installed range
outsideRange gains an optional suggestedRange. When the release is newer than everything the range admits, it is >=<installed> <(major of that release + 1).0.0, where installed is the release bb resolved (the git tag's version or the npm version, never package.json), so the range does not grow; otherwise, such as for a release between two || alternatives, it is <range> || >=<release> <(major + 1).0.0, so no release the range allowed is dropped. It is recomputed when an update carries the release forward, and left out for an install bb plugin track refuses, such as a legacy npm install. The Change range dialog opens on the suggestion, and bb plugin update's outside-range lines and bb plugin outdated's per-plugin footnote end with To follow it: bb plugin track <id> "<suggestedRange>". Double quotes protect <, >, and | in POSIX shells, PowerShell, and cmd.exe. A server that computes no suggestion, or a check such a server saved, leaves the field out: the dialog then opens on the current range and the CLI prints no command.
Configuration menu - View commit details
-
Copy full SHA for 3202b81 - Browse repository at this point
Copy the full SHA 3202b81View commit details -
Document tracking range suggestions, refusals, and lock scope
The plugins guide, the distribution reference, and the audit entry describe the range bb suggests for a release outside the range and show the bb plugin track command with the range in double quotes. They also cover the refusal of a range that admits no version or neither the installed release nor a newer one, legacy npm installs that cannot change in place and get no suggestion, previousRange, whitespace collapsing, and a registration lock that covers only the change itself.
Configuration menu - View commit details
-
Copy full SHA for 4cde0b7 - Browse repository at this point
Copy the full SHA 4cde0b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 682bfc0 - Browse repository at this point
Copy the full SHA 682bfc0View commit details
Commits on Oct 30, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 04882e0 - Browse repository at this point
Copy the full SHA 04882e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for db9bd8c - Browse repository at this point
Copy the full SHA db9bd8cView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff plugin-updates-outside-range...plugin-track-range