Frontmatter
| id | 7584 |
| title | Fix Semantic Version Comparison in HealthService using 'semver' |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Oct 20, 2025, 3:47 PM |
| updatedAt | Oct 20, 2025, 3:55 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7584 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | 7564 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Oct 20, 2025, 3:55 PM |
The
HealthService.#checkGhVersion()method currently uses string comparison (>=) to check if the installedghCLI version meets the minimum requirement. This is a critical bug that breaks for semantic versioning (e.g., "2.9.0" incorrectly compares as greater than "2.10.0").This will be fixed by incorporating the official
semvernpm package.Acceptance Criteria
semverpackage is added as adevDependencytopackage.json.npm installis run to update thenode_modulesdirectory.HealthService.mjsis updated to import thesemverpackage.#checkGhVersion()method is refactored to usesemver.gte(currentVersion, minVersion)for the version comparison instead of the incorrect string comparison.