Skip to content

fix: check major and minor versions are tracking [ED-24551] - #46

Merged
davseve merged 1 commit into
mainfrom
fix/ED-24451-minor-major-checks
Aug 5, 2026
Merged

fix: check major and minor versions are tracking [ED-24551]#46
davseve merged 1 commit into
mainfrom
fix/ED-24451-minor-major-checks

Conversation

@davseve

@davseve davseve commented Aug 4, 2026

Copy link
Copy Markdown
Member

✨ PR Description

1. Problem & Context

Beta version validation wasn't checking that major/minor versions increment correctly between release lines. ED-24551 requires stricter tracking — beta releases can only increment patch on same line, or bump to next minor/major with beta1.

2. What Changed (Where)

  • current-version-validation.ts: Refactored validateNextBeta() to enforce next-minor (x.y+1.0-beta1) or next-major (x+1.0.0-beta1) transitions, replacing generic "must be beta1" check.
  • current-version-validation.test.ts: Expanded test cases to cover valid transitions and rejection of invalid version jumps (4.4.0, 5.1.0, 6.0.0, etc.).

3. How It Works

Same-line beta increments require exact latestBetaNum + 1 sequence. New-line transitions must be precisely nextMinor or nextMajor (both with -beta1); any other version string fails with clear expectation message.

4. Risks

Low — validation tightens constraints (should reject more invalid states, not break valid ones). Test coverage is comprehensive for edge cases.

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

@davseve davseve changed the title Internal: Check major and minor versions are tracking [ED-24551] fix: check major and minor versions are tracking [ED-24551] Aug 4, 2026
@davseve
davseve merged commit ec71890 into main Aug 5, 2026
17 of 19 checks passed
@davseve
davseve deleted the fix/ED-24451-minor-major-checks branch August 5, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants