Skip to content

LIBRARIES-2943: add semver comparison function#48

Merged
chenxzhang merged 4 commits intomasterfrom
LIBRARIES-2943/semver
Jan 8, 2026
Merged

LIBRARIES-2943: add semver comparison function#48
chenxzhang merged 4 commits intomasterfrom
LIBRARIES-2943/semver

Conversation

@chenxzhang
Copy link
Contributor

Add semver function to compare two app versions.

- Implement semver(version, operator, version) function
- Support operators: =, !=, >, >=, <, <=
- Handle partial versions (e.g., '2', '1.5', '1.0.0')
- Add comprehensive test coverage
- Handle null values by returning false
@codecov
Copy link

codecov bot commented Jan 6, 2026

Codecov Report

❌ Patch coverage is 94.64286% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.25%. Comparing base (64c100c) to head (a74cf84).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
src/matchers.ts 94.64% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
+ Coverage   91.91%   92.25%   +0.33%     
==========================================
  Files           5        5              
  Lines         396      452      +56     
  Branches      123      147      +24     
==========================================
+ Hits          364      417      +53     
- Misses         31       34       +3     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chenxzhang chenxzhang merged commit 38560d8 into master Jan 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants