Skip to main content

plan_dependent_bumps

Function plan_dependent_bumps 

Source
pub fn plan_dependent_bumps(
    nodes: &[WorkspaceNode],
    bumped_names: &[String],
    publishable_names: &[String],
) -> Result<Vec<PlannedBump>, UnsupportedVersion>
Expand description

What: The patch bumps for publishable dependents of the raised packages, sorted by name. Result<T, UnsupportedVersion> is the plan, or the first dependent (in node order) whose version cannot be bumped automatically. Why: Raised packages already moved; a package without a version has nothing to bump; an unpublished package is never released, though the walk passes through it.

In TS you’d write (pseudocode):

function planDependentBumps({ manifests, bumpedNames, publishableNames }): PlannedBump[];