Skip to content

fix(lexicon-upgrade): 0.x-aware version bumping (breaking upstream shouldn't force pre-1.0 lexicons to 1.0.0) #549

Closed

Description

@lex00

Follow-up to #528 / the lexicon-upgrade pipeline.

Problem

computeBumpedVersion maps breaking → major. For a pre-1.0 lexicon this is wrong by semver convention: a breaking upstream spec change bumps a 0.x package straight to 1.0.0. Observed on the regenerated k8s upgrade PR #548 — a k8s v1.32→v1.36 spec bump (classified breaking due to required/optional flips) bumps @intentius/chant-lexicon-k8s 0.13.1 → 1.0.0. 1.0.0 should signal intentional API stability of the lexicon itself, not track an upstream spec's breaking change.

Fix

Make computeBumpedVersion 0.x-aware:

  • While major is 0: breaking → minor (0.13.1 → 0.14.0), additive → patch (or minor — decide) — never auto-promote to 1.0.0.
  • At >= 1.0.0: keep breaking → major, additive → minor.
  • Promotion to 1.0.0 should be a deliberate human action, not automatic.

Acceptance criteria

  • A breaking upstream spec change on a 0.x lexicon bumps the minor, not the major.
  • >= 1.0.0 lexicons keep standard breaking→major / additive→minor.
  • Unit tests cover the 0.x and >=1.0 branches.

Note

Until this lands, pinned upgrade PRs for pre-1.0 lexicons will propose x.0.0-style bumps — review the version before merging.

Activity

  1. added
    enhancement
    on Jul 2, 2026
  2. added 2 commits that reference this issue on Jul 3, 2026
    f2a3097
    b1adca1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions