UNPKG

buddy-bot

Version:

Automated & optimized dependency updates for JavaScript & TypeScript projects. Like Renovate & Dependabot.

9 lines 527 B
import type { VersionRange } from '../types'; export declare class VersionResolver { static compareVersions(version1: string, version2: string): -1 | 0 | 1; static satisfiesRange(version: string, range: string): boolean; static getLatestInRange(versions: string[], range: string): string | null; static createRange(rangeString: string): VersionRange; static getUpdateType(fromVersion: string, toVersion: string): 'major' | 'minor' | 'patch'; static isSafeUpdate(currentRange: string, newVersion: string): boolean; }