Files
klz-cables.com/.pnpm-store/v10/files/fc/4d2ad2e70720172a3649b7599e3730e4ea5649ef6e8725a17d7c09cf6a0070677abbf985c958171cd362d1602990e383b6dd6c2b470db53f941031aa422c13
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

20 lines
1.2 KiB
Plaintext

import type { CustomVersionParser } from './dependencyChecker.js';
export declare function parseVersion(version: string): {
parts: number[];
preReleases: string[];
};
/**
* Compares two semantic version strings, including handling pre-release identifiers.
*
* This function first compares the major, minor, and patch components as integers.
* If these components are equal, it then moves on to compare pre-release versions.
* Pre-release versions are compared first by extracting and comparing any numerical values.
* If numerical values are equal, it compares the whole pre-release string lexicographically.
*
* @param {string} compare - The first version string to compare.
* @param {string} to - The second version string to compare.
* @param {function} [customVersionParser] - An optional function to parse version strings into parts and pre-releases.
* @returns {string} - Returns greater if compare is greater than to, lower if compare is less than to, and equal if they are equal.
*/
export declare function compareVersions(compare: string, to: string, customVersionParser?: CustomVersionParser): 'equal' | 'greater' | 'lower';
//# sourceMappingURL=versionUtils.d.ts.map