{"uid":"cap_2qBPeOIAp2B_i6V0BJ_Ar","slug":"vextorium-semantic-version-sorter-range-matcher-e258f7d0","name":"Vextorium Semantic Version Sorter & Range Matcher","description":"Sort Semantic Versioning 2.0 versions (pre-releases included), give highest and lowest, the bump type between two, and which satisfy an npm-style range (^1.2.0, ~1.2, >=1.0 <2.0, 1.x || 2.x) plus the best match.","url":"https://api.vextorium.com/comparar-versiones-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rango":{"type":"string","description":"npm-style range (optional)"},"versiones":{"type":"array","items":{"type":"string"},"description":"Versions (1-500)"}}},"responseSchema":{"type":"json","example":{"mayor":"2.0.0","menor":"1.2.3-beta.2","rango":{"mejor":"1.10.0","rango":"^1.2.0","cumplen":["1.2.3","1.10.0"]},"estables":["1.2.3","1.10.0","2.0.0"],"ordenadas":["1.2.3-beta.2","1.2.3","1.10.0","2.0.0"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7Ic0oQcwdTpvxsjQ_ZO0b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sorts a list of SemVer 2.0 versions (including pre-releases), returns highest/lowest, stable versions, bump type between two versions, and filters/ranks versions against an npm-style range expression.","exampleAgentPrompt":"Sort these versions from oldest to newest and tell me the highest and lowest, then filter which ones satisfy the range ^1.2.0 and pick the best match: 1.2.3-beta.2, 1.2.3, 1.10.0, 2.0.0.","exampleUseCases":[{"title":"Find compatible dependency versions","prompt":"I have these package versions available: 3.0.0, 2.9.1, 2.5.0, 2.1.0-alpha.1, 1.8.3, and my package.json requires ^2.5.0 — which versions are compatible and what's the best one to use?"},{"title":"Identify latest stable release","prompt":"Sort these release versions for me and tell me which is the highest stable release (no pre-releases): 4.0.0-rc.1, 3.9.2, 3.9.1, 3.8.0, 4.0.0-beta.3, 3.7.5."},{"title":"Validate CI pipeline version ordering","prompt":"I need to verify my release history is correctly ordered — can you sort these semver tags and confirm which is the absolute latest and which is the oldest: 1.0.0, 1.1.0-beta.1, 1.1.0, 1.2.0, 2.0.0-alpha.1?"}],"resultDescription":"Returns a JSON object with: 'ordenadas' (all versions sorted ascending), 'mayor' (highest version), 'menor' (lowest version), 'estables' (stable non-pre-release versions), and optionally 'rango' containing the input range string, 'cumplen' (versions satisfying the range), and 'mejor' (best/highest match within the range).","failureModes":["Missing required 'versiones' array returns validation error","Invalid semver strings (e.g. '1.2' without patch) may be rejected or cause unexpected sorting","Malformed npm range expression in 'rango' may return null range results","Empty versions array may return nulls for mayor/menor","More than 500 versions exceeds the documented limit"],"whenToPreferThis":"Choose this endpoint when you need server-side, authoritative SemVer 2.0 sorting and npm range filtering without adding a semver library to your runtime — especially useful in agents or serverless environments where importing 'semver' npm package is not practical. It handles pre-release ordering and complex npm range syntax (^, ~, ||, x wildcards) in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T18:45:16.129Z","isFirstParty":false,"canonicalSlug":"vextorium-semantic-version-sorter-range-matcher-e258f7d0"}