Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: alexandre-vl/bb
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: plugin-updates-outside-range
Choose a base ref
...
head repository: alexandre-vl/bb
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: plugin-track-range
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 18 commits
  • 35 files changed
  • 1 contributor

Commits on Oct 21, 2026

  1. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    4eed49f View commit details
    Browse the repository at this point in the history
  2. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    6521797 View commit details
    Browse the repository at this point in the history
  3. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    76da556 View commit details
    Browse the repository at this point in the history
  4. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    8bdb537 View commit details
    Browse the repository at this point in the history
  5. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    eca6dfe View commit details
    Browse the repository at this point in the history
  6. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    57b717e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    53172fc View commit details
    Browse the repository at this point in the history
  8. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    319901e View commit details
    Browse the repository at this point in the history
  9. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    e3cb0a6 View commit details
    Browse the repository at this point in the history
  10. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    ca25f72 View commit details
    Browse the repository at this point in the history
  11. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    f795984 View commit details
    Browse the repository at this point in the history
  12. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    c873e87 View commit details
    Browse the repository at this point in the history
  13. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    ba6aa28 View commit details
    Browse the repository at this point in the history
  14. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    3202b81 View commit details
    Browse the repository at this point in the history
  15. 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.
    alexandre-vl committed Oct 21, 2026
    Configuration menu
    Copy the full SHA
    4cde0b7 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    682bfc0 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2026

  1. Configuration menu
    Copy the full SHA
    04882e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db9bd8c View commit details
    Browse the repository at this point in the history
Loading