gitstream icon indicating copy to clipboard operation
gitstream copied to clipboard

The `compareMultiSemver` function now uses the embedded `compareSemver`

Open vim-zz opened this issue 3 months ago • 0 comments

function instead of importing it from an external file.

… compareMultiSemver git:(embed-compare-semver-in-multi-plugin  node index.js
✓ Test 1 passed: compareMultiSemver([["1.2.3", "1.2.1"], ["1.3.1", "1.2.3"]]) === "minor"
✓ Test 2 passed: compareMultiSemver([["1.2.3", "0.2.1"], ["1.3.1", "1.2.3"]]) === "major"
✓ Test 3 passed: compareMultiSemver([["2.2.3", "0.2.1"], ["1.3.1", "1.2.3"]]) === "major"
✓ Test 4 passed: compareMultiSemver([["1.2.3", "1.2.1"], ["1.2.4", "1.2.3"]]) === "patch"

🎉 All tests passed!

✨ PR Description

Purpose: Embed compareSemver functionality directly into compareMultiSemver plugin to eliminate external dependency and improve maintainability. Main changes:

  • Integrated compareSemver function code directly into compareMultiSemver module
  • Removed external dependency on compareSemver module
  • Enhanced test cases with better error messages and success confirmation output

Generated by LinearB AI and added by gitStream. AI-generated content may contain inaccuracies. Please verify before using. We'd love your feedback! 🚀

vim-zz avatar Sep 25 '25 14:09 vim-zz