• Select the migration steps to run for a world, in ascending version order.

    A step runs when from < step.version <= to — the lower bound is exclusive (the world already has from) and the upper bound inclusive (migrate up to and including the running system version). An empty from behaves as 0.0.0 (runs everything up to to); an empty to yields no steps (the target version is unknown).

    Parameters

    • from: string

      The world's stored migration version.

    • to: string

      The target (running system) version.

    • steps: readonly MigrationStep[] = SOHL_MIGRATIONS

      The registry to draw from (defaults to SOHL_MIGRATIONS).

    Returns MigrationStep[]

    The applicable steps, sorted oldest-first.