compare-versions icon indicating copy to clipboard operation
compare-versions copied to clipboard

Compare semver version strings to find which is greater, equal or lesser.

Results 14 compare-versions issues
Sort by recently updated
recently updated
newest added

Due to inconsistencies in maintaining the CJS and ESM version of this package separately, we're moving to TypeScript to be able to build two identical output bundles. This should also...

Fix satisfies returning false if minor version is lower than compared one even if major is higher Let me know if I need to change anything ! Issue #58

I'm checking if `2.0.0` satisfies `>=1.10` and I'm getting false: ``` console.log(compare("2.0.0", "1.1.0", '>=')); // true console.log(satisfies("2.0.0", ">=1.1.0")); // false ``` In my exemple you go directly though `compare` whenre...

Good day, seems cjs satisfies method export is inconsistent to esm export. Occures [At this line](https://github.com/omichelsen/compare-versions/blob/19b96ea53e71b93976637b0dccde8bdae6934c2f/index.mjs#L60): ``` sastisfies = satisfies ```

I'm getting a variable undefined, where I'm comparing it with another then I'm getting the issue let a=10, let b; Compare(a,b,>=) Received: Error Expected: false

## Investigation I found that the `validate` test failed using the `index.js` file because it was out of sync with `index.mjs`. I added a few fixes to bridge the gap...

Hi, this test fails: ` it('should return 1 for versions ~12.1.2 and 11.1.2', () => { const result: VersionsComparison = compareVersions('~12.1.2', '11.1.2'); expect(result).toBe(1); }); ` with error: ` Expected 0...

Hello! Love this module! Any considerations around `"latest"` support? In Example: ```ts { "lodash": "lastest" } ``` Thank you!

question

Hello! First of all thanks for such a great library! I've revealed the problem with comparing versions with leading zero for the patch. Example: ```javascript compare('2.0.0123123', '2.0.13', '

question